通过deploy把jar自动发布到私服

1.要在上传的项目的POM.xml中,追加如下:

  com.idss
  XXXXXtest
  jar
  3.0.4
  ${project.artifactId}

   
    
      nexus-releases
      releases
      http://10.10.XX.X:8081/nexus/content/repositories/releases
    

    
      nexus-snapshots
      snapshots
      http://10.10.XX.X:8081/nexus/content/repositories/snapshots
    
  

2.在maven的settings.xml中,追加如下:

	
		nexus-releases
		deployment
		deployment123
	
	
		nexus-snapshots
		deployment
		deployment123
	
  

3.在Terminal中输入如下命令:

   a. mvn clean install -Dmavne.test.skip=true

   b. mvn deploy -Dmaven.test.skip=true

你可能感兴趣的:(通过deploy把jar自动发布到私服)