Install 3rd party library to Maven

Installing a third party library to Maven is an easy task. The maven-install-plugin provides a goal to accomplish it easily. You put the library into your local repository by using the following command:

mvn install:install-file -Dfile=<path-to-file> -DgroupId=<group-id>
-DartifactId=<artifact-id> -Dversion=<version> -Dpackaging=<packaging>

If the library was built with Maven you need the file location argument, only. See the following example:

mvn install:install-file -Dfile=<path-to-file>
chevron_left
chevron_right

Leave a comment

Your email address will not be published. Required fields are marked *

Comment
Name
Email
Website

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