Skip to content

Instantly share code, notes, and snippets.

@namuan
Created September 4, 2018 09:15
Show Gist options
  • Save namuan/2b5a33a27e1670262049bcbf17e3b0d2 to your computer and use it in GitHub Desktop.
Save namuan/2b5a33a27e1670262049bcbf17e3b0d2 to your computer and use it in GitHub Desktop.
[Maven standalone commands to install and retrieve dependencies] #maven

Installing file to a repo:

mvn install:install-file -DgroupId=com.github.namuan -DartifactId=common-schema -Dversion=1.5.0-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file

Checking dependency from a custom Nexus repo

mvn org.apache.maven.plugins:maven-dependency-plugin:2.1:get -DrepoUrl=http://nexus.server/nexus/content/groups/maven -DgroupId=com.github.namuan -DartifactId=common-schema -Dversion=1.5.0-SNAPSHOT -Dpackaging=jar
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment