diff options
author | guochuyicmri <guochuyi@chinamobile.com> | 2019-05-30 18:52:03 +0800 |
---|---|---|
committer | guochuyicmri <guochuyi@chinamobile.com> | 2019-05-30 18:52:05 +0800 |
commit | f38b3423a4ce40d8b5801243d682aa423abbd753 (patch) | |
tree | a851cd68443b72118aca672c119cbc4c5c68b2d4 /distribution/pom.xml | |
parent | da3c80aefd89bfa3f728c02d9d05eee18bb87cd9 (diff) |
Fix UUI frontend docker image creation failure
Change-Id: I717e982d453bb6e30ec4f2b0e278ebb043fcef71
Issue-ID: USECASEUI-273
Signed-off-by: guochuyicmri <guochuyi@chinamobile.com>
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> |