部署Maven工程到Nexus私服

1. settings.xml配置



  nexus-maven-release
  admin
  123123


  nexus-maven-snapshot
  admin
  123123

2. 项目pom.xml配置


    
        nexus-maven-release
        nexus-release
        http://192.168.18.52:8081/repository/maven-releases/
    
    
        nexus-maven-snapshot
        nexus-snapshot
        http://192.168.18.52:8081/repository/maven-snapshots/
    

然后执行mvn deploy
部署Maven工程到Nexus私服_第1张图片
在maven-public仓库中可以看到上传的jar

你可能感兴趣的:(mavennexus3)