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

前端 未结 3 1473
梦谈多话
梦谈多话 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:16

    The solution worked for me is to add the tag after zip creation, filled with the same path and zip filename . So something like:

        
            
                zip-artifacts
                package
                
                    run
                
                
                    
                        
                            
                        
                        
                    
                
            
        
    

    Remember that the zip file has to exists, otherwise attachartifact returns "file does not exists" error (consider to use whenempty="create" in tag in order to avoid errors).

提交回复
热议问题