Praneel PIDIKITI Praneel PIDIKITI - 3 years ago 127
Java Question

How to add local jar files to a Maven project?

How do I add local jar files (not yet part of the Maven repository) directly in my project's library sources?

Answer Source

Install the JAR into your local Maven repository as follows:

mvn install:install-file

Where: <path-to-file>  the path to the file to load
   <group-id>      the group that the file should be registered under
   <artifact-id>   the artifact name for the file
   <version>       the version of the file
   <packaging>     the packaging of the file e.g. jar


Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download