[JIRA] [maven-plugin] (JENKINS-19188) Unable to set local maven repository at Jenkins or Job level

22 views
Skip to first unread message

juansanchez49@gmail.com (JIRA)

unread,
Sep 16, 2015, 3:48:01 PM9/16/15
to jenkinsc...@googlegroups.com
Juan Sanchez commented on Bug JENKINS-19188
 
Re: Unable to set local maven repository at Jenkins or Job level

Hi how are you? I have the same problem right now,

I am executing jenkins in linux but I do not have root access, so, I modify th hudson atribute in web.xml to change the path where jboss deploy jenkins. But the problem is when the job run and at the end the job fail because Jenkins try to create a .m2 in a home/$USER$/ path but this path dos not exist so the job breaks and finished not well.

I am reading about this issue and I have tried to modify in the jenkins management module choosing the maven option related with the repository location changing it to local to workspace but this doesnt work either.

Add Comment Add Comment
 
This message was sent by Atlassian JIRA (v6.4.2#64017-sha1:e244265)
Atlassian logo

josivanps@gmail.com (JIRA)

unread,
Feb 18, 2016, 9:20:03 PM2/18/16
to jenkinsc...@googlegroups.com

Hello I'm facing the same problem. There is no home path to my jetty user.

Take a look in the last line of console output.


[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 8.087 s
[INFO] Finished at: 2016-02-19T00:08:20-02:00
[INFO] Final Memory: 14M/35M
[INFO] ------------------------------------------------------------------------
Parsing POMs
ERROR: Failed to create /home/jetty/.m2
An attempt to send an e-mail to empty list of recipients, ignored.
Finished: FAILURE

ingunawa@cisco.com (JIRA)

unread,
Feb 22, 2016, 3:06:03 AM2/22/16
to jenkinsc...@googlegroups.com
Indra Gunawan reopened an issue
 

This is happening with Jenkins LTS 1.625.3 and maven Integration plugin version 2.7.1

22:58:19 Parsing POMs
22:58:19 ERROR: Failed to create /users/<jenkins-user>/.m2

The job is a Maven2/3 Type triggered by Gerrit and it is already configured to use local workspace as local maven repository.

Somehow, this can't be overridden. We do not want to fill up the HOME directory of Jenkins generic user of the .m2 repo.

Jenkins / Bug JENKINS-19188
Change By: Indra Gunawan
Resolution: Cannot Reproduce
Status: Resolved Reopened

jeromegrandjean@hotmail.com (JIRA)

unread,
Feb 26, 2017, 7:01:02 PM2/26/17
to jenkinsc...@googlegroups.com
Jérôme GRANDJEAN commented on Bug JENKINS-19188
 
Re: Unable to set local maven repository at Jenkins or Job level

Hello,
In fact, the problem seems to occur before launching maven.
I can reproduce it, on Linux +jenkins 2.32, with ${HOME}/.m2 being a soft link to a non existing folder.
I guess that it tests if ${HOME}/.m2 is a directory, and if not tries to mkdir it, which is not possible since there is already a link using the name.
Once the target of ${HOME}/.m2 created, I saw that no files were stored in it : artefacts were downloaded to ${WORSPACE}/.repository, as configured.

This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c)
Atlassian logo

victorfun1989@yahoo.com (JIRA)

unread,
Jul 17, 2019, 5:27:02 AM7/17/19
to jenkinsc...@googlegroups.com

Hello,

I have the same issue. The version of my jenkins is 2.176.1 and the version of maven plugin is 3.3。If I checked the option "Use private Maven repository", it did work. However, if I set the value of "Local Maven Repository“ to "Local to the workspace" in Configure System area, it didn't work.

This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)

victorfun1989@yahoo.com (JIRA)

unread,
Jul 17, 2019, 5:29:02 AM7/17/19
to jenkinsc...@googlegroups.com
Sheng Fang edited a comment on Bug JENKINS-19188
Hello,

I have the same issue. The version of my jenkins is 2.176.1 and the version of maven plugin is 3.3。If I checked the option "Use private Maven repository", it did work. However, if I set the value of "Local Maven Repository“ to "Local to the workspace" in Configure System area, it didn't work.

!捕获.PNG!  
Reply all
Reply to author
Forward
0 new messages