What is the best way to avoid maven-jar?

后端 未结 9 2225
后悔当初
后悔当初 2020-11-27 05:40

I am using a different plugin (ant4eclipse) to jar my files. What is the best way to avoid the maven-jar plugin from executing?

  • I tried to remove the <
9条回答
  •  情书的邮戳
    2020-11-27 06:24

    Using maven 3.3.9, the following worked for me:

    
        org.apache.maven.plugins
        maven-jar-plugin
        3.1.2
        
            
                default-jar
                none
                
                    unwanted
                    unwanted
                
            
        
    
    
        org.apache.maven.plugins
        maven-install-plugin
        3.0.0-M1
        
            true
        
    
    

    So in case of the maven-jar-plugin, I bound it to a non-existent phase. For the maven-install-plugin, I used the "skip" configuration parameter. The documentation about it says: "Set this to true to bypass artifact installation. Use this for artifacts that does not need to be installed in the local repository."

提交回复
热议问题