I'm not worried about configuring maven-proxy.  That is fairly straight
forward.  My problem is how do I tell Maven 2 that I have a mirror of
the pluginRepository?  In the m2 top-level plugin, there is a repository
named "snapshots" which points to
"http://snapshots.maven.codehaus.org/maven2/"; and a pluginRepository
named "snapshots" which points to
"http://snapshots.maven.codehaus.org/maven2/plugins";.

-----Original Message-----
From: Brett Porter [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, August 30, 2005 06:36
To: Maven Developers List
Subject: Re: SVN Build Error


Sorry, I haven't used maven-proxy, actually. So it is trying to connect
to:

http://snapshots.maven.codehaus.org/maven2/plugins

as a repository?

Does -X show what causes the failed download?

- Brett

Allison, Bob wrote:

>I'm not sure what to add.  My mirror settings are:
>  <mirrors>
>    <mirror>
>      <id>central-mirror</id>
>      <url>http://qadev21.dev.qintra.com:7002/repository</url>
>      <mirrorOf>central</mirrorOf>
>    </mirror>
>    <mirror>
>      <id>snapshot-mirror</id>
>      <url>http://qadev21.dev.qintra.com:7002/repository</url>
>      <mirrorOf>snapshots</mirrorOf>
>    </mirror>
>  </mirrors>
>The output from one of the integration tests is:
>----- Standard Out -----
>Removing file:
>/home/allisord/.m2/repository/org/apache/maven/plugins/maven-core-it-pl
u
>gin/1.0-SNAPSHOT/maven-core-it-plugin-1.0-SNAPSHOT.jar
>Removing file:
>/home/allisord/.m2/repository/org/apache/maven/plugins/maven-core-it-pl
u
>gin/1.0-SNAPSHOT/maven-core-it-plugin-1.0-SNAPSHOT.version.txt
>Command: /opt/maven/2/bin/m2 -e --no-plugin-registry --batch-mode
>-Dmaven.repo.local=/home/allisord/.m2/repository clean:clean
>core-it:touch
>
>----- Standard Error -----
>Exit code: 1
>
>  
>
>>>>>>>Error Stacktrace:
>>>>>>>              
>>>>>>>
>org.apache.maven.it.VerificationException
>       at
>org.apache.maven.it.Verifier.executeGoals(Ljava.util.Properties;Ljava.l
a
>ng.String;)V(Verifier.java:574)
>       at
>org.apache.maven.it.Verifier.main([Ljava.lang.String;)V(Verifier.java:6
7
>7)
><<<<<< Error Stacktrace
>Log file contents:
>+ Error stacktraces are turned on.
>[INFO] Using local copy of plugins.xml (plugin mappings) for group:
>'org.apache.maven.plugins' from:
>/home/allisord/.m2/repository/org/apache/maven/plugins/plugins.xml
>[INFO] maven-clean-plugin: resolved to version 2.0-beta-1-SNAPSHOT from
>local repository
>[INFO] maven-clean-plugin: using locally installed snapshot
>[INFO] maven-plugin-parent: using locally installed snapshot
>[INFO] maven-core-it-plugin: checking for updates from snapshots
>[INFO] Retrieving snapshot information for maven-core-it-plugin
>1.0-SNAPSHOT
>Downloading:
>http://qadev21.dev.qintra.com:7002/repository/org/apache/maven/plugins/
m
>aven-core-it-plugin/1.0-SNAPSHOT/maven-core-it-plugin-1.0-SNAPSHOT.pom
>[WARNING] Unable to get resource from repository
>http://snapshots.maven.codehaus.org/maven2/plugins
>[WARNING] 
>  ***** Using defaults for missing POM
>org.apache.maven.plugins:maven-core-it-plugin:pom:1.0-SNAPSHOT *****
>
>Downloading:
>http://qadev21.dev.qintra.com:7002/repository/org/apache/maven/plugins/
m
>aven-core-it-plugin/1.0-SNAPSHOT/maven-core-it-plugin-1.0-SNAPSHOT.jar
>[WARNING] Unable to get resource from repository
>http://snapshots.maven.codehaus.org/maven2/plugins
>[INFO] Cannot find mojo descriptor for: 'core-it:touch' - Treating as
>non-aggregator.
>[INFO]
>-----------------------------------------------------------------------
-
>----
>[INFO] Building org.apache.maven:maven-core-it0009:jar:1.0
>[INFO]    task-segment: [clean:clean, core-it:touch]
>[INFO]
>-----------------------------------------------------------------------
-
>----
>[INFO] [clean:clean]
>Downloading:
>http://qadev21.dev.qintra.com:7002/repository/org/apache/maven/plugins/
m
>aven-core-it-plugin/1.0-SNAPSHOT/maven-core-it-plugin-1.0-SNAPSHOT.jar
>[WARNING] Unable to get resource from repository
>http://snapshots.maven.codehaus.org/maven2/plugins
>[INFO]
>-----------------------------------------------------------------------
-
>----
>[INFO] BUILD FAILURE
>[INFO]
>-----------------------------------------------------------------------
-
>----
>[INFO] Main Error:
>  Mojo could not be found - check that the goal name is correct
> 
>org.apache.maven.plugins:maven-core-it-plugin:1.0-SNAPSHOT:maven-plugin
>
>from the specified remote repositories:
>  http://snapshots.maven.codehaus.org/maven2/plugins,
>http://repo1.maven.org/maven2/plugins
>
>Root error:
>  Unable to download the artifact from any repository
>[INFO]
>-----------------------------------------------------------------------
-
>----
>[INFO] Total time: < 1 second
>[INFO] Finished at: Mon Aug 29 08:41:24 MDT 2005
>[INFO] Final Memory: 6M/64M
>[INFO]
>-----------------------------------------------------------------------
-
>----
>
>-----Original Message-----
>From: Brett Porter [mailto:[EMAIL PROTECTED] 
>Sent: Tuesday, August 30, 2005 01:33
>To: Maven Developers List
>Subject: Re: SVN Build Error
>
>
>Ok, this is probably just a misconfiguration.
>
>It is downloaded (it is testing that plugin downloads work), but it is
>downloaded from repo1.maven.org/maven2/plugins (extra plugins path).
You
>probably need to add this as an additional repository.
>
>- Brett
>
>Allison, Bob wrote:
>
>  
>
>>I set up maven-proxy and have made a couple attempts now to rebuild
>>Maven2 using the proxy as a mirror of "central" and "snapshots".  My
>>problem is that I have four integration tests failing (8, 9, 45, and
>>46); they all seem to be related to trying to download an artifact
from
>>codehaus (actually from my mirror) that looks like it should have just
>>been created during the build (maven-core-it-plugin:1.0-SNAPSHOT
>>    
>>
>plugin,
>  
>
>>maven-core-it-plugin:RELEASE plugin, and maven-core-it-plugin-RELEASE
>>POM).  Is this normal or do I have something messed up in my mirror?
>>
>>    
>>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>
>  
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to