I have a bunch of projects which are dependant on a set of commercial 3rd party libraries. We currently don\'t have a company repository so I have to install the libraries in my
Just to add to the correct example provided by @eugene-kuleshov:
Once you configure the maven-install-plugin
with the goal install-file
in your pom.xml
file with multiple executions, one execution per external jar, you have to use these jars in your pom.xml
as usual:
org.some.group
your-artifact
1.0
The maven-install-plugin
only copies your external jars to your local .m2
maven repository. That's it. It doesn't automatically include these jars as maven dependencies to your project.
It's a minor point, but sometimes easy to miss.
You do not need to include any
in your pom
as long as you are installing the external jars to the .m2
repository (which is the default)