Skip to content

Instantly share code, notes, and snippets.

@ledangtuanbk
Created September 26, 2019 09:15
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save ledangtuanbk/fce4b3e3c46be19ee1837e9cda787f79 to your computer and use it in GitHub Desktop.
1. View dependency:tree
mvn dependency:tree
2. install jar to localhost
mvn install:install-file -Dfile=/home/ldt/Downloads/hitutils.jar -DgroupId=com.ldt -DartifactId=hit -Dversion=1.0 -Dpackaging=jar
3. install jar file to nexus repository
mvn deploy:deploy-file -DgroupId=com.ldt \
-DartifactId=hit \
-Dversion=1.0 \
-Dpackaging=jar \
-Dfile=/home/ldt/Downloads/hitutils.jar \
-DrepositoryId=nexus \
-Durl=http://123.24.206.9:9999/repository/maven-releases
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment