4.0.0
org.onap.vfc.nfvo.resmanagement
resmanagement-service-root
1.0.0-SNAPSHOT
resmanagement-deployment
pom
UTF-8
org.codehaus.gmaven
gmaven-plugin
1.5
resmanagement 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}/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
vfc/nfvo/resmanagement/ResmanagementService/deployment