Local Maven Depenency

Local Maven Depenency

Hi,

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

Thanks

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









Related Tutorials/Questions & Answers:
Local Maven Depenency
Local Maven Depenency  Hi, What is local maven dependency? How to manage local maven dependency? Thanks (adsbygoogle = window.adsbygoogle... on the public maven repository you can add it to the local maven repository. The local
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
java sdk for qcloud cos v5 (xml api) maven depenency
java sdk for qcloud cos v5 (xml api) maven depenency  Hi, What is the java sdk for qcloud cos v5 (xml api) maven dependency code? I want to use in maven project. Thanks   Hi, The latest version of java sdk
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 Repository/Dependency: com.stabletechs | local-link_sjs0.6_2.11
Maven Repository/Dependency of Group ID com.stabletechs and Artifact ID local-link_sjs0.6_2.11. Latest version of com.stabletechs:local-link_sjs0.6_2.11... You can read more at: Maven Tutorials What is Apache Maven
Maven Repository/Dependency: com.stabtechs | local-link_sjs0.6_2.11
Maven Repository/Dependency of Group ID com.stabtechs and Artifact ID local-link_sjs0.6_2.11. Latest version of com.stabtechs:local-link_sjs0.6_2.11... at: Maven Tutorials What is Apache Maven? How to create Maven Web
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.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 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.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.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 >> 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.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 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
com.stabtechs - local-link_sjs0.6_2.11 version 0.1.0 Maven dependency. How to use local-link_sjs0.6_2.11 version 0.1.0 in pom.xml?
com.stabtechs  - Version 0.1.0 of local-link_sjs0.6_2.11 Maven dependency... for using the latest version of com.stabtechs - local-link_sjs0.6_2.11 in your Maven... the maven dependency of   com.stabtechs - local-link_sjs0.6_2.11 version
org.eclipse.dirigible - dirigible-repository-local version 8.8.1 Maven dependency. How to use dirigible-repository-local version 8.8.1 in pom.xml?
-repository-local in your Maven/Gradle project. Step 1: Create or use a Maven... the Maven dependency of org.eclipse.dirigible - dirigible-repository-local version...org.eclipse.dirigible  - Version 8.8.1 of dirigible-repository-local
org.eclipse.dirigible - dirigible-repository-local version 3.3.1 Maven dependency. How to use dirigible-repository-local version 3.3.1 in pom.xml?
-repository-local in your Maven/Gradle project. Step 1: Create or use a Maven... the Maven dependency of org.eclipse.dirigible - dirigible-repository-local version...org.eclipse.dirigible  - Version 3.3.1 of dirigible-repository-local
Maven Repository/Dependency: com.browserstack | browserstack-local-java
Maven Repository/Dependency of Group ID com.browserstack and Artifact ID browserstack-local-java. Latest version of com.browserstack:browserstack-local-java... at: Maven Tutorials What is Apache Maven? How to create Maven
Maven Repository/Dependency: org.datatransferproject | portability-cloud-local
Maven Repository/Dependency of Group ID org.datatransferproject and Artifact ID portability-cloud-local. Latest version of org.datatransferproject:portability-cloud-local dependencies. # Version Release Date
org.springframework.cloud - spring-cloud-deployer-local version 1.2.0.RELEASE Maven dependency. How to use spring-cloud-deployer-local version 1.2.0.RELEASE in pom.xml?
-deployer-local Maven dependency? How to use  org.springframework.cloud  - Version 1.2.0.RELEASE of spring-cloud-deployer-local in pom.xml? How to use... of org.springframework.cloud - spring-cloud-deployer-local in your Maven/Gradle project
Maven Repository/Dependency: com.alibaba | transmittable-thread-local
Maven Repository/Dependency of Group ID com.alibaba and Artifact ID transmittable-thread-local. Latest version of com.alibaba:transmittable-thread-local... 15 Feb 2016 You can read more at: Maven Tutorials
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-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-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.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.2.0
You should include the dependency code given in this page to add Maven Dependency of com.gluonhq >> charm-down-plugin-local-notifications version3.2.0 in your project
Maven Dependency charm-down-plugin-local-notifications >> 3.2.3
You should include the dependency code given in this page to add Maven Dependency of com.gluonhq >> charm-down-plugin-local-notifications version3.2.3 in your project
Maven Dependency charm-down-plugin-local-notifications-android >> 3.2.0
You should include the dependency code given in this page to add Maven Dependency of com.gluonhq >> charm-down-plugin-local-notifications-android version3.2.0 in your project
Maven Dependency charm-down-plugin-local-notifications-android >> 3.2.3
You should include the dependency code given in this page to add Maven Dependency of com.gluonhq >> charm-down-plugin-local-notifications-android version3.2.3 in your project
Maven Dependency charm-down-plugin-local-notifications-ios >> 3.2.0
You should include the dependency code given in this page to add Maven Dependency of com.gluonhq >> charm-down-plugin-local-notifications-ios version3.2.0 in your project
Maven Dependency charm-down-plugin-local-notifications-ios >> 3.2.3
You should include the dependency code given in this page to add Maven Dependency of com.gluonhq >> charm-down-plugin-local-notifications-ios version3.2.3 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-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.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 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
Maven Dependency charm-down-plugin-local-notifications >> 3.1.0
You should include the dependency code given in this page to add Maven Dependency of com.gluonhq >> charm-down-plugin-local-notifications version3.1.0 in your project
Maven Dependency charm-down-plugin-local-notifications >> 3.2.1
You should include the dependency code given in this page to add Maven Dependency of com.gluonhq >> charm-down-plugin-local-notifications version3.2.1 in your project
Maven Dependency charm-down-plugin-local-notifications >> 3.2.2
You should include the dependency code given in this page to add Maven Dependency of com.gluonhq >> charm-down-plugin-local-notifications version3.2.2 in your project

Ads