dashboardjavacloudcoapiotiot-analyticsiot-platformiot-solutionskafkalwm2mmicroservicesmiddlewaremqttnettyplatformsnmpthingsboardvisualizationwebsocketswidgets
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
181 lines
7.3 KiB
181 lines
7.3 KiB
<!--
|
|
|
|
SPDX-FileCopyrightText: Copyright The ThingsBoard Authors
|
|
SPDX-FileCopyrightText: Modifications Copyright ThingsBoard, Inc.
|
|
SPDX-License-Identifier: Apache-2.0 AND BUSL-1.1
|
|
|
|
-->
|
|
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
|
<modelVersion>4.0.0</modelVersion>
|
|
<parent>
|
|
<groupId>org.thingsboard</groupId>
|
|
<version>4.4.0-SNAPSHOT</version>
|
|
<artifactId>thingsboard</artifactId>
|
|
</parent>
|
|
<artifactId>ui-ngx</artifactId>
|
|
<packaging>jar</packaging>
|
|
|
|
<name>ThingsBoard Server UI</name>
|
|
<url>https://thingsboard.io</url>
|
|
|
|
<properties>
|
|
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
|
<main.dir>${basedir}/..</main.dir>
|
|
</properties>
|
|
|
|
<build>
|
|
<resources>
|
|
<!-- The backend reads the locale files from the classpath (see DefaultTranslationService),
|
|
so they must be packaged even when the UI is not built (-Dskip.yarn=true). The Angular
|
|
build copies these very same sources verbatim to the same path under generated-resources,
|
|
which is declared after this entry so that the built UI output is processed last. -->
|
|
<resource>
|
|
<directory>src/assets/locale</directory>
|
|
<targetPath>public/assets/locale</targetPath>
|
|
<filtering>false</filtering>
|
|
</resource>
|
|
<resource>
|
|
<directory>${project.build.directory}/generated-resources</directory>
|
|
</resource>
|
|
</resources>
|
|
<plugins>
|
|
<plugin>
|
|
<groupId>com.github.eirslett</groupId>
|
|
<artifactId>frontend-maven-plugin</artifactId>
|
|
<configuration>
|
|
<installDirectory>target</installDirectory>
|
|
<workingDirectory>${basedir}</workingDirectory>
|
|
<!-- Declared at plugin level so that it covers every execution of this plugin,
|
|
including the ones contributed by the profiles below. -->
|
|
<skip>${skip.ui.build}</skip>
|
|
</configuration>
|
|
<executions>
|
|
<execution>
|
|
<id>install node and npm</id>
|
|
<goals>
|
|
<goal>install-node-and-yarn</goal>
|
|
</goals>
|
|
<configuration>
|
|
<nodeVersion>v22.22.2</nodeVersion>
|
|
<yarnVersion>v1.22.22</yarnVersion>
|
|
</configuration>
|
|
</execution>
|
|
<execution>
|
|
<id>yarn install</id>
|
|
<goals>
|
|
<goal>yarn</goal>
|
|
</goals>
|
|
<configuration>
|
|
<arguments>install --non-interactive --check-files --network-concurrency 4 --network-timeout 100000 --mutex network</arguments>
|
|
</configuration>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-deploy-plugin</artifactId>
|
|
<configuration>
|
|
<skip>true</skip>
|
|
</configuration>
|
|
</plugin>
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-resources-plugin</artifactId>
|
|
<executions>
|
|
<execution>
|
|
<id>copy-resources</id>
|
|
<phase>generate-resources</phase>
|
|
<goals>
|
|
<goal>copy-resources</goal>
|
|
</goals>
|
|
<configuration>
|
|
<outputDirectory>${project.build.outputDirectory}/converters</outputDirectory>
|
|
<resources>
|
|
<resource>
|
|
<directory>src/assets/converters</directory>
|
|
<includes>
|
|
<include>**/*.raw</include>
|
|
</includes>
|
|
</resource>
|
|
</resources>
|
|
</configuration>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-clean-plugin</artifactId>
|
|
<configuration>
|
|
<filesets>
|
|
<fileset>
|
|
<directory>${basedir}/node_modules</directory>
|
|
</fileset>
|
|
</filesets>
|
|
</configuration>
|
|
</plugin>
|
|
</plugins>
|
|
</build>
|
|
<profiles>
|
|
<profile>
|
|
<id>yarn-build</id>
|
|
<activation>
|
|
<activeByDefault>true</activeByDefault>
|
|
</activation>
|
|
<build>
|
|
<plugins>
|
|
<plugin>
|
|
<groupId>com.github.eirslett</groupId>
|
|
<artifactId>frontend-maven-plugin</artifactId>
|
|
<configuration>
|
|
<installDirectory>target</installDirectory>
|
|
<workingDirectory>${basedir}</workingDirectory>
|
|
</configuration>
|
|
<executions>
|
|
<execution>
|
|
<id>yarn build</id>
|
|
<goals>
|
|
<goal>yarn</goal>
|
|
</goals>
|
|
<configuration>
|
|
<arguments>--mutex network run build:prod</arguments>
|
|
</configuration>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
</plugins>
|
|
</build>
|
|
</profile>
|
|
<profile>
|
|
<id>yarn-start</id>
|
|
<activation>
|
|
<property>
|
|
<name>yarn-start</name>
|
|
</property>
|
|
</activation>
|
|
<build>
|
|
<plugins>
|
|
<plugin>
|
|
<groupId>com.github.eirslett</groupId>
|
|
<artifactId>frontend-maven-plugin</artifactId>
|
|
<configuration>
|
|
<installDirectory>target</installDirectory>
|
|
<workingDirectory>${basedir}</workingDirectory>
|
|
</configuration>
|
|
<executions>
|
|
<execution>
|
|
<id>yarn start</id>
|
|
<goals>
|
|
<goal>yarn</goal>
|
|
</goals>
|
|
<configuration>
|
|
<arguments>start</arguments>
|
|
</configuration>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
</plugins>
|
|
</build>
|
|
</profile>
|
|
</profiles>
|
|
</project>
|
|
|