远程私服发布jar包

  1. 配置项目POM.xml

                      
                                     
                              nexus-releases                
                              http://127.0.0.1:8081/nexus/content/groups/public    
                                   
                                     
                             nexus-snapshots               
                            http://127.0.0.1:8081/nexus/content/repositories/snapshots
                       
            
    
  2. 配置nexus的用户名密码

              
                   
                        nexus-releases
                        admin
                        Admin@123
                                 
                                     
                      nexus-snapshots
                      admin
                      Admin@123
                              
              
    
  3. 指向maven发布命令

maven deploy或执行IDEA模块maven的deploy指令

你可能感兴趣的:(远程私服发布jar包)