Installing Third-party Libraries into Maven2 Repo

To install a third-party jar into your local Maven repository perform the following command:

mvn install:install-file \
-Dfile=[path_to_jar] \
-DgroupId=[group_id] \
-DartifactId=[artifact_id] \
-Dversion=[version_number] \
-Dpackaging=jar

More information about the maven install-file plugin can be found here.


About this entry


0 comments: