Hi,

We are seeing build failires in our project when we depend on SNAPSHOTs from repositroy.apache.org

The error is
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Failed to resolve artifact.

GroupId: org.apache.sling
ArtifactId: sling
Version: 6-incubator-20090609.084848-3

Reason: Unable to locate resource in repository

  org.apache.sling:sling:pom:6-incubator-20090609.084848-3


because
http://repository.apache.org/snapshots//org/apache/sling/sling/6-incubator-SNAPSHOT/sling-6-incubator-20090609.084848-3.pom
does not exist

http://repository.apache.org/snapshots//org/apache/sling/sling/6-incubator-SNAPSHOT/sling-6-incubator.pom
does.

If I edit my local
~/.m2/repository/org/apache/sling/6-incubator-SNAPSHOT/maven-metadata- apache-snapshots.xml
 and remove the the snapshot tag .. eg

  <versioning>
<!--
    <snapshot>
      <timestamp>20090609.084848</timestamp>
      <buildNumber>3</buildNumber>
    </snapshot>
-->
    <lastUpdated>20090617104717</lastUpdated>
  </versioning>

The build works again.


Any ideas ?
Ian




Reply via email to