|
|
|
@ -68,26 +68,26 @@ |
|
|
|
<plugin> |
|
|
|
<groupId>com.github.eirslett</groupId> |
|
|
|
<artifactId>frontend-maven-plugin</artifactId> |
|
|
|
<version>1.0</version> |
|
|
|
<version>1.7.5</version> |
|
|
|
<configuration> |
|
|
|
<installDirectory>target</installDirectory> |
|
|
|
<workingDirectory>${basedir}</workingDirectory> |
|
|
|
</configuration> |
|
|
|
<executions> |
|
|
|
<execution> |
|
|
|
<id>install node and npm</id> |
|
|
|
<id>install node and yarn</id> |
|
|
|
<goals> |
|
|
|
<goal>install-node-and-npm</goal> |
|
|
|
<goal>install-node-and-yarn</goal> |
|
|
|
</goals> |
|
|
|
<configuration> |
|
|
|
<nodeVersion>v10.16.0</nodeVersion> |
|
|
|
<npmVersion>6.4.1</npmVersion> |
|
|
|
<nodeVersion>v12.16.1</nodeVersion> |
|
|
|
<yarnVersion>v1.22.4</yarnVersion> |
|
|
|
</configuration> |
|
|
|
</execution> |
|
|
|
<execution> |
|
|
|
<id>npm install</id> |
|
|
|
<id>yarn install</id> |
|
|
|
<goals> |
|
|
|
<goal>npm</goal> |
|
|
|
<goal>yarn</goal> |
|
|
|
</goals> |
|
|
|
<configuration> |
|
|
|
<arguments>install</arguments> |
|
|
|
@ -149,176 +149,6 @@ |
|
|
|
<groupId>org.apache.maven.plugins</groupId> |
|
|
|
<artifactId>maven-assembly-plugin</artifactId> |
|
|
|
</plugin> |
|
|
|
<!-- <plugin>--> |
|
|
|
<!-- <groupId>org.apache.maven.plugins</groupId>--> |
|
|
|
<!-- <artifactId>maven-resources-plugin</artifactId>--> |
|
|
|
<!-- <executions>--> |
|
|
|
<!-- <execution>--> |
|
|
|
<!-- <id>copy-linux-conf</id>--> |
|
|
|
<!-- <phase>process-resources</phase>--> |
|
|
|
<!-- <goals>--> |
|
|
|
<!-- <goal>copy-resources</goal>--> |
|
|
|
<!-- </goals>--> |
|
|
|
<!-- <configuration>--> |
|
|
|
<!-- <outputDirectory>${pkg.linux.dist}/conf</outputDirectory>--> |
|
|
|
<!-- <resources>--> |
|
|
|
<!-- <resource>--> |
|
|
|
<!-- <directory>config</directory>--> |
|
|
|
<!-- <filtering>true</filtering>--> |
|
|
|
<!-- </resource>--> |
|
|
|
<!-- </resources>--> |
|
|
|
<!-- <filters>--> |
|
|
|
<!-- <filter>src/main/filters/unix.properties</filter>--> |
|
|
|
<!-- </filters>--> |
|
|
|
<!-- </configuration>--> |
|
|
|
<!-- </execution>--> |
|
|
|
<!-- <execution>--> |
|
|
|
<!-- <id>copy-linux-init</id>--> |
|
|
|
<!-- <phase>process-resources</phase>--> |
|
|
|
<!-- <goals>--> |
|
|
|
<!-- <goal>copy-resources</goal>--> |
|
|
|
<!-- </goals>--> |
|
|
|
<!-- <configuration>--> |
|
|
|
<!-- <outputDirectory>${pkg.linux.dist}/init</outputDirectory>--> |
|
|
|
<!-- <resources>--> |
|
|
|
<!-- <resource>--> |
|
|
|
<!-- <directory>src/main/scripts/init</directory>--> |
|
|
|
<!-- <filtering>true</filtering>--> |
|
|
|
<!-- </resource>--> |
|
|
|
<!-- </resources>--> |
|
|
|
<!-- <filters>--> |
|
|
|
<!-- <filter>src/main/filters/unix.properties</filter>--> |
|
|
|
<!-- </filters>--> |
|
|
|
<!-- </configuration>--> |
|
|
|
<!-- </execution>--> |
|
|
|
<!-- <execution>--> |
|
|
|
<!-- <id>copy-win-conf</id>--> |
|
|
|
<!-- <phase>process-resources</phase>--> |
|
|
|
<!-- <goals>--> |
|
|
|
<!-- <goal>copy-resources</goal>--> |
|
|
|
<!-- </goals>--> |
|
|
|
<!-- <configuration>--> |
|
|
|
<!-- <outputDirectory>${pkg.win.dist}/conf</outputDirectory>--> |
|
|
|
<!-- <resources>--> |
|
|
|
<!-- <resource>--> |
|
|
|
<!-- <directory>config</directory>--> |
|
|
|
<!-- <excludes>--> |
|
|
|
<!-- <exclude>tb-web-ui.conf</exclude>--> |
|
|
|
<!-- </excludes>--> |
|
|
|
<!-- <filtering>true</filtering>--> |
|
|
|
<!-- </resource>--> |
|
|
|
<!-- </resources>--> |
|
|
|
<!-- <filters>--> |
|
|
|
<!-- <filter>src/main/filters/windows.properties</filter>--> |
|
|
|
<!-- </filters>--> |
|
|
|
<!-- </configuration>--> |
|
|
|
<!-- </execution>--> |
|
|
|
<!-- <execution>--> |
|
|
|
<!-- <id>copy-control</id>--> |
|
|
|
<!-- <phase>process-resources</phase>--> |
|
|
|
<!-- <goals>--> |
|
|
|
<!-- <goal>copy-resources</goal>--> |
|
|
|
<!-- </goals>--> |
|
|
|
<!-- <configuration>--> |
|
|
|
<!-- <outputDirectory>${project.build.directory}/control</outputDirectory>--> |
|
|
|
<!-- <resources>--> |
|
|
|
<!-- <resource>--> |
|
|
|
<!-- <directory>src/main/scripts/control</directory>--> |
|
|
|
<!-- <filtering>true</filtering>--> |
|
|
|
<!-- </resource>--> |
|
|
|
<!-- </resources>--> |
|
|
|
<!-- <filters>--> |
|
|
|
<!-- <filter>src/main/filters/unix.properties</filter>--> |
|
|
|
<!-- </filters>--> |
|
|
|
<!-- </configuration>--> |
|
|
|
<!-- </execution>--> |
|
|
|
<!-- <execution>--> |
|
|
|
<!-- <id>copy-windows-control</id>--> |
|
|
|
<!-- <phase>process-resources</phase>--> |
|
|
|
<!-- <goals>--> |
|
|
|
<!-- <goal>copy-resources</goal>--> |
|
|
|
<!-- </goals>--> |
|
|
|
<!-- <configuration>--> |
|
|
|
<!-- <outputDirectory>${pkg.win.dist}</outputDirectory>--> |
|
|
|
<!-- <resources>--> |
|
|
|
<!-- <resource>--> |
|
|
|
<!-- <directory>src/main/scripts/windows</directory>--> |
|
|
|
<!-- <filtering>true</filtering>--> |
|
|
|
<!-- </resource>--> |
|
|
|
<!-- </resources>--> |
|
|
|
<!-- <filters>--> |
|
|
|
<!-- <filter>src/main/filters/windows.properties</filter>--> |
|
|
|
<!-- </filters>--> |
|
|
|
<!-- </configuration>--> |
|
|
|
<!-- </execution>--> |
|
|
|
<!-- <execution>--> |
|
|
|
<!-- <id>copy-docker-config</id>--> |
|
|
|
<!-- <phase>process-resources</phase>--> |
|
|
|
<!-- <goals>--> |
|
|
|
<!-- <goal>copy-resources</goal>--> |
|
|
|
<!-- </goals>--> |
|
|
|
<!-- <configuration>--> |
|
|
|
<!-- <outputDirectory>${project.build.directory}</outputDirectory>--> |
|
|
|
<!-- <resources>--> |
|
|
|
<!-- <resource>--> |
|
|
|
<!-- <directory>docker</directory>--> |
|
|
|
<!-- <filtering>true</filtering>--> |
|
|
|
<!-- </resource>--> |
|
|
|
<!-- </resources>--> |
|
|
|
<!-- </configuration>--> |
|
|
|
<!-- </execution>--> |
|
|
|
<!-- </executions>--> |
|
|
|
<!-- </plugin>--> |
|
|
|
<!-- <plugin>--> |
|
|
|
<!-- <groupId>org.thingsboard</groupId>--> |
|
|
|
<!-- <artifactId>gradle-maven-plugin</artifactId>--> |
|
|
|
<!-- <configuration>--> |
|
|
|
<!-- <gradleProjectDirectory>${basedir}</gradleProjectDirectory>--> |
|
|
|
<!-- <tasks>--> |
|
|
|
<!-- <task>build</task>--> |
|
|
|
<!-- <task>buildDeb</task>--> |
|
|
|
<!-- <task>buildRpm</task>--> |
|
|
|
<!-- <task>renameDeb</task>--> |
|
|
|
<!-- <task>renameRpm</task>--> |
|
|
|
<!-- </tasks>--> |
|
|
|
<!-- <args>--> |
|
|
|
<!-- <arg>-PprojectBuildDir=${project.build.directory}</arg>--> |
|
|
|
<!-- <arg>-PprojectVersion=${project.version}</arg>--> |
|
|
|
<!-- <arg>-PpkgName=${pkg.name}</arg>--> |
|
|
|
<!-- <arg>-PpkgUser=${pkg.user}</arg>--> |
|
|
|
<!-- <arg>-PpkgInstallFolder=${pkg.installFolder}</arg>--> |
|
|
|
<!-- <arg>-PpkgLogFolder=${pkg.unixLogFolder}</arg>--> |
|
|
|
<!-- </args>--> |
|
|
|
<!-- </configuration>--> |
|
|
|
<!-- <executions>--> |
|
|
|
<!-- <execution>--> |
|
|
|
<!-- <phase>package</phase>--> |
|
|
|
<!-- <goals>--> |
|
|
|
<!-- <goal>invoke</goal>--> |
|
|
|
<!-- </goals>--> |
|
|
|
<!-- </execution>--> |
|
|
|
<!-- </executions>--> |
|
|
|
<!-- </plugin>--> |
|
|
|
<!-- <plugin>--> |
|
|
|
<!-- <groupId>org.apache.maven.plugins</groupId>--> |
|
|
|
<!-- <artifactId>maven-assembly-plugin</artifactId>--> |
|
|
|
<!-- <version>3.0.0</version>--> |
|
|
|
<!-- <configuration>--> |
|
|
|
<!-- <finalName>${pkg.name}</finalName>--> |
|
|
|
<!-- <descriptors>--> |
|
|
|
<!-- <descriptor>../../packaging/js/assembly/windows.xml</descriptor>--> |
|
|
|
<!-- </descriptors>--> |
|
|
|
<!-- </configuration>--> |
|
|
|
<!-- <executions>--> |
|
|
|
<!-- <execution>--> |
|
|
|
<!-- <id>assembly</id>--> |
|
|
|
<!-- <phase>package</phase>--> |
|
|
|
<!-- <goals>--> |
|
|
|
<!-- <goal>single</goal>--> |
|
|
|
<!-- </goals>--> |
|
|
|
<!-- </execution>--> |
|
|
|
<!-- </executions>--> |
|
|
|
<!-- </plugin>--> |
|
|
|
<plugin> |
|
|
|
<groupId>com.spotify</groupId> |
|
|
|
<artifactId>dockerfile-maven-plugin</artifactId> |
|
|
|
@ -355,10 +185,10 @@ |
|
|
|
</build> |
|
|
|
<profiles> |
|
|
|
<profile> |
|
|
|
<id>npm-start</id> |
|
|
|
<id>yarn-start</id> |
|
|
|
<activation> |
|
|
|
<property> |
|
|
|
<name>npm-start</name> |
|
|
|
<name>yarn-start</name> |
|
|
|
</property> |
|
|
|
</activation> |
|
|
|
<build> |
|
|
|
@ -366,16 +196,16 @@ |
|
|
|
<plugin> |
|
|
|
<groupId>com.github.eirslett</groupId> |
|
|
|
<artifactId>frontend-maven-plugin</artifactId> |
|
|
|
<version>1.0</version> |
|
|
|
<version>1.7.5</version> |
|
|
|
<configuration> |
|
|
|
<installDirectory>target</installDirectory> |
|
|
|
<workingDirectory>${basedir}</workingDirectory> |
|
|
|
</configuration> |
|
|
|
<executions> |
|
|
|
<execution> |
|
|
|
<id>npm start</id> |
|
|
|
<id>yarn start</id> |
|
|
|
<goals> |
|
|
|
<goal>npm</goal> |
|
|
|
<goal>yarn</goal> |
|
|
|
</goals> |
|
|
|
|
|
|
|
<configuration> |
|
|
|
|