使用Maven的deploy命令上传第三方jar到本地私服

在maven的settings.xml里面配置

         
       nexus-releases     
       *     
      http://IP:8081/repository/maven-public     
        
         
      nexus-snapshots     
      *     
      http://IP:8081/repository/maven-snapshots    
	

        
          
      nexus-releases    
       admin    
      admin123    
        
        
      nexus-snapshots    
      admin    
      admin123    
         
   

maven

mvn deploy:deploy-file -DgroupId=com.alibaba.group -DartifactId=dm7jdbc -Dversion=7.0 -Dpackaging=jar -Dfile=C:\Users\admin\Desktop\zujian\Dm7JdbcDriver17.jar -Durl=http://IP:8081/repository/3rdParty/ -DrepositoryId=nexus-releases

命令:

 

你可能感兴趣的:(maven)