SpringBoot maven打包源码发布到仓库配置

 一、项目pom.xml配置

添加发布仓库

配置上传源码



    4.0.0
    
        org.springframework.boot
        spring-boot-starter-parent
        2.1.9.RELEASE
        
    
    com.mk
    test-maven
    1.0.0-SNAPSHOT
    test-maven
    test maven

    
        1.8
    

    
        
            releases-deploy
            release Repository
            http://maven.mk.com/repositories/releases/
        
        
            snapshots-deploy
            snapshots Repository
            http://maven.mk.com/repositories/snapshots
        
    


    
        
            
            
                org.apache.maven.plugins
                maven-source-plugin
                2.2.1
                
                    true
                
                
                    
                        attach-sources
                        install
                        
                            jar
                        
                    
                
            
        
    

 

二、maven setting.xml配置

配置仓库密码

也可以把仓库配置在setting文件里面mirror里面





  
    
      releases-deploy
      test-releases
      R12345
    
    
      snapshots-deploy
      test-snapshots
      S12345
    
  
 

 

你可能感兴趣的:(Maven,Spring,Boot)