scala / scala-jenkins-infra

A Chef cookbook that manages Scala's CI infrastructure.
https://scala-ci.typesafe.com
Apache License 2.0
14 stars 17 forks source link

ide integration broken due to invalid pom for org/sonatype/oss/oss-parent/7/oss-parent-7.pom #116

Closed adriaanm closed 9 years ago

adriaanm commented 9 years ago

Before (ok):

Downloading: http://snapshots.repository.codehaus.org/org/sonatype/oss/oss-parent/7/oss-parent-7.pom
Downloading: https://oss.sonatype.org/content/repositories/releases/org/sonatype/oss/oss-parent/7/oss-parent-7.pom
Downloading: https://oss.sonatype.org/content/repositories/snapshots/org/sonatype/oss/oss-parent/7/oss-parent-7.pom
Downloading: https://scala-ci.typesafe.com/artifactory/central/org/sonatype/oss/oss-parent/7/oss-parent-7.pom
Downloaded: https://scala-ci.typesafe.com/artifactory/central/org/sonatype/oss/oss-parent/7/oss-parent-7.pom (5 KB at 294.4 KB/sec)

Now (not ok!):

Downloading: https://scala-ci.typesafe.com/artifactory/scala-pr-validation-snapshots/org/sonatype/oss/oss-parent/7/oss-parent-7.pom
Downloading: https://scala-ci.typesafe.com/artifactory/scala-release-temp/org/sonatype/oss/oss-parent/7/oss-parent-7.pom
Downloading: http://snapshots.repository.codehaus.org/org/sonatype/oss/oss-parent/7/oss-parent-7.pom
[WARNING] Checksum validation failed, expected This but is 504ee725835df7101a0258435141ba29954ff5a8 for http://snapshots.repository.codehaus.org/org/sonatype/oss/oss-parent/7/oss-parent-7.pom
[WARNING] Checksum validation failed, expected This but is 504ee725835df7101a0258435141ba29954ff5a8 for http://snapshots.repository.codehaus.org/org/sonatype/oss/oss-parent/7/oss-parent-7.pom
Downloaded: http://snapshots.repository.codehaus.org/org/sonatype/oss/oss-parent/7/oss-parent-7.pom (73 B at 0.2 KB/sec)
[ERROR] The build could not read 1 project -> [Help 1]
org.apache.maven.project.ProjectBuildingException: Some problems were encountered while processing the POMs:
[FATAL] Non-parseable POM /home/jenkins/workspace/scala-2.11.x-integrate-ide/target/m2repo/org/sonatype/oss/oss-parent/7/oss-parent-7.pom: only whitespace content allowed before start tag and not T (position: START_DOCUMENT seen T... @1:1)  @ /home/jenkins/workspace/scala-2.11.x-integrate-ide/target/m2repo/org/sonatype/oss/oss-parent/7/oss-parent-7.pom, line 1, column 1

Because that file contains:

This domain doesn't resolve - so you should even be able to get this file
adriaanm commented 9 years ago

Should we block snapshots.repository.codehaus.org in /etc/hosts on the jenkins-workers to avoid getting the bad file?

retronym commented 9 years ago

Another approach would be to blacklist the repo within the maven settings.xml, as suggested here http://stackoverflow.com/a/27512022/160378

adriaanm commented 9 years ago

@SethTisue, could you implement retronym's suggestion?

adriaanm commented 9 years ago

Codehaus has been shut down: http://www.codehaus.org. They were a mirror, so I think we can just blacklist them.

SethTisue commented 9 years ago

submitted to address the root cause: https://github.com/scala-ide/scala-refactoring/pull/91

we'd like to get PR validation running again without having to wait for the ScalaIDE folks to merge that, though, so I'm also testing a scala-jenkins-infra fix along the lines suggested by @retronym