Gertjan van Oosten schrieb:
Hi Simon,

As quoted from "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>:
But at the moment, as your error message shows, there is a snapshot-level *plugin* required to build tomahawk. And the root apache pom does not enable the snapshot repo for plugins, just for dependencies.

So it is still necessary to add the apache snapshot repo to your ~/.m2/settings.xml, at least in this case.

Done that, but now it gets stuck on this:

  % mvn clean
  [INFO] Scanning for projects...
  [INFO] snapshot org.apache.myfaces.tomahawk:tomahawk-project:1.1.7-SNAPSHOT: 
checking for updates from apache.org
  Downloading: 
http://people.apache.org/repo/m2-snapshot-repository/org/apache/myfaces/tomahawk/tomahawk-project/1.1.7-SNAPSHOT/tomahawk-project-1.1.7-SNAPSHOT.pom
  5K downloaded
  Downloading: 
http://maven2.mirrors.skynet.be/pub/maven2/org/apache/myfaces/myfaces/6/myfaces-6.pom
  [INFO] 
------------------------------------------------------------------------
  [ERROR] FATAL ERROR
  [INFO] 
------------------------------------------------------------------------
  [INFO] Failed to resolve artifact.

  GroupId: org.apache.myfaces
  ArtifactId: myfaces
  Version: 6

  Reason: Unable to download the artifact from any repository

    org.apache.myfaces:myfaces:pom:6

  from the specified remote repositories:
    central (http://repo1.maven.org/maven2),
    myfaces-staging 
(http://people.apache.org/builds/myfaces/m2-staging-repository),
    apache.org (http://people.apache.org/repo/m2-snapshot-repository)


Sure enough, if I check the downloaded tomahawk-project-1.1.7-SNAPSHOT.pom
in my M2 repo it has:

  <parent>
      <groupId>org.apache.myfaces</groupId>
      <artifactId>myfaces</artifactId>
      <version>6</version>
  </parent>

which seems to be wrong...
Why do you think that parent is wrong? It look ok to me.

The referenced parent pom is in the standard repository:
 http://repo1.maven.org/maven2/org/apache/myfaces/myfaces/6/

And you clearly have this repo enabled:

 from the specified remote repositories:
   central (http://repo1.maven.org/maven2),
   myfaces-staging 
(http://people.apache.org/builds/myfaces/m2-staging-repository),
   apache.org (http://people.apache.org/repo/m2-snapshot-repository)

But there is also this message:

Downloading: 
http://maven2.mirrors.skynet.be/pub/maven2/org/apache/myfaces/myfaces/6/myfaces-6.pom


So what I think is happening is that you have (explicitly or implicitly) got maven2.mirrors.skynet.be configured as a "mirror" of the main repo1.maven.org repository. But that mirror hasn't got the latest release yet. The parent pom version 6 was released on the 11th of july (see timestamps on the files in the repo1.maven.org directory), so I'm surprised but that does appear to be the case.

Regards,
Simon

Reply via email to