1. 配置项目POM.xml

     <distributionManagement>
         <repository>
             <id>nexus-releases</id>
             <url>http://127.0.0.1:8081/nexus/content/groups/public</url>
         </repository>
         <snapshotRepository>
             <id>nexus-snapshots</id>
             <url>http://127.0.0.1:8081/nexus/content/repositories/snapshots</url>
         </snapshotRepository>
    
     </distributionManagement>
    
  2. 配置nexus的用户名密码

     <servers>
         <server>  
             <id>nexus-releases</id>  
             <username>admin</username>  
             <password>Admin@123</password>  
         </server>  
         <server>  
             <id>nexus-snapshots</id>  
             <username>admin</username>  
             <password>Admin@123</password>  
         </server> 
       </servers>
    
  3. 指向maven发布命令

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

相关文章:

  • 2021-11-30
  • 2022-12-23
  • 2022-12-23
  • 2021-12-10
  • 2021-12-25
  • 2021-10-04
猜你喜欢
  • 2022-01-14
  • 2022-12-23
  • 2021-09-03
  • 2022-02-12
  • 2021-11-01
相关资源
相似解决方案