Online Training Spring Hibernate Training in Delhi R Programming Training Course Big Data and Hadoop Training Java Training  
 

Local Maven Depenency

Ads

 
 

Share on Google+Share on Google+

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

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 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
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.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.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-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-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 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-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-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-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
Change Local Repository
In this section, you will learn to change the default local repository of Maven using setting.xml configuration file
php local variables
php local variables  Creating and calling a local variable in PHP
What are local variables?
What are local variables?   hi, What are local variables? thanks   Hi, The Local varaiables are those which are declared within a block of syntax like methods. Local variables should be initialised before
pom.xml local jar
pom.xml local jar  Hi, I have placed one jar file in the WEB-INF/lib folder now I wan't to use this jar in the maven build and test phases. How to use this jar file? Thanks
Local Variable and Instant Variable
Local Variable and Instant Variable  difference between Local Variable and Instant Variable   Difference between local variable... a method, while a local variable is declared within a method. Instance variable get
pom.xml local jar
pom.xml local jar  Hi, I have placed one jar file in the WEB-INF/lib folder now I wan't to use this jar in the maven build and test phases. How to use this jar file? Thanks   HI, You can add following dependency
Local transport in Agra
Local transport in Agra  Hi, What all local transports are available in Agra? I want to see Agra local places myself. Thanks   Hi, Taj... to move around Agra. You can hire any Local transport available in City. Read
URL folder download to local
URL folder download to local  I have a requirement to download all the folders and files inside from a SVN link to my local directory. Can you help how it could be done
Access a variable local and globally
Access a variable local and globally  how can we access a variable local and globel??   hello, if you want to access your variable with in the view then declare it in the view.h file and if you want your variable
What is a local, member and a class variable?
What is a local, member and a class variable?   Hi, What is a local, member and a class variable? thanks
Local Variable ,Package & import
Local Variable ,Package & import A local variable has a local scope.Such... it is declared. Example of Local variable : The class variable are declared in the class but not within methods of any class. Whereas the local variable exits within
Difference between the local and class variable.
Description: The class variable are declared in the class but not within methods of any class. Whereas the local variable exits within the methods of any... between the class and local variable. Showing Local Variable