diff options
author | zhangab <zhanganbing@chinamobile.com> | 2018-09-27 07:34:55 +0200 |
---|---|---|
committer | zhangab <zhanganbing@chinamobile.com> | 2018-09-27 07:34:56 +0200 |
commit | fbb4c573c53e450086dc622c069ad4ffbb9e983d (patch) | |
tree | cb7874aeebd05a690c8d86743a58187c4f1b7772 /standalone | |
parent | 84a9ea31d47686afd44d0aaa857b8a5ea64bd373 (diff) |
Fix docker build error for usecase-ui-server1.2.0
Change-Id: I6b6c1230b3687cccc34c938164d2e26f8418224b
Issue-ID: USECASEUI-152
Signed-off-by: zhangab <zhanganbing@chinamobile.com>
Diffstat (limited to 'standalone')
-rw-r--r-- | standalone/pom.xml | 87 |
1 files changed, 65 insertions, 22 deletions
diff --git a/standalone/pom.xml b/standalone/pom.xml index ed689dbc..07dc53b1 100644 --- a/standalone/pom.xml +++ b/standalone/pom.xml @@ -23,16 +23,17 @@ <modelVersion>4.0.0</modelVersion> <artifactId>standalone</artifactId> + <version>1.2.0-SNAPSHOT</version> <packaging>pom</packaging> - <name>usecase-ui-server/standalone</name> + <name>usecase-ui-server-standalone</name> <properties> <packagename>usecase-ui-server</packagename> <linux64id>linux64</linux64id> <win64id>win64</win64id> - <linux64outputdir>target/assembly/${linux64}</linux64outputdir> - <win64outputdir>target/assembly/${win64id}</win64outputdir> - <version.output>target/version</version.output> + <linux64outputdir>target/assembly/${linux64}/</linux64outputdir> + <win64outputdir>target/assembly/${win64id}/</win64outputdir> + <version.output>target/version/</version.output> <usecaseui.version>1.2.0</usecaseui.version> <maven.build.timestamp.format>yyyyMMdd'T'HHmmss'Z'</maven.build.timestamp.format> </properties> @@ -43,7 +44,6 @@ <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-resources-plugin</artifactId> - <version>2.4.3</version> <executions> <execution> <id>copy-resources-${linux64id}</id> @@ -52,7 +52,7 @@ <goal>copy-resources</goal> </goals> <configuration> - <outputDirectory>${linux64outputdir}</outputDirectory> + <outputDirectory>${basedir}/${linux64outputdir}</outputDirectory> <resources> <resource> <directory>src/main/assembly/</directory> @@ -76,7 +76,7 @@ <goal>copy-resources</goal> </goals> <configuration> - <outputDirectory>${win64outputdir}</outputDirectory> + <outputDirectory>${basedir}/${win64outputdir}</outputDirectory> <resources> <resource> <directory>src/main/assembly/</directory> @@ -163,6 +163,7 @@ <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-antrun-plugin</artifactId> + <version>1.8</version> <executions> <execution> <id>distribution</id> @@ -171,21 +172,57 @@ <goal>run</goal> </goals> <configuration> - <target name="distribution"> + <tasks name="${project.artifactId}"> <tar destfile="${version.output}/${packagename}-${project.version}-linux64.tar.gz" longfile="posix" compression="gzip"> - <tarfileset dir="target/assembly/linux64" filemode="0644" dirmode="0755"> + <tarfileset dir="${linux64outputdir}" filemode="0644" dirmode="0755"> <exclude name="**/*.sh"/> </tarfileset> - <tarfileset dir="target/assembly/linux64" filemode="0755" dirmode="0755"> + <tarfileset dir="${linux64outputdir}" filemode="0755" dirmode="0755"> <include name="**/*.sh"/> </tarfileset> </tar> - <attachartifact file="${version.output}/${packagename}-${project.version}-linux64.tar.gz" classifier="linux64" type="tar.gz"/> + <!--attachartifact file="${version.output}/${packagename}-${project.version}-linux64.tar.gz" classifier="linux64" type="tar.gz"/--> <zip destfile="${version.output}/${packagename}-${project.version}-win64.zip" update="true"> - <zipfileset dir="target/assembly/win64" includes="**"/> + <zipfileset dir="${win64outputdir}" includes="**"/> </zip> - <attachartifact file="${version.output}/${packagename}-${project.version}-win64.zip" classifier="win64" type="zip"/> - </target> + <!--attachartifact file="${version.output}/${packagename}-${project.version}-win64.zip" classifier="win64" type="zip"/--> + </tasks> + </configuration> + </execution> + </executions> + </plugin> + <plugin> + <groupId>org.codehaus.mojo</groupId> + <artifactId>build-helper-maven-plugin</artifactId> + <executions> + <execution> + <id>attach-artifacts-linux64</id> + <phase>package</phase> + <goals> + <goal>attach-artifact</goal> + </goals> + <configuration> + <artifacts> + <artifact> + <file>${version.output}/${packagename}-${project.version}-linux64.tar.gz</file> + <type>tar.gz</type> + </artifact> + </artifacts> + </configuration> + </execution> + <execution> + <id>attach-artifacts-win64</id> + <phase>package</phase> + <goals> + <goal>attach-artifact</goal> + </goals> + <configuration> + <artifacts> + <artifact> + <file>${version.output}/${packagename}-${project.version}-win64.zip</file> + <type>zip</type> + </artifact> + </artifacts> </configuration> </execution> </executions> @@ -210,7 +247,7 @@ <build> <cleanup>try</cleanup> <dockerFileDir>${basedir}/${version.output}</dockerFileDir> - <dockerFile>${basedir}/target/version/Dockerfile</dockerFile> + <dockerFile>${basedir}/${version.output}/Dockerfile</dockerFile> <tags> <tag>${usecaseui.version}-SNAPSHOT-latest</tag> <tag>${usecaseui.version}-STAGING-latest</tag> @@ -244,11 +281,17 @@ </profile> </profiles> - <dependencies> - <dependency> - <groupId>org.onap.usecase-ui.server</groupId> - <artifactId>usecase-ui-server</artifactId> - <version>${project.version}</version> - </dependency> - </dependencies> + <dependencyManagement> + <dependencies> + <!--dependency> + <groupId>ant-contrib</groupId> + <artifactId>ant-contrib</artifactId> + </dependency--> + <dependency> + <groupId>org.onap.usecase-ui.server</groupId> + <artifactId>usecase-ui-server</artifactId> + <version>${project.version}</version> + </dependency> + </dependencies> + </dependencyManagement> </project> |