Maven

Maven Local Repository example

4. Installing artifacts/dependencies in the local repository

You can install a jar into your local repository that is not managed by maven and is not under any other remote repository.

Use the following command in order to do that

command:

mvn install:install-file -Dfile=./jar_file-1.0.0.jar -DgroupId=your_group -DartifactId=your_artifact -Dversion=1.0.0 -Dpackaging=jar -DgeneratedPom=true

After running the command, you will find inside the local repository a folder called your_group/your_artifact/1.0.0 and inside of it the jar file, the associated pom and all the related meta-file.

  • You can find more information Sign up

Francisco Hernandez

JEE technologies geek and development engineer. I have over 13 years of experience as software engineer in JEE architectures: Design, development, improvement etc. Currently I work as software architect and consultant. I am mainly involved in projects related to the bank and energy sectors based on Java technologies and Oracle products. I am also very interested in open-source projects
Subscribe
Notify of
guest

This site uses Akismet to reduce spam. Learn how your comment data is processed.

0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
Back to top button