UIt is correct that maven does not like it when your run install jobs 
concurrently with jobs reading the same artifacts. In order to avoid this you 
can have a workspace specific Repository („Local to workspace“ this might have 
some advantages for isolating different jobs but consumes a lot of disk) or you 
can configure the local maven Repository to be unique for the jenkins built 
executors (“Local to Executor“). This way you have only a fixed multiplier for 
disk space usage.

What you also can do is to reduce the need to install (snapshots) at the end of 
a built job. For example by only using deploy or have Jenkins deploy the 
resulting artifacts After verify.

Gruss
Bernd
--
http://bernd.eckenfels.net
________________________________
From: Adam Hardy <adam.ha...@cyberspaceroad.com>
Sent: Monday, March 26, 2018 7:44:17 PM
To: users@maven.apache.org
Subject: Not able to read jars in repo intermittently

I use a Jenkins server which is administered by another team. I get the 
following errors intermittently. The team claim the issue is

"the maven repository is not multi write safe. It's possible several jobs are 
updating the jar files at the same time and corrupt them. If that's the case, 
the only option available at the moment is to use a repository local to the 
workspace"

These are reads, and the writes to create these jars will only ever be done 
once - isn't that correct?

I have my own settings.xml to use but I have not configured a local repo for my 
own project because i thought that would not be my responsibility as a jenkins 
client.

Is there an obvious source of this error, and alternatively should I configure 
my own repo in my settings.xml?

Here's the error:


[INFO] -------------------------------------------------------------
[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR] error reading 
/home/jenkins/.m2/repository/org/hamcrest/hamcrest-core/1.3/hamcrest-core-1.3.jar;
 error in opening zip file
[ERROR] error reading 
/home/jenkins/.m2/repository/commons-io/commons-io/2.4/commons-io-2.4.jar; 
error in opening zip file
[ERROR] error reading 
/home/jenkins/.m2/repository/commons-pool/commons-pool/1.6/commons-pool-1.6.jar;
 error in opening zip file
[ERROR] error reading 
/home/jenkins/.m2/repository/org/hamcrest/hamcrest-core/1.3/hamcrest-core-1.3.jar;
 error in opening zip file
[ERROR] error reading 
/home/jenkins/.m2/repository/commons-io/commons-io/2.4/commons-io-2.4.jar; 
error in opening zip file
[ERROR] error reading 
/home/jenkins/.m2/repository/commons-pool/commons-pool/1.6/commons-pool-1.6.jar;
 error in opening zip file
[ERROR] 
/home/jenkins/workspace/rdis_gem-tardis-rest_master-V5NBFAKC4NMCAXWRJ7MGOI5IW5OWL6UESQFP6S4T4AW2CRGDV65A/src/main/java/com/bp/gem/util/servlet/RequestLoggingInnerFilter.java:[6,36]
 package org.apache.commons.io.output does not exist
[ERROR] 
/home/jenkins/workspace/rdis_gem-tardis-rest_master-V5NBFAKC4NMCAXWRJ7MGOI5IW5OWL6UESQFP6S4T4AW2CRGDV65A/src/main/java/com/bp/gem/util/servlet/RequestLoggingInnerFilter.java:[243,23]
 cannot find symbol
  symbol:   class TeeOutputStream
  location: class 
com.bp.gem.util.servlet.RequestLoggingInnerFilter.TeeServletOutputStream
[ERROR] 
/home/jenkins/workspace/rdis_gem-tardis-rest_master-V5NBFAKC4NMCAXWRJ7MGOI5IW5OWL6UESQFP6S4T4AW2CRGDV65A/src/main/java/com/bp/gem/util/servlet/RequestLoggingInnerFilter.java:[246,32]
 cannot find symbol
  symbol:   class TeeOutputStream
  location: class 
com.bp.gem.util.servlet.RequestLoggingInnerFilter.TeeServletOutputStream
[INFO] 9 errors
[INFO] -------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 3.216 s
[INFO] Finished at: 2018-03-23T15:12:08+00:00
[INFO] Final Memory: 32M/366M
[INFO] ------------------------------------------------------------------------


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

Reply via email to