repository problems (ibiblio.org) - redirections , HTTP response codes
Hi! During a clean build (we wiped the local repository cache) we encountered a problem with one artefact. We used the latest maven version 3.5.4 with Java 8u171. The error reported by maven is: Downloading from central: http://mirrors.ibiblio.org/pub/mirrors/maven2/org/springframework/roo/org.springframework.roo.annotations/1.0.2.RELEASE/org.springframework.roo.annotations-1.0.2.RELEASE.pom [WARNING] Checksum validation failed, expected but is b113767b47336dcc165c5ddb5df4cb86b7ce from central for http://mirrors.ibiblio.org/pub/mirrors/maven2/org/springframework/roo/org.springframework.roo.annotations/1.0.2.RELEASE/org.springframework.roo.annotations-1.0.2.RELEASE.pom [WARNING] Could not validate integrity of download from http://mirrors.ibiblio.org/pub/mirrors/maven2/org/springframework/roo/org.springframework.roo.annotations/1.0.2.RELEASE/org.springframework.roo.annotations-1.0.2.RELEASE.pom: Checksum validation failed, expected but is b113767b47336dcc165c5ddb5df4cb86b7ce [WARNING] Checksum validation failed, expected but is b113767b47336dcc165c5ddb5df4cb86b7ce from central for http://mirrors.ibiblio.org/pub/mirrors/maven2/org/springframework/roo/org.springframework.roo.annotations/1.0.2.RELEASE/org.springframework.roo.annotations-1.0.2.RELEASE.pom Downloaded from central: http://mirrors.ibiblio.org/pub/mirrors/maven2/org/springframework/roo/org.springframework.roo.annotations/1.0.2.RELEASE/org.springframework.roo.annotations-1.0.2.RELEASE.pom (101 kB at 25 kB/s) [WARNING] The POM for org.springframework.roo:org.springframework.roo.annotations:jar:1.0.2.RELEASE is invalid, transitive dependencies (ifany) will not be available, enable debug logging for more details [WARNING] The POM for com.caucho:hessian:jar:4.0.7 is invalid, transitive dependencies (if any) will not be available, enable debug loggingfor more details [WARNING] The POM for commons-fileupload:commons-fileupload:jar:1.2.2 is invalid, transitive dependencies (if any) will not be available, enable debug logging for more details [WARNING] The POM for javax.xml.bind:jaxb-api:jar:2.1 is invalid, transitive dependencies (if any) will not be available, enable debug logging for more details [WARNING] The POM for org.codehaus.jackson:jackson-core-asl:pom:1.6.4 is invalid, transitive dependencies (if any) will not be available, enable debug logging for more details [WARNING] The POM for org.codehaus.jackson:jackson-mapper-asl:pom:1.6.4 is invalid, transitive dependencies (if any) will not be available,enable debug logging for more details Downloading from central: http://mirrors.ibiblio.org/pub/mirrors/maven2/org/springframework/roo/org.springframework.roo.annotations/1.0.2.RELEASE/org.springframework.roo.annotations-1.0.2.RELEASE.jar [WARNING] Checksum validation failed, expected but is b113767b47336dcc165c5ddb5df4cb86b7ce from central for http://mirrors.ibiblio.org/pub/mirrors/maven2/org/springframework/roo/org.springframework.roo.annotations/1.0.2.RELEASE/org.springframework.roo.annotations-1.0.2.RELEASE.jar [WARNING] Could not validate integrity of download from http://mirrors.ibiblio.org/pub/mirrors/maven2/org/springframework/roo/org.springframework.roo.annotations/1.0.2.RELEASE/org.springframework.roo.annotations-1.0.2.RELEASE.jar: Checksum validation failed, expected but is b113767b47336dcc165c5ddb5df4cb86b7ce [WARNING] Checksum validation failed, expected but is b113767b47336dcc165c5ddb5df4cb86b7ce from central for http://mirrors.ibiblio.org/pub/mirrors/maven2/org/springframework/roo/org.springframework.roo.annotations/1.0.2.RELEASE/org.springframework.roo.annotations-1.0.2.RELEASE.jar Downloaded from central: http://mirrors.ibiblio.org/pub/mirrors/maven2/org/springframework/roo/org.springframework.roo.annotations/1.0.2.RELEASE/org.springframework.roo.annotations-1.0.2.RELEASE.jar (101 kB at 28 kB/s) The core reason is the fact, that the mirrors.ibiblio.org site does not have this artefact but does not return a 404 HTTP response code, but a regular HTML page (after two redirects). Details: - first maven fetches this URL: http://mirrors.ibiblio.org/pub/mirrors/maven2/org/springframework/roo/org.springframework.roo.annotations/1.0.2.RELEASE/org.springframework.roo.annotations-1.0.2.RELEASE.pom the response is a 301 (Moved Permanently) with the header: Location: /maven2/org/springframework/roo/org.springframework.roo.annotations/1.0.2.RELEASE/org.springframework.roo.annotations-1.0.2.RELEASE.pom - the maven fetches http://mirrors.ibiblio.org/maven2/org/springframework/roo/org.springframework.roo.annotations/1.0.2.RELEASE/org.springframework.roo.annotations-1.0.2.RELEASE.pom which also returns 301 with Location: http://maven.ibiblio.org/maven2/ - maven finally fetches http://maven.ibiblio.org/maven2/ which returns code 200 OK , with a HTML file listing (index) Now this is a error on that site, but as it is a common problem when using maven I post here and hope for some useful answers. (I already
Two processes accessing the local repository?
Hi! Is there any synchronization done in maven regarding the local cache ($Home/.m2/repository) ? I mean when downloading plugins and so. Is it safe to run multiple build in parallel on the same machine? Regards, David - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Two processes accessing the local repository?
The local repository in Maven is the temporary holding spot for all artifacts downloaded and produced by Maven, and it is not currently setup to be multi-process safe. But that wan written 2 years ago. Is there no news in maven 3 regarding this? David On 28 March 2011 12:14, Kristian Rosenvold kristian.rosenv...@gmail.com wrote: Note item 2. http://www.sonatype.com/people/2009/01/maven-continuous-integration-best-practices/ Kristian Den 28.03.2011 12:06, skrev Manuel Doninger: We have sometimes problems, if multiple builds on Jenkins use the same local Maven repository and if those builds download new artifacts. Then some artifacts are locked by one Maven process, and the other process fails with an artifact not found error. Manuel On Mon, Mar 28, 2011 at 11:32, David Balažicxerc...@gmail.com wrote: Hi! Is there any synchronization done in maven regarding the local cache ($Home/.m2/repository) ? I mean when downloading plugins and so. Is it safe to run multiple build in parallel on the same machine? Regards, David - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
project.build.sourceEncoding not respected by maven-compiler-plugin ?
Hi! In a project I noticed the compiler complains about some UTF-8 characters: unmappable character for encoding Cp1252 Our pom.xml is like: project xmlns=http://maven.apache.org/POM/4.0.0; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation=http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd; modelVersion4.0.0/modelVersion groupIdxxx/groupId packagingwar/packaging namefoo.web/name artifactIdfoo.web/artifactId version0.0.1-BUILD-SNAPSHOT/version properties java-version1.6/java-version org.springframework-version3.0.5.RELEASE/org.springframework-version org.springframework.roo-version1.0.2.RELEASE/org.springframework.roo-version org.aspectj-version1.6.9/org.aspectj-version org.slf4j-version1.6.1/org.slf4j-version !-- -- project.build.sourceEncodingUTF-8/project.build.sourceEncoding org.springframework.security-version3.0.5.RELEASE/org.springframework.security-version commons.lang-version2.6/commons.lang-version commons.validator-version1.3.1/commons.validator-version hessian-version4.0.7/hessian-version logback-version0.9.28/logback-version jasig.client.version3.2.0/jasig.client.version netbeans.hint.deploy.serverTomcat60/netbeans.hint.deploy.server /properties dependencies... ... build plugins plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-compiler-plugin/artifactId configuration source${java-version}/source target${java-version}/target /configuration /plugin If I add a line into the compiler plugin conf, then it works: plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-compiler-plugin/artifactId configuration source${java-version}/source target${java-version}/target encoding${project.build.sourceEncoding}/encoding /configuration /plugin According to this web pages, this should work by default. http://maven.apache.org/general.html#encoding-warning http://docs.codehaus.org/display/MAVENUSER/POM+Element+for+Source+File+Encoding http://jira.codehaus.org/browse/MCOMPILER-70 I am using mvn --version Apache Maven 2.2.1 (r801777; 2009-08-06 21:16:01+0200) Java version: 1.6.0_24 Java home: C:\Program Files\Java\jdk1.6.0_24\jre Default locale: en_US, platform encoding: Cp1252 OS name: windows xp version: 5.1 arch: x86 Family: windows Am I overlooking something? Regards, David - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: project.build.sourceEncoding not respected by maven-compiler-plugin ?
Ah, I see. Thanks. What is the next maven version that uses the 2.1 plugin by default? Regards, David PS:Is maven.apache.org down currently? http://www.downforeveryoneorjustme.com/maven.apache.org confirms that it is not only me. On 24 March 2011 15:50, Benjamin Bentmann benjamin.bentm...@udo.edu wrote: David Balažic wrote: http://jira.codehaus.org/browse/MCOMPILER-70 I am using mvn --version Apache Maven 2.2.1 (r801777; 2009-08-06 21:16:01+0200) Fix version for the above issue is maven-compiler-plugin 2.1, Maven 2.2.1 defaults to using maven-compiler-plugin 2.0.2. Benjamin - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Maven triggers cygwin warning
Hi! Jeremy Bopp jer...@psam.bopp.psam.ten (psam=spam (remove) ; ten=net) wrote a small patch for mvn. Using that I don not get the warning any more. Here it is: $ diff -u mvn mvnmodified/mvn-modified --- mvn 2010-05-12 10:34:19.261049000 +0200 +++ mvnmodified/mvn-modified2010-05-12 10:31:36.0 +0200 @@ -143,11 +143,14 @@ fi CLASSWORLDS_LAUNCHER=org.codehaus.classworlds.Launcher +CLASSPATH=`echo ${M2_HOME}/boot/classworlds-*.jar` # For Cygwin, switch paths to Windows format before running java if $cygwin; then [ -n $M2_HOME ] M2_HOME=`cygpath --path --windows $M2_HOME` + [ -n $CLASSPATH ] +CLASSPATH=`cygpath --path --windows $CLASSPATH` [ -n $JAVA_HOME ] JAVA_HOME=`cygpath --path --windows $JAVA_HOME` [ -n $HOME ] @@ -156,7 +159,7 @@ exec $JAVACMD \ $MAVEN_OPTS \ - -classpath ${M2_HOME}/boot/classworlds-*.jar \ + -classpath $CLASSPATH \ -Dclassworlds.conf=${M2_HOME}/bin/m2.conf \ -Dmaven.home=${M2_HOME} \ ${CLASSWORLDS_LAUNCHER} $QUOTED_ARGS - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Maven triggers cygwin warning
On 11 May 2010 17:36, Wayne Fay wayne...@gmail.com wrote: When I start maven inside cygwin environment, cygwin gives a warning about an MS-DOS style path. As the mvn script tries to detect cygwin, I find that surprising. I've used Maven inside Cygwin on and off for quite a while now (not really often to be honest), and I've never seen that warning. I read the messages posted to that Cygwin list, tried the sh -x ... command suggested by Jeremy and got no warnings, then tried again using mintty and still didn't get anything. This is testing on Win XP SP2, Maven 2.2.1, and Sun JDK 1.6.0_07 with default locale en_US and encoding Cp1252. The warning is printed only once per session. Maybe you missed it? What do you get with sh -x $(which mvn) -version mvn.log 21 ? About the session, I'm not sure what exactly are the session borders. If I log into Windows, start mintty, I get one warning. If I close mintty and open it again, I again get the warning (once). If I have multiple consoles open, sometimes I can not get the warning, even if I close all of them and open one new. Regards, David - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org