Hi,
What is local maven dependency? How to manage local maven dependency?
Thanks
Hi,
If some library is not available on the public maven repository you can add it to the local maven repository.
The local maven repository lies on your system in .m2 directory.
The mvn install command will help you in installing libraries in your local repository.
For example to add following library:
<dependency> <groupId>hibernate</groupId> <artifactId>shards</artifactId> <version>3.0.0B2</version> </dependency>
You can issue the following command:
mvn install:install-file -Dfile=c:\mylib\hibernate-shards-3.0.0.beta2.jar -DgroupId=hibernate -DartifactId=shards -Dversion=3.0.0B2 -Dpackaging=jar -DgeneratePom=true
Where c:\mylib\hibernate-shards-3.0.0.beta2.jar
is the location of your downloaded jar file.
Thanks
Ads