Local Maven Depenency

 
 

Share on Google+Share on Google+

Deepak Kumar
Local Maven Depenency
1 Answer(s)      6 years and 9 months ago
Posted in : Maven
Ads

Hi,

What is local maven dependency? How to manage local maven dependency?

Thanks

Ads
View Answers

April 2, 2011 at 11:58 PM


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









Related Tutorials/Questions & Answers:
Local Maven Depenency
Local Maven Depenency  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
Local repository in Maven
Local repository in Maven  How to read the jars/plugins from local instead of online while building an application with Maven. Any detailed steps will be appreciated
Advertisements
Maven Dependency local-link_sjs0.6_2.11 >> 0.0.7
You should include the dependency code given in this page to add Maven Dependency of com.stabletechs >> local-link_sjs0.6_2.11 version0.0.7 in your project
Maven Dependency local-link_sjs0.6_2.11 >> 1.0.0
You should include the dependency code given in this page to add Maven Dependency of com.stabletechs >> local-link_sjs0.6_2.11 version1.0.0 in your project
Maven Dependency local-link_sjs0.6_2.11 >> 1.1.0
You should include the dependency code given in this page to add Maven Dependency of com.stabletechs >> local-link_sjs0.6_2.11 version1.1.0 in your project
Maven Dependency local-link_sjs0.6_2.11 >> 0.0.7
You should include the dependency code given in this page to add Maven Dependency of com.stabtechs >> local-link_sjs0.6_2.11 version0.0.7 in your project
Maven Dependency local-link_sjs0.6_2.11 >> 0.1.0
You should include the dependency code given in this page to add Maven Dependency of com.stabtechs >> local-link_sjs0.6_2.11 version0.1.0 in your project
Maven Dependency transmittable-thread-local >> 2.0.0
You should include the dependency code given in this page to add Maven Dependency of com.alibaba >> transmittable-thread-local version2.0.0 in your project
Maven Dependency transmittable-thread-local >> 2.0.2
You should include the dependency code given in this page to add Maven Dependency of com.alibaba >> transmittable-thread-local version2.0.2 in your project
Maven Dependency browserstack-local-java >> 0.2.0
You should include the dependency code given in this page to add Maven Dependency of com.browserstack >> browserstack-local-java version0.2.0 in your project
Maven Dependency browserstack-local-java >> 1.0.1
You should include the dependency code given in this page to add Maven Dependency of com.browserstack >> browserstack-local-java version1.0.1 in your project
Maven Dependency transmittable-thread-local >> 2.1.0
You should include the dependency code given in this page to add Maven Dependency of com.alibaba >> transmittable-thread-local version2.1.0 in your project
Maven Dependency transmittable-thread-local >> 2.0.1
You should include the dependency code given in this page to add Maven Dependency of com.alibaba >> transmittable-thread-local version2.0.1 in your project
Maven Dependency browserstack-local-java >> 0.1.0
You should include the dependency code given in this page to add Maven Dependency of com.browserstack >> browserstack-local-java version0.1.0 in your project
Maven Dependency browserstack-local-java >> 0.3.0
You should include the dependency code given in this page to add Maven Dependency of com.browserstack >> browserstack-local-java version0.3.0 in your project
Maven Dependency browserstack-local-java >> 1.0.0
You should include the dependency code given in this page to add Maven Dependency of com.browserstack >> browserstack-local-java version1.0.0 in your project
Maven Dependency browserstack-local-java >> 1.0.2
You should include the dependency code given in this page to add Maven Dependency of com.browserstack >> browserstack-local-java version1.0.2 in your project
Local Language
Local Language  Anybody help me..... how to implement local language in my project
Maven Dependency tranql-connector-derby-client-local >> 1.0
You should include the dependency code given in this page to add Maven Dependency of tranql >> tranql-connector-derby-client-local version1.0 in your project
Maven Dependency tranql-connector-derby-client-local >> 1.0-SNAPSHOT
You should include the dependency code given in this page to add Maven Dependency of tranql >> tranql-connector-derby-client-local version1.0-SNAPSHOT in your project
Maven Dependency tranql-connector-derby-client-local >> 1.0-20050908.005819
You should include the dependency code given in this page to add Maven Dependency of tranql >> tranql-connector-derby-client-local version1.0-20050908.005819 in your project
Maven Dependency tranql-connector-derby-client-local >> 1.0-20050908.020347
You should include the dependency code given in this page to add Maven Dependency of tranql >> tranql-connector-derby-client-local version1.0-20050908.020347 in your project
Maven Dependency tranql-connector-derby-client-local >> 1.0-20050923.020029
You should include the dependency code given in this page to add Maven Dependency of tranql >> tranql-connector-derby-client-local version1.0-20050923.020029 in your project
Maven Dependency tranql-connector-derby-client-local >> 1.1
You should include the dependency code given in this page to add Maven Dependency of tranql >> tranql-connector-derby-client-local version1.1 in your project
Maven Dependency tranql-connector-derby-embed-local >> 1.0
You should include the dependency code given in this page to add Maven Dependency of tranql >> tranql-connector-derby-embed-local version1.0 in your project
Maven Dependency tranql-connector-derby-embed-local >> 1.0-SNAPSHOT
You should include the dependency code given in this page to add Maven Dependency of tranql >> tranql-connector-derby-embed-local version1.0-SNAPSHOT in your project
Maven Dependency tranql-connector-derby-embed-local >> 1.0-20050908.005731
You should include the dependency code given in this page to add Maven Dependency of tranql >> tranql-connector-derby-embed-local version1.0-20050908.005731 in your project
Maven Dependency tranql-connector-derby-embed-local >> 1.0-20050908.020255
You should include the dependency code given in this page to add Maven Dependency of tranql >> tranql-connector-derby-embed-local version1.0-20050908.020255 in your project
Maven Dependency tranql-connector-derby-embed-local >> 1.0-20050923.015658
You should include the dependency code given in this page to add Maven Dependency of tranql >> tranql-connector-derby-embed-local version1.0-20050923.015658 in your project
Maven Dependency tranql-connector-derby-embed-local >> 1.1
You should include the dependency code given in this page to add Maven Dependency of tranql >> tranql-connector-derby-embed-local version1.1 in your project
Maven Dependency charm-down-plugin-local-notifications >> 3.0.0
You should include the dependency code given in this page to add Maven Dependency of com.gluonhq >> charm-down-plugin-local-notifications version3.0.0 in your project

Ads

 
Advertisement null

Ads