What is local maven dependency? How to manage local maven dependency?
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
c:\mylib\hibernate-shards-3.0.0.beta2.jar is the location of your downloaded jar file.
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.