summaryrefslogtreecommitdiffstats
path: root/rulemgt-frontend/pom.xml
diff options
context:
space:
mode:
authorGuangrongFu <fu.guangrong@zte.com.cn>2018-07-20 13:40:12 +0800
committerGuangrongFu <fu.guangrong@zte.com.cn>2018-07-21 13:13:42 +0800
commitfb0bf963239aaacf19280843f825174e68d41eab (patch)
tree6aa150adac1bf410116aead8ec831d2f689a4662 /rulemgt-frontend/pom.xml
parent8e7f35e2f127d5b2c3691751742dc12c4fba4550 (diff)
Added the frontend module
Change-Id: I376d0e160f0ad0e3dca3f32167b9df4ad131dd0c Issue-ID: HOLMES-111 Signed-off-by: GuangrongFu <fu.guangrong@zte.com.cn>
Diffstat (limited to 'rulemgt-frontend/pom.xml')
-rw-r--r--rulemgt-frontend/pom.xml68
1 files changed, 45 insertions, 23 deletions
diff --git a/rulemgt-frontend/pom.xml b/rulemgt-frontend/pom.xml
index 1891ef6..4e71ecc 100644
--- a/rulemgt-frontend/pom.xml
+++ b/rulemgt-frontend/pom.xml
@@ -33,41 +33,46 @@
<build>
<plugins>
<plugin>
- <groupId>org.codehaus.mojo</groupId>
- <artifactId>exec-maven-plugin</artifactId>
- <version>1.5.0</version>
+ <groupId>com.github.eirslett</groupId>
+ <artifactId>frontend-maven-plugin</artifactId>
+ <version>1.6</version>
<executions>
<execution>
- <id>angular-cli install</id>
- <configuration>
- <workingDirectory>.</workingDirectory>
- <executable>cmd</executable>
- <arguments>
- <argument>/c</argument>
- <argument>"npm install --prefer-offline"</argument>
- </arguments>
- </configuration>
- <phase>generate-resources</phase>
+ <id>install node and npm</id>
<goals>
- <goal>exec</goal>
+ <goal>install-node-and-npm</goal>
</goals>
+ <phase>generate-resources</phase>
</execution>
<execution>
- <id>angular-cli build</id>
+ <id>npm install</id>
+ <goals>
+ <goal>npm</goal>
+ </goals>
+ <phase>generate-resources</phase>
<configuration>
- <workingDirectory>.</workingDirectory>
- <executable>cmd</executable>
- <arguments>
- <argument>/c</argument>
- <argument>"ng build --prod"</argument>
- </arguments>
+ <arguments>install</arguments>
</configuration>
- <phase>generate-resources</phase>
+ </execution>
+ <execution>
+ <id>prod</id>
<goals>
- <goal>exec</goal>
+ <goal>npm</goal>
</goals>
+ <configuration>
+ <arguments>run-script prod</arguments>
+ <arguments>run-script prod</arguments>
+ </configuration>
+ <phase>generate-resources</phase>
</execution>
</executions>
+ <configuration>
+ <skip>${skip.node.and.npm.installation}</skip>
+ <nodeVersion>v10.6.0</nodeVersion>
+ <npmVersion>6.1.0</npmVersion>
+ <installDirectory>./</installDirectory>
+ <workingDirectory>./</workingDirectory>
+ </configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
@@ -111,4 +116,21 @@
</plugin>
</plugins>
</build>
+ <profiles>
+ <profile>
+ <id>local</id>
+ <properties>
+ <skip.node.and.npm.installation>true</skip.node.and.npm.installation>
+ </properties>
+ </profile>
+ <profile>
+ <id>normal</id>
+ <activation>
+ <activeByDefault>true</activeByDefault>
+ </activation>
+ <properties>
+ <skip.node.and.npm.installation>false</skip.node.and.npm.installation>
+ </properties>
+ </profile>
+ </profiles>
</project>