idea 打包发布代码到nexcus

maven setting.xml配置文件



 
   
     snapshot
     admin
     123456
   
     
    release
     admin
     123456
   
 


    
        dev
        dev
        http://192.168.3.119:8889/repository/maven-public/
        nexus
    



     
  
   dev    
        
         
   
        nexus    
   
        http://192.168.3.119:8889/repository/maven-public/    
   
            
          true    
            
   
            
          true    
            
          
       
     
      
           
          
            public   
            Public Repositories   
            http://192.168.3.119:8889/repository/maven-public/   
           
       
 

   
    dev 
  

pom配置

  
        
            release
            http://192.168.3.119:8889/repository/maven-releases/
        
        
            snapshot
            http://192.168.3.119:8889/repository/maven-snapshots/
        
    

注意这里的id为distributionManagement对应的repository id不然会报401错误,一个仓库对应一个多个仓库就写多个

 
   
     snapshot
     admin
     123456
   
     
    release
     admin
     123456
   
 

idea 直接打包发布即可

image.png

参考博客

https://blog.csdn.net/cwh056056/category_5915341.html](https://blog.csdn.net/cwh056056/category_5915341.html)
https://blog.csdn.net/cwh056056/article/details/49646111
https://blog.csdn.net/zalu9810/article/details/107352586?utm_medium=distribute.pc_relevant.none-task-blog-BlogCommendFromMachineLearnPai2-2.channel_param&depth_1-utm_source=distribute.pc_relevant.none-task-blog-BlogCommendFromMachineLearnPai2-2.channel_param

你可能感兴趣的:(idea 打包发布代码到nexcus)