4.0.0 org.onap.vfc.nfvo.multivimproxy vfc-nfvo-multivimproxy 1.0.0-SNAPSHOT ../pom.xml 1.0.0-SNAPSHOT vfc-nfvo-multivimproxy-deployment vfc-nfvo-multivimproxy-deployment pom org.codehaus.gmaven gmaven-plugin 1.5 multivimproxy package package execute System.out.println("******** Going to make release zip ********") deployFolder = "${project.build.directory}/deployoutput" deployUnzip = "${project.build.directory}/deployunzip" outfileName = "${package.name}-${project.version}.zip" ant.delete(dir: "${deployFolder}") ant.mkdir(dir: "${deployFolder}") ant.delete(dir: "${deployUnzip}") ant.mkdir(dir: "${deployUnzip}") ant.mkdir(dir: "${deployUnzip}/webapps/") ant.mkdir(dir: "${deployUnzip}/webapps/ROOT") ant.mkdir(dir: "${deployUnzip}/logs") ant.copy(todir: "${deployUnzip}") { fileset(dir: "${basedir}/src/main/release"){ exclude(name: "**/.gitignore") } } ant.copy(todir: "${deployUnzip}/docker") { fileset(dir: "${basedir}/../docker"){ exclude(name: "**/.gitignore") } } ant.copy(todir: "${deployUnzip}/webapps/ROOT") { fileset(dir: "${project.build.directory}/../../service/target/${package.name}-${project.version}") } ant.zip(destfile: "${deployFolder}/${outfileName}") { fileset(dir: "${deployUnzip}") } System.out.println("******** completed. ************") org.codehaus.mojo build-helper-maven-plugin attach-artifacts package attach-artifact ${project.build.directory}/deployoutput/${package.name}-${project.version}.zip zip