Zhong ZHENG wrote:
> To avoid strange problems, please use maven-2.0-RC to perform the build.
> You may download maven 2.0 RC from here:
> http://people.apache.org/~brett/maven-2.0-RC/
> <http://people.apache.org/%7Ebrett/maven-2.0-RC/>

Thanks!  I hadn't relized it was *Maven* that was just released.  I've
just downloaded the final release linked from the Maven 2.0 home page
and installed that.  Things are working better, but...

First time I built (with the additional repository entries removed from
pom.xml) I got this error:
[[
[INFO]
----------------------------------------------------------------------------
[INFO] Building Pluto Testsuite Portlet
[INFO]    task-segment: [install]
[INFO]
----------------------------------------------------------------------------
[INFO]
----------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO]
----------------------------------------------------------------------------
[INFO] Failed to resolve artifact.

GroupId: org.apache.maven.plugins
ArtifactId: maven-assembly-plugin
Version: 1.0-SNAPSHOT

Reason: Unable to download the artifact from any repository
  org.apache.maven.plugins:maven-assembly-plugin:1.0-SNAPSHOT:pom

from the specified remote repositories:
  central (http://repo1.maven.org/maven2)


[INFO]
----------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO]
----------------------------------------------------------------------------
[INFO] Total time: 40 seconds
[INFO] Finished at: Thu Oct 20 10:29:32 BST 2005
[INFO] Final Memory: 8M/15M
[INFO]
----------------------------------------------------------------------------
]]

So I reverted pom.xml to the original and tried again.  This time, I was
prompted for passwords for the repositories.  For cvs.apache.org, I used
anoncvs and that seemed to be happy (first time only:  on subsequent
runs it didn't work, so maybe I was just confused), but that didn't work
for scp://people.apache.org/home/ddewolf/public_html/m2, so I got
another failure like before:
[[
[WARNING] repository metadata for: 'snapshot
org.apache.maven.plugins:maven-assembly-plugin:1.0-SNAPSHOT' could not be r
etrieved from repository: m2 due to an error: Authentication failed:
Cannot connect. Reason: Auth fail
[INFO] Repository 'm2' will be blacklisted
[INFO]
----------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO]
----------------------------------------------------------------------------
[INFO] Failed to resolve artifact.

GroupId: org.apache.maven.plugins
ArtifactId: maven-assembly-plugin
Version: 1.0-SNAPSHOT

Reason: Unable to download the artifact from any repository
  org.apache.maven.plugins:maven-assembly-plugin:1.0-SNAPSHOT:pom

from the specified remote repositories:
  central (http://repo1.maven.org/maven2),
  m1 (scp://cvs.apache.org/repository),
  m2 (scp://people.apache.org/home/ddewolf/public_html/m2)


[INFO]
----------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO]
----------------------------------------------------------------------------
[INFO] Total time: 8 minutes 44 seconds
[INFO] Finished at: Thu Oct 20 10:39:29 BST 2005
[INFO] Final Memory: 8M/16M
[INFO]
----------------------------------------------------------------------------
]]

I then discovered the email thread at:
http://mail-archives.apache.org/mod_mbox/portals-pluto-dev/200510.mbox/[EMAIL 
PROTECTED]
which seems to discuss this problem.  But I'm not sure it's been
adequately resolved yet.  I've not yet added any repository information
to my settigns.xml, as I'm not sure what I might add.  I'm suspecting
that there's maybe a conflict here between anonymous repository access
for retrieving required files and the need for authentication when
updating?

Finally, I tried removing the repositories entries in pom.xml again, and
was back to the "Failed to resolve artifact" error.

Once again, I'm out of ideas :-(

#g

-- 
Graham Klyne
Research Technology Service
Oxford University Computing Services

Reply via email to