Add the frontend into the final package 97/57097/1
authorGuangrongFu <fu.guangrong@zte.com.cn>
Sat, 21 Jul 2018 06:49:06 +0000 (14:49 +0800)
committerGuangrongFu <fu.guangrong@zte.com.cn>
Sat, 21 Jul 2018 06:49:06 +0000 (14:49 +0800)
Change-Id: I8d88997ede40e3527ae4d1aa4f9c48bc8f920770
Issue-ID: HOLMES-111
Signed-off-by: GuangrongFu <fu.guangrong@zte.com.cn>
rulemgt-standalone/pom.xml

index ef8b295..6fc8a98 100644 (file)
@@ -17,8 +17,8 @@
 
 -->
 <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">
+         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">
     <parent>
         <groupId>org.onap.holmes.rule-management</groupId>
         <artifactId>holmes-rulemgt-parent</artifactId>
@@ -31,8 +31,8 @@
     <packaging>pom</packaging>
 
     <properties>
-       <holmes.rule.project.version>${project.version}</holmes.rule.project.version>
-       <maven.build.timestamp.format>yyyyMMdd'T'HHmmss'Z'</maven.build.timestamp.format>
+        <holmes.rule.project.version>${project.version}</holmes.rule.project.version>
+        <maven.build.timestamp.format>yyyyMMdd'T'HHmmss'Z'</maven.build.timestamp.format>
         <build.number>${maven.build.timestamp}</build.number>
     </properties>
 
                 <artifactId>maven-dependency-plugin</artifactId>
                 <executions>
                     <execution>
-                        <id>copy-jar-${linux64id}</id>
+                        <id>copy-artifacts-${linux64id}</id>
                         <goals>
                             <goal>copy</goal>
                         </goals>
                                     <outputDirectory>${linux64outputdir}</outputDirectory>
                                     <destFileName>holmes-rulemgt.jar</destFileName>
                                 </artifactItem>
+                                <artifactItem>
+                                    <groupId>org.onap.holmes.rule-management</groupId>
+                                    <artifactId>holmes-rulemgt-frontend</artifactId>
+                                    <type>tar.gz</type>
+                                    <overWrite>true</overWrite>
+                                    <outputDirectory>target/version</outputDirectory>
+                                    <destFileName>holmes-rulemgt-frontend-${project.version}.tar.gz</destFileName>
+                                </artifactItem>
                             </artifactItems>
                         </configuration>
                     </execution>
                     <execution>
-                        <id>copy-jar-${win64id}</id>
+                        <id>copy-artifacts-${win64id}</id>
                         <goals>
                             <goal>copy</goal>
                         </goals>
                                     <outputDirectory>${win64outputdir}</outputDirectory>
                                     <destFileName>holmes-rulemgt.jar</destFileName>
                                 </artifactItem>
+                                <artifactItem>
+                                    <groupId>org.onap.holmes.rule-management</groupId>
+                                    <artifactId>holmes-rulemgt-frontend</artifactId>
+                                    <type>tar.gz</type>
+                                    <overWrite>true</overWrite>
+                                    <outputDirectory>target/version</outputDirectory>
+                                    <destFileName>holmes-rulemgt-frontend-${project.version}.tar.gz</destFileName>
+                                </artifactItem>
                             </artifactItems>
                         </configuration>
                     </execution>
                             <source>
                                 println project.properties['holmes.rule.project.version'];
                                 def versionArray;
-                                if ( project.properties['holmes.rule.project.version'] != null ) {
+                                if (project.properties['holmes.rule.project.version'] != null) {
                                     versionArray = project.properties['holmes.rule.project.version'].split('-');
                                 }
 
-                                project.properties['project.docker.latesttag.version']=versionArray[0] + "-STAGING-latest";
+                                project.properties['project.docker.latesttag.version'] = versionArray[0] + "-STAGING-latest";
 
                                 println 'New Tag for docker:' +
-                                project.properties['project.docker.latesttag.version'];
+                                        project.properties['project.docker.latesttag.version'];
                             </source>
                         </configuration>
                     </execution>
                                         <dockerFileDir>${basedir}/target/version/</dockerFileDir>
                                         <dockerFile>${basedir}/target/version/Dockerfile</dockerFile>
                                         <tags>
-                                           <tag>${project.version}</tag>
+                                            <tag>${project.version}</tag>
                                             <tag>${project.version}-STAGING-${maven.build.timestamp}</tag>
                                             <tag>${project.docker.latesttag.version}</tag>
                                         </tags>
             <artifactId>holmes-rulemgt</artifactId>
             <version>${project.version}</version>
         </dependency>
+        <dependency>
+            <groupId>org.onap.holmes.rule-management</groupId>
+            <artifactId>holmes-rulemgt-frontend</artifactId>
+            <version>${project.version}</version>
+            <type>tar.gz</type>
+        </dependency>
     </dependencies>
 </project>