summaryrefslogtreecommitdiffstats
path: root/rulemgt-frontend/pom.xml
diff options
context:
space:
mode:
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>