How do I exclude the sources jar in mvn deploy?

后端 未结 7 939
半阙折子戏
半阙折子戏 2021-01-01 17:03

When I run \"mvn deploy:deploy\", maven deploys 4 jar files to my internal remote repository.

They are:

[module-name]-1.jar
[module-name]-1.pom
[modu

7条回答
  •  一整个雨季
    2021-01-01 17:06

    As of version 2.2 of the maven-source-plugin you can skip source generation with a config option without having to put the plugin in a profile in your parent pom:

      
      
        org.apache.maven.plugins
        maven-source-plugin
        2.2.1
        
          true
        
      
    

提交回复
热议问题