diff options
author | Tao Shen <shentao@chinamobile.com> | 2019-05-30 11:04:22 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2019-05-30 11:04:22 +0000 |
commit | de16e84e7119f4f414306fea6c84f8f0d86520a5 (patch) | |
tree | 76814b04e0b98140b2b6feac29670174f1b64641 /distribution/pom.xml | |
parent | 89bd8b5842a3e1849c1888f2456e7c18f7551bf0 (diff) | |
parent | f38b3423a4ce40d8b5801243d682aa423abbd753 (diff) |
Merge "Fix UUI frontend docker image creation failure"
Diffstat (limited to 'distribution/pom.xml')
-rw-r--r-- | distribution/pom.xml | 36 |
1 files changed, 19 insertions, 17 deletions
diff --git a/distribution/pom.xml b/distribution/pom.xml index a41f6ca5..66c61bae 100644 --- a/distribution/pom.xml +++ b/distribution/pom.xml @@ -66,67 +66,68 @@ <artifactId>maven-resources-plugin</artifactId> <executions> <execution> - <id>copy-resources-portal-linux</id> + <id>copy-tomcat-resources-linux64</id> <phase>process-resources</phase> <goals> <goal>copy-resources</goal> </goals> <configuration> - <outputDirectory>${linux64outputdir}/tomcat/webapps/</outputDirectory> + <outputDirectory>${linux64outputdir}/tomcat</outputDirectory> <resources> <resource> - <directory>../usecaseui-portal/</directory> - <filtering>false</filtering> + <directory>${basedir}/target/tomcat/apache-tomcat-${tomcat.version}</directory> <includes> - <include>usecase-ui.war</include> + <include>**/*</include> </includes> + <excludes> + <exclude>**/*.bat</exclude> + </excludes> </resource> </resources> - <overwrite>true</overwrite> </configuration> </execution> <execution> - <id>copy-resources-linux64</id> + <id>copy-resources-portal-linux</id> <phase>process-resources</phase> <goals> <goal>copy-resources</goal> </goals> <configuration> - <outputDirectory>${linux64outputdir}</outputDirectory> + <outputDirectory>${linux64outputdir}/tomcat/webapps/usecase-ui</outputDirectory> <resources> <resource> - <directory>src/main/assembly/</directory> + <directory>${basedir}/../usecaseui-portal/usecase-ui</directory> <filtering>false</filtering> <includes> <include>**/*</include> </includes> - <excludes> - <exclude>**/*.bat</exclude> - </excludes> </resource> </resources> <overwrite>true</overwrite> </configuration> </execution> <execution> - <id>copy-tomcat-resources-linux64</id> + <id>copy-resources-linux64</id> <phase>process-resources</phase> <goals> <goal>copy-resources</goal> </goals> <configuration> - <outputDirectory>${linux64outputdir}/tomcat</outputDirectory> + <outputDirectory>${linux64outputdir}</outputDirectory> <resources> <resource> - <directory>${basedir}/target/tomcat/apache-tomcat-${tomcat.version}</directory> + <directory>src/main/assembly/</directory> + <filtering>false</filtering> <includes> <include>**/*</include> </includes> <excludes> <exclude>**/*.bat</exclude> + <exclude>Dockerfile</exclude> </excludes> </resource> </resources> + <overwrite>true</overwrite> </configuration> </execution> <execution> @@ -154,6 +155,7 @@ <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-antrun-plugin</artifactId> + <version>1.8</version> <executions> <execution> <id>distribution</id> @@ -162,7 +164,7 @@ <goal>run</goal> </goals> <configuration> - <target name="distribution"> + <tasks name="${project.artifactId}"> <tar destfile="${dockeroutput}/usecase-ui-${project.version}-linux64.tar.gz" longfile="posix" compression="gzip"> <tarfileset dir="${linux64outputdir}" filemode="0644" dirmode="0755"> <exclude name="**/*.sh"/> @@ -172,7 +174,7 @@ </tarfileset> </tar> <attachartifact file="${dockeroutput}/usecase-ui-${project.version}-linux64.tar.gz" classifier="linux64" type="tar.gz"/> - </target> + </tasks> </configuration> </execution> </executions> |