maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From George Karabotsos <>
Subject Creating local repository
Date Fri, 04 Sep 2015 14:27:19 GMT
Hello all,

Let me start by admitting I am by no means a maven expert :).

Now I have a need to create a local file-based repository to be used by
maven when building my project.  I need this because I have no net
access from a set of VMs I and colleagues have to use .

I was thinking of the following:
1) connected to the net, normally proceed and download all necessary
2) copy these jars with
          > cp -r Users/gkarabotsos/.m2/repository .
3) Add the following to my pom.xml

I do know that it does not work--I am guessing my c:/repository
structure does not have the correct form.   

I have also seen, in the net, commands such as the following:

mvn install:install-file -Dfile=YOUR_JAR.jar -DgroupId=YOUR_GROUP_ID
-DartifactId=YOUR_ARTIFACT_ID -Dversion=YOUR_VERSION -Dpackaging=jar

Is this the only correct way? I have yet to try it, primarily because I
have a few dozen artifacts and doing so will take me a long time.


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message