How do I exclude the sources jar in mvn deploy?

后端 未结 7 903
半阙折子戏
半阙折子戏 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:31

    
        org.apache.maven.plugins
        maven-source-plugin
        3.0.1
        
            false
        
        
            
                package
                attach-sources
                
                    jar
                           
            
        
    
    

    The attach parameter specifies whether the java sources will be attached to the artifact list of the project.
    false

提交回复
热议问题