Deploying assembly package with maven-release-plugin

前端 未结 2 698
爱一瞬间的悲伤
爱一瞬间的悲伤 2020-12-24 02:45

We use Hudson and the maven-release-plugin to do the release builds. Now I have a project which contains an assembly that puts together all needed components and then packag

2条回答
  •  一向
    一向 (楼主)
    2020-12-24 02:49

    Meanwhile, I found 2 ways of doing what I wanted.

    The maven-build-helper-plugin allows to add additional entries to the list of artifacts that should be deployed:

        
             org.codehaus.mojo
             build-helper-maven-plugin
             1.3
             
               
                 attach-distribution
                 package
                 
                   attach-artifact
                 
                 
                   
                     
                       target/${pom.artifactId}-${pom.version}.tar.gz
                       tar.gz
                     
                   
                 
               
             
           
    

    The other is as simple as it gets and someone on the maven-user mailinglist pointed this out. Simple use the assembly:single goal instead of asssembly:assembly. This way the generated artifact is uploaded to the repository during the deploy phase.

        
            dist-assembly
            package
            
                single 
            
        
    

提交回复
热议问题