Skip to content

Instantly share code, notes, and snippets.

@imjamespond
Last active March 5, 2018 08:07
Show Gist options
  • Save imjamespond/f300508786928df73fa5658c4dbacb8e to your computer and use it in GitHub Desktop.
Save imjamespond/f300508786928df73fa5658c4dbacb8e to your computer and use it in GitHub Desktop.
maven command
deploying 3rd party JARs to remote repository

by cmd

mvn -X deploy:deploy-file -DgroupId=data-sharing
-DartifactId=ST
-Dversion=4.0.8
-Dpackaging=jar
-Dfile=/some-path/ST-4.0.8.jar
-DrepositoryId=deploymentRepo
-Durl=http://some-url:18080/nexus/content/repositories/thirdparty/

via pom.xml

  <repositories>
		<repository>
	      <id>qy1</id>  
	      <name>Maven Qy1 Mirror</name>  
	      <url>http://qy1:19000/nexus/content/groups/public/</url>
	    </repository>     
	</repositories>

maven setting.xml deploymentRepo repouser repopwd

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment