Suddenly problems with vaadin's maven repository

I’m building my vaadin project with maven for years now. But today all vaadin projects fail to compile or update. I tested the behavior also with a completely new archetype project, but it failed too:

$ mvn package
[INFO]
 Scanning for projects...
[INFO]
 ------------------------------------------------------------------------
[INFO]
 Building Vaadin Web Application
[INFO]
 task-segment: [package]

[INFO]
 ------------------------------------------------------------------------
Downloading: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-compiler-plugin/2.0.2/maven-compiler-plugin-2.0.2.pom
2K downloaded (maven-compiler-plugin-2.0.2.pom)
Downloading: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-plugins/8/maven-plugins-8.pom
5K downloaded (maven-plugins-8.pom)
Downloading: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-compiler-plugin/2.0.2/maven-compiler-plugin-2.0.2.jar
17K downloaded (maven-compiler-plugin-2.0.2.jar)
Downloading: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-war-plugin/2.2/maven-war-plugin-2.2.pom
6K downloaded (maven-war-plugin-2.2.pom)
Downloading: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-war-plugin/2.2/maven-war-plugin-2.2.jar
76K downloaded (maven-war-plugin-2.2.jar)
Downloading: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-clean-plugin/2.4.1/maven-clean-plugin-2.4.1.pom
4K downloaded (maven-clean-plugin-2.4.1.pom)
Downloading: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-clean-plugin/2.4.1/maven-clean-plugin-2.4.1.jar
22K downloaded (maven-clean-plugin-2.4.1.jar)
Downloading: http://repo1.maven.org/maven2/com/vaadin/vaadin-maven-plugin/7.1.8/vaadin-maven-plugin-7.1.8.pom
21K downloaded (vaadin-maven-plugin-7.1.8.pom)
Downloading: http://oss.sonatype.org/content/repositories/vaadin-releases//org/codehaus/mojo/mojo-parent/30/mojo-parent-30.pom
184b downloaded (mojo-parent-30.pom)
[WARNING]
 *** CHECKSUM FAILED - Checksum failed on download: local = '780ba3cf6b6eb0f7c9f6d41d8d25a86a2f46b0c4'; remote = '<html>
<head><title>301' - RETRYING
Downloading: http://oss.sonatype.org/content/repositories/vaadin-releases//org/codehaus/mojo/mojo-parent/30/mojo-parent-30.pom
184b downloaded (mojo-parent-30.pom)
[WARNING]
 *** CHECKSUM FAILED - Checksum failed on download: local = '780ba3cf6b6eb0f7c9f6d41d8d25a86a2f46b0c4'; remote = '<html>
<head><title>301' - IGNORING
[INFO]
 ------------------------------------------------------------------------
[ERROR]
 BUILD ERROR
[INFO]
 ------------------------------------------------------------------------
[INFO]
 Error building POM (may not be this project's POM).


Project ID: com.vaadin:vaadin-maven-plugin:maven-plugin:7.1.8

Reason: Cannot find parent: org.codehaus.mojo:mojo-parent for project: com.vaadin:vaadin-maven-plugin:maven-plugin:7.1.8 for project com.vaadin:vaadin-maven-plugin:maven-plugin:7.1.8


[INFO]
 ------------------------------------------------------------------------
[INFO]
 For more information, run Maven with the -e switch
[INFO]
 ------------------------------------------------------------------------
[INFO]
 Total time: 12 seconds
[INFO]
 Finished at: Thu Jun 12 12:25:48 CEST 2014
[INFO]
 Final Memory: 5M/178M
[INFO]
 ------------------------------------------------------------------------

I followed the guide on https://vaadin.com/wiki/-/wiki/Main/Creating+a+Maven+project to create the architype project.

Hi Stefan,
did you try to clear your local repository?

Yes. I completely removed my local copy and I tested it now also on another computer. The Sonatype maven repository seems to be corrupted.

It’s reproducable:

  • create a new project mvn archetype:generate -DarchetypeGroupId=com.vaadin -DarchetypeArtifactId=vaadin-archetype-application -DarchetypeVersion=7.1.8 - build it
mvn package

I am having the same problem on our integration server which starts from a completely clean maven repo. Here is the relevant section from the log:

Downloading: http://oss.sonatype.org/content/repositories/vaadin-releases//org/codehaus/mojo/mojo-parent/30/mojo-parent-30.pom 184b downloaded (mojo-parent-30.pom)
[WARNING]
 *** CHECKSUM FAILED - Checksum failed on download: local = '780ba3cf6b6eb0f7c9f6d41d8d25a86a2f46b0c4'; remote = '<html> <head><title>301' -
RETRYING Downloading: http://oss.sonatype.org/content/repositories/vaadin-releases//org/codehaus/mojo/mojo-parent/30/mojo-parent-30.pom 184b downloaded (mojo-parent-30.pom)
[WARNING]
 *** CHECKSUM FAILED - Checksum failed on download: local = '780ba3cf6b6eb0f7c9f6d41d8d25a86a2f46b0c4'; remote = '<html> <head><title>301' - IGNORING

I updated the pom to refer to Vaadin 7.2.3 and cleared out everything and now I get the following error

Cannot find parent: org.codehaus.mojo:mojo-parent for project: com.vaadin:vaadin-maven-plugin:maven-plugin:7.2.3 for project com.vaadin:vaadin-maven-plugin:maven-plugin:7.2.3 Incidentaly this is the same error that was causing the checksum to fail because in maven couldn’t find a valid reference to mojo-parent (on oss.sonatype.org).

Hi, Same issue here…

The issue I guess is that vaadin-maven-plugin defines a parent:

org.codehaus.mojo mojo-parent 30

and the plugin repository from archetype point to :

vaadin-snapshots
http://oss.sonatype.org/content/repositories/vaadin-snapshots/

true

Then maven try to find the vaadin-maven-plugin at that pluging repository and in not found with some error page,

I think some how the pom.xml from vaadin-maven-plugin mudt be fixed…

Thanks in advance!

hello,

i was bitten by the same problem and after removing my .m2 directory i could not compile any vaadin maven project anymore.
the fix is upgrading to maven 3 (i was still using maven 2 as this is the maven that comes with ubuntu)

greetings,
frank

Ah yes, with maven 3 it works!

Thanks a lot, Frank!