How can I deploy a zip file created with the maven-antrun-plugin?

前端 未结 3 1492
梦谈多话
梦谈多话 2020-12-28 10:31

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

3条回答
  •  星月不相逢
    2020-12-28 11:15

    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
    

提交回复
热议问题