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



Home Answers Viewqa Maven Local Maven Depenency

Have Programming Question? Ask it here!
 
 
 


Deepak Kumar
Local Maven Depenency
1 Answer(s)      3 years and 5 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
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
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
Local Language
Local Language  Anybody help me..... how to implement local language in my project
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
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
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
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
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
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
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
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
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 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
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
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
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
How to Configure pom.xml file in Maven ?
How to Configure pom.xml file in Maven ?  How to Configure pom.xml file in Maven
pls send maven interview questions
pls send maven interview questions  pls send maven interview questions to anvesh2406@gmail.com
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 subversion issue
maven subversion issue   m doing work on maven and subversion i have created a maven project now i want to point it to my repository(created by svn... org.apache.maven.plugins maven-release-plugin svn+ssh://file:///E:/my-app-reposs then when
Maven Compiler Plugin
In this section, you will learn about maven compiler plugin and how it can be configure in maven
Maven remote repository
In this section, you will learn to utilize remote repository of Maven for downloading libraries which are not present in Maven's central repository
maven build failed
maven 3.0.4 build failed  Hi, I have downloaded the maven 3.0.4 and extracted it.and I have seted the path correctly. I am following steps from this url. http://www.roseindia.net/maven2/installingandgettinghandson
maven build failed
maven build failed  Hi, I have downloaded the maven 3.0.4 and extracted it.and I have seted the path correctly. I am following steps from this url. http://www.roseindia.net/maven2/installingandgettinghandson
mysql maven dependency
mysql maven dependency  Hi, How to add the mysql maven dependency in pom.xml file? Thanks   Hi, You can add the following code in pom.xml file: <dependency> <groupId>mysql</groupId>
spring modelandview maven dependency
spring modelandview maven dependency  Hi, how to add the spring modelandview maven dependency in pom.xml file. In my application its saying that ModelAndView class not found. Thanks   You should add the spring-webmvc
maven subversion issue
maven subversion issue  m doing work on maven and subversion i have created a maven project now i want to point it to my repository(created by svn tortoise.so i want to take advantages of maven with maintaining subversion
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
Maven Eclipse Integration - IDE Questions
Maven Eclipse Integration  How to integrate Maven with eclipse? Hi, If you are using maven to build, test and deploy your java... steps: 1: Create your maven project 2. Then create eclipse project file  Hi,If you
Maven 2
Maven 2          Maven is a high-level, intelligent project management, build and deployment tool provided by Apache?s software foundation group. Maven deals with application
Maven 2 Eclipse Plug-in
the Eclipse workspace without  installing to local Maven repository It avails... Maven 2 Eclipse Plug-in      ... the Maven Plugin with your eclipse IDE. Why Maven with Eclipse Eclipse is an industry
build failure error with maven
build failure error with maven  hi, when i clean install a maven file I am getting the error in command prompt like sun.misc.BASE64Encoder is Sun proprietary API and may be removed in a future release. There are several
hibernate maven
In this section, you will learn how to a generate simple java Hibernate project using Maven project builder
Features of Maven 3
After Maven 2, the Apache Maven rolled out the enhanced version of Maven .i.e. Maven 3.0 with improved features to make it more convenient for the users. Maven 3.0 was released in order to overcome all the difficulties related
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
Best Eclipse plugin for Maven 3
Best Eclipse plugin for Maven 3  Hi, I am trying to use the Eclipse... want to use the Maven 3 in the Eclipse. Can anyone tell me the best Eclipse plugin for Maven 3? Thanks   Hi, The best plugin is Maven Integration (m2e
Mockstrutstest case in Weblogic - Maven
Mockstrutstest case in Weblogic  Hello All, I'm testing junits with Maven 2 using MockStrutsTestCase. The web.xml file is not loading even after I set the servlet config file with setServletConfigFile. I get the follwoing
 

 

 

DMCA.com