I\'m using the maven-antrun-plugin to do a bunch of work with Ant, which ultimately results in a zip file. I\'d like to deploy the zip file to our maven server (Artifactory
The solution that worked for me (I'm not sure if it is ideal, it seems rather hackish) was to switch to the deploy:deploy-file goal:
org.apache.maven.plugins
maven-deploy-plugin
2.6
deploy-file
artifactory
zip
true
${project.distributionManagement.snapshotRepository.url}
${project.artifactId}
${project.groupId}
${project.version}
${WORKSPACE}/MyZip.zip
and invoke it explicitly:
mvn -U -X -pl projectname clean install deploy:deploy-file