From 368219ed3caa2a2de7d92a7f45626e9d37529b7e Mon Sep 17 00:00:00 2001 From: huangjian Date: Tue, 20 Sep 2016 20:13:43 +0800 Subject: Output Linux distribution package Change-Id: I359b251d96076718c704b3d68127c9401e345643 Issue-id: TOSCA-63 Signed-off-by: huangjian --- catalog-core/distribution/catalog-all/pom.xml | 178 +++++++++++++++++++------- 1 file changed, 131 insertions(+), 47 deletions(-) (limited to 'catalog-core/distribution/catalog-all') diff --git a/catalog-core/distribution/catalog-all/pom.xml b/catalog-core/distribution/catalog-all/pom.xml index 341a070d..315ba121 100644 --- a/catalog-core/distribution/catalog-all/pom.xml +++ b/catalog-core/distribution/catalog-all/pom.xml @@ -27,23 +27,43 @@ catalog-all openo/commontosca/catalog/distribution/catalog-all pom - - - openo-commontosca-catalog - + maven-resources-plugin - copy-resources + copy-resources-${linux64id} + process-resources + + copy-resources + + + ${linux64outputdir} + + + src/main/assembly/ + false + + **/* + + + **/*.bat + + + + true + + + + copy-resources-${win64id} process-resources copy-resources - target/assembly/ + ${win64outputdir} src/main/assembly/ @@ -51,6 +71,9 @@ **/* + + **/*.sh + true @@ -64,72 +87,125 @@ maven-dependency-plugin - unpack-catalog - package + unpack-catalog-${linux64id} - unpack-dependencies + unpack + prepare-package - org.openo.common-tosca.catalog - catalog-standalone - - target/assembly/catalog - + + + org.openo.common-tosca.catalog + catalog-standalone + tar.gz + linux64 + + + **/*.bat,*.cmd + ${linux64outputdir}/catalog + false + true + true - unpack-httpserver - package + unpack-httpserver-${linux64id} - unpack-dependencies + unpack + prepare-package - org.openo.common-tosca.catalog - httpserver - - target/assembly/ - + + + org.openo.common-tosca.catalog + httpserver + zip + + + **/*.bat,*.cmd + ${linux64outputdir} + false + true + true - - - - org.apache.maven.plugins - maven-antrun-plugin - - zip - package + unpack-catalog-${win64id} - run + unpack + prepare-package - - - - - + + + org.openo.common-tosca.catalog + catalog-standalone + zip + win64 + + + *.sh,*/*.sh,*/*/*.sh + ${win64outputdir}/catalog + false + true + true + + + + unpack-httpserver-${win64id} + + unpack + + prepare-package + + + + org.openo.common-tosca.catalog + httpserver + zip + + + *.sh,*/*.sh,*/*/*.sh + ${win64outputdir} + false + true + true - + - org.codehaus.mojo - build-helper-maven-plugin + org.apache.maven.plugins + maven-antrun-plugin - attach-artifacts + distribution package - attach-artifact + run - - - target/${packagename}-${project.version}.zip - zip - - + + + + + + + + + + + + + + + + + + + + + @@ -142,6 +218,14 @@ catalog-standalone ${project.version} zip + win64 + + + org.openo.common-tosca.catalog + catalog-standalone + ${project.version} + tar.gz + linux64 org.openo.common-tosca.catalog -- cgit 1.2.3-korg