You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by pradeepkumar <pr...@gmail.com> on 2016/09/15 13:50:42 UTC

local Maven Repository jars are pointing as 0 and 1

Hi All,

I am trying to build a maven project from jenkins server.I am facing an
issue while creating jar in local maven repository .Even i set the path of
Maven repo locaiton in setting.xml as shown in below.


<localRepository>/var/lib/jenkins/maven-repositories</localRepository>

All the maven jars are creating under 0 and 1 folders (under
/var/lib/jenkins/maven-repositories path ). some jars are  sitting in 0
folder and some are jars are sitting in 1 folder .
By this some time we are facing errors due to dependencies and unable to
find which jar file it taking for creating war file.

when i build for 1st  time it is creating 0 folder like
/var/lib/jenkins/maven-repositories/0/com/test/dao/test-dao/0.0.3/test-dao-0.0.3.ja
After few builds it creating new folder 1 and crating jars under these
folder as shown in below examples.
/var/lib/jenkins/maven-repositories/1/com/test/dao/test-dao/0.0.3/test-dao-0.0.3.jar

Below folder structure maven jars are creating .
example 1:-
/var/lib/jenkins/maven-repositories--> under this folder
-->0-->com-->test-->dao-->test-dao-->0.0.3-->test-dao-0.0.3.jar
/var/lib/jenkins/maven-repositories--> under this folder
-->1-->com-->test-->dao-->test-dao-->0.0.3-->test-dao-0.0.3.jar


Attachement for more info .
Image.png <http://maven.40175.n5.nabble.com/file/n5880704/Image.png>  

I am not sure why this jars are creating .. 

Please anyone can help me on this ...thanks in advance.

Regards,
Pradeep 




--
View this message in context: http://maven.40175.n5.nabble.com/local-Maven-Repository-jars-are-pointing-as-0-and-1-tp5880704.html
Sent from the Maven - Users mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: AW: local Maven Repository jars are pointing as 0 and 1

Posted by pradeepkumar <pr...@gmail.com>.
Hi Bernd ,

Issue was resolved .. its my bad i didnt check that configuration page.

Thanks a lot for your help.


Regards,
Pradeep 





--
View this message in context: http://maven.40175.n5.nabble.com/local-Maven-Repository-jars-are-pointing-as-0-and-1-tp5880704p5881021.html
Sent from the Maven - Users mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


AW: local Maven Repository jars are pointing as 0 and 1

Posted by ec...@zusammenkunft.net.
Hello,

This sounds like you have enabled seperate local repositories per executor in the Jenkins settings. This is actually a good thing for parallel builds but it does of course require more storage space.

Look for Repository „Local to Executor“ setting in Jenkins configure. Here is a screenshot:

http://stackoverflow.com/questions/25535232/specify-maven-repo-per-executor-in-jenkins

Gruss
Bernd
-- 
http://bernd.eckenfels.net
From Win 10 Mobile

Von: pradeepkumar

Re: local Maven Repository jars are pointing as 0 and 1

Posted by pradeepkumar <pr...@gmail.com>.
Hi All, 

I am trying to build a maven project from jenkins server.I am facing an
issue while creating jar in local maven repository .Even i set the path of
Maven repo locaiton in setting.xml as shown in below. 


<localRepository>/var/lib/jenkins/maven-repositories</localRepository>

All the maven jars are creating under 0 and 1 folders (under
/var/lib/jenkins/maven-repositories path ). some jars are  sitting in 0
folder and some are jars are sitting in 1 folder . 
By this some time we are facing errors due to dependencies and unable to
find which jar file it taking for creating war file. 

when i build for 1st  time it is creating 0 folder like
/var/lib/jenkins/maven-repositories/0/com/test/dao/test-dao/0.0.3/test-dao-0.0.3.ja 
After few builds it creating new folder 1 and crating jars under these
folder as shown in below examples. 
/var/lib/jenkins/maven-repositories/1/com/test/dao/test-dao/0.0.3/test-dao-0.0.3.jar 

Below folder structure maven jars are creating . 
example 1:- 
/var/lib/jenkins/maven-repositories--> under this folder
-->0-->com-->test-->dao-->test-dao-->0.0.3-->test-dao-0.0.3.jar 
/var/lib/jenkins/maven-repositories--> under this folder
-->1-->com-->test-->dao-->test-dao-->0.0.3-->test-dao-0.0.3.jar 


Attachement for more info . 
Image.png

I am not sure why this jars are creating .. 

Please anyone can help me on this ...thanks in advance. 

Regards, 
Pradeep 



--
View this message in context: http://maven.40175.n5.nabble.com/local-Maven-Repository-jars-are-pointing-as-0-and-1-tp5880704p5880833.html
Sent from the Maven - Users mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org