Latest Tutorials| Questions and Answers|Ask Questions?|Site Map



Home Answers Viewqa Maven Local Maven Depenency
Login         

View Questions and Answers by Category

Advertisements


 
Have Programming Question? Ask it here!
 
 
 


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


Hi,

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

Thanks


Advertisement
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   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
Change Local Repository
In this section, you will learn to change the default local repository of Maven using setting.xml configuration file
Maven - Maven
Maven  I am new to maven tool.i don't know anything abt that? plesae explain me about maven   Hi mamatha, Maven is a high-level... software foundation group. Maven deals with application development lifecycle
Maven Jobss Plugin - Maven
Maven Jobss Plugin  How to deploy your application using maven tool.... So, to make the things simple we used jboss-maven-plugin to deploy... org.codehaus.mojo jboss-maven-plugin  Hi, I was working on a project where
Maven 2 - Maven
Maven 2   Hi, I m new to Maven 2 and in process to implement Maven2. I have browse in the net and got my Maven 2 installed but now I m facing few concerns on creating a small project. Please help me in this regard Thanks
Local Language
Local Language  Anybody help me..... how to implement local language in my project
Maven Exclusion - Maven
Maven Exclusion  While doing a project I was encountered a problem... jsf-api-1.2_06.jar jsf-impl-1.2_06.jar Here is the full code of maven-war plugin maven-war-plugin 2.0.2 **/jdbc.properties   Hello,My problem
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
Maven 2.x Extension for Eclipse
from the Eclipse workspace without installing to local Maven repository... Maven 2.x Extension for Eclipse Maven Integration for Eclipse provides tight integration for Maven into the IDE and providing the following
Installing and Getting Hands on Maven
Installing and Getting Hands on Maven   ... file, let us shift on trying something out. Download Maven from maven.apache.org, unzip the archive into your local directory. Set the JAVA_HOME variable
Maven with eclipse
Maven with eclipse  Hai friends i m new to maven and quartz scheduler. I run the simple Helloworld quartz scheduler program as maven project in eclipse successfully. Now i want to cluster the same program in terracotta quartz
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
java - Maven
java  Can u send the maven plug in and related jar files.. i have down loded the zip file,but i need plug in for this... Plse send.... regards raghavendra
org.springframework.stereotype maven
org.springframework.stereotype maven  In my maven application its not able to find the package org.springframework.stereotype. What should be the entry in the pom.xml file? Thanks   Hi, you should add the spring
org.springframework.web maven
org.springframework.web maven  Hi, In my maven web application the package org.springframework.web is not found. What code should i add to the pom.xml file? Thanks   Hi, You should add the spring-web in your pom.xml
php local variables
php local variables  Creating and calling a local variable in PHP
Maven Project Build fails - Maven
Maven Project Build fails  HI Team I need an urgent help and guide. I have installed maven on my system. I am running Windows xp. When i am tryin to build the project app, I am getting this error. as below. Please
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
Maven's order of inheritance
Maven's order of inheritance  hello, What is Maven's order of inheritance?   hii, 1.parent pom 2.project pom 3.settings 4.CLI parameters
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
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
Maven https repository
Maven https repository access available Now there is access to the maven... developers can configure the Maven to download the dependencies over https from the Maven central repository. In this tutorial will show you how you can
Shifting from Ant to Maven
Shifting from Ant to Maven       Maven is entirely a different creature from Ant. Ant is simply a toolbox whereas Maven is about the application of patterns in order
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
Maven 3 Tutorial
Maven 3 Tutorial - Learn Maven 3 Project Management tool In this section we are giving tutorials on the Maven 3 project management tool. Maven is famous... of software project of any size. There are many new features introduced to the maven
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
maven mysql jdbc driver
maven mysql jdbc driver  How to add the maven mysql jdbc driver dependency in the pom.xml file of a maven based application?   Hi, Its... more tutorials of Maven 3. Thanks
Maven Hibernate Dependency
In this section, you will learn about maven hibernate dependency
maven fortify plugin
maven fortify plugin  hi, I am trying to generate a fortify report using maven. I have downloaded plug-ins fortify-plugin-1.0... a fortify report of a java source code using maven tool? Regards, Swagatika
What is Apache Maven?
, but it can also be used to use the local library repositories. Apache Maven popular...What is Apache Maven? What is the importance of Maven in project development and deployment? In this article we will introduce you with the Maven project
Advertisements
 

 

 

DMCA.com