summaryrefslogtreecommitdiffstats
path: root/rulemgt-frontend/pom.xml
diff options
context:
space:
mode:
authorGuangrongFu <fu.guangrong@zte.com.cn>2018-07-20 10:23:42 +0800
committerGuangrongFu <fu.guangrong@zte.com.cn>2018-07-20 10:23:42 +0800
commit8e7f35e2f127d5b2c3691751742dc12c4fba4550 (patch)
tree286a1a8b43c2c861e75a54dbad36557618602e09 /rulemgt-frontend/pom.xml
parent9720e7d6a706d79f50778af6a39ce6fba79955ed (diff)
Made the directory a maven project
Change-Id: I0d5c27fdeab99c79cdd95ce57916a7638f788bcd 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.xml114
1 files changed, 114 insertions, 0 deletions
diff --git a/rulemgt-frontend/pom.xml b/rulemgt-frontend/pom.xml
new file mode 100644
index 0000000..1891ef6
--- /dev/null
+++ b/rulemgt-frontend/pom.xml
@@ -0,0 +1,114 @@
+<?xml version="1.0"?>
+<!--
+
+ Copyright 2018 ZTE Corporation.
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+
+-->
+<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/maven-v4_0_0.xsd">
+ <modelVersion>4.0.0</modelVersion>
+ <parent>
+ <groupId>org.onap.holmes.rule-management</groupId>
+ <artifactId>holmes-rulemgt-parent</artifactId>
+ <version>1.1.0-SNAPSHOT</version>
+ </parent>
+
+ <artifactId>holmes-rulemgt-frontend</artifactId>
+ <name>holmes-rulemgt-frontend</name>
+ <packaging>pom</packaging>
+
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.codehaus.mojo</groupId>
+ <artifactId>exec-maven-plugin</artifactId>
+ <version>1.5.0</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>
+ <goals>
+ <goal>exec</goal>
+ </goals>
+ </execution>
+ <execution>
+ <id>angular-cli build</id>
+ <configuration>
+ <workingDirectory>.</workingDirectory>
+ <executable>cmd</executable>
+ <arguments>
+ <argument>/c</argument>
+ <argument>"ng build --prod"</argument>
+ </arguments>
+ </configuration>
+ <phase>generate-resources</phase>
+ <goals>
+ <goal>exec</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-war-plugin</artifactId>
+ <configuration>
+ <failOnMissingWebXml>false</failOnMissingWebXml>
+ <warSourceExcludes>
+ src/**,
+ config/**,
+ foo/**,
+ i18n/**,
+ node/**,
+ node_modules/**,
+ public/**,
+ *.json,
+ *.js
+ </warSourceExcludes>
+ </configuration>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-assembly-plugin</artifactId>
+ <version>3.0.0</version>
+ <configuration>
+ <finalName>holmes-rulemgt-frontend-${project.version}</finalName>
+ <descriptors>
+ <descriptor>assembly.xml</descriptor>
+ </descriptors>
+ <appendAssemblyId>false</appendAssemblyId>
+ <outputDirectory>target/</outputDirectory>
+ </configuration>
+ <executions>
+ <execution>
+ <id>holmes-rulemgt-frontend</id>
+ <phase>package</phase>
+ <goals>
+ <goal>single</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ </build>
+</project>