Pages

Sunday, July 21, 2013

How to install a custom maven dependency to your local repository

This is very easy to do. Open a terminal and enter the following command.

mvn install:install-file -Dfile=c:\customBuiltjar-{version}.jar -DgroupId=your.jar.groupid  -DartifactId=customBuiltjar -Dversion={version} -Dpackaging=jar

Here the -Dfile parameter indicates the path to jar file. Also replace the -DgroupId with your group id for the dependency.

No comments:

Post a Comment