You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by Mark Lundquist <ml...@wrinkledog.com> on 2006/11/19 21:11:48 UTC

Trouble building trunk

Hi Team,

How do I fix this?:

[ERROR] BUILD ERROR
[INFO]  
------------------------------------------------------------------------
[INFO] Failed to resolve artifact.

GroupId: org.apache.maven.plugins
ArtifactId: maven-jar-plugin
Version: 2.1

Reason: Unable to download the artifact from any repository

   org.apache.maven.plugins:maven-jar-plugin:pom:2.1

from the specified remote repositories:
   central (http://repo1.maven.org/maven2),
   apache.snapshots  
(http://people.apache.org/repo/m2-snapshot-repository),
   apache.snapshot  
(http://people.apache.org/repo/m2-snapshot-repository),
   reinhard-m2-snapshot-repository  
(http://www.apache.org/~reinhard/m2-snapshot-repository),
   apache-cvs (http://people.apache.org/repo/m1-snapshot-repository)

THanks,
—ml—


Re: Trouble building trunk

Posted by Mark Lundquist <ml...@wrinkledog.com>.
On Nov 20, 2006, at 11:09 AM, Jorg Heymans wrote:

> You shouldn't need any mirrors. The default repo1.maven.org suffices.

repo1.maven.org is the default?  OK... well if there was any doubt  
about my clue-level before, ... :-) :-)

> Try zapping ~/.m2/repository/org/apache/maven/plugins/maven-jar-plugin  
> , perhaps the plugin metadata got corrupted. If that doesn't work try  
> zapping the entire ~/.m2/repository.

That's something else, I had a ~/.m2 and a ~/.maven, and I thought .m2  
was the old and .maven the new (and I thought that's what "ls -l" told  
me, but I guess I read wrong).  So I nuked 'em both...

[INFO] BUILD SUCCESSFUL
[INFO]  
------------------------------------------------------------------------
[INFO] Total time: 5 minutes 57 seconds
[INFO] Finished at: Mon Nov 20 12:23:54 PST 2006
[INFO] Final Memory: 21M/43M
[INFO]  
------------------------------------------------------------------------

yeah, much better...

Many thx for talking me thru that :-)
—±ml—


Re: Trouble building trunk

Posted by Jorg Heymans <jh...@apache.org>.
Mark Lundquist wrote:
> 
> On Nov 20, 2006, at 9:39 AM, Jorg Heymans wrote:
> 
>> The repo settings look outdated. Just restore settings.xml from a 
>> clean maven distro and try again. The main idea is that you shouldn't 
>> need the mirrors anymore as repo1.maven.org now points to a very 
>> stable and fast server. Furthermore, certain mirrors have been known 
>> not to have all artifacts synchronized properly.
> 
> OK, thanks for that info.  I restored settings.xml as you suggested and 
> still get the same error.  However, it turns out that the OOTB 
> settings.xml doesn't configure any mirrors anyway.  Can you paste me a 
> <mirror> for repo1?
> 

You shouldn't need any mirrors. The default repo1.maven.org suffices.

Try zapping ~/.m2/repository/org/apache/maven/plugins/maven-jar-plugin , 
perhaps the plugin metadata got corrupted. If that doesn't work try 
zapping the entire ~/.m2/repository.


Jorg


Re: Trouble building trunk

Posted by Mark Lundquist <ml...@wrinkledog.com>.
On Nov 20, 2006, at 9:39 AM, Jorg Heymans wrote:

> The repo settings look outdated. Just restore settings.xml from a 
> clean maven distro and try again. The main idea is that you shouldn't 
> need the mirrors anymore as repo1.maven.org now points to a very 
> stable and fast server. Furthermore, certain mirrors have been known 
> not to have all artifacts synchronized properly.

OK, thanks for that info.  I restored settings.xml as you suggested and 
still get the same error.  However, it turns out that the OOTB 
settings.xml doesn't configure any mirrors anyway.  Can you paste me a 
<mirror> for repo1?

thx-a-lot,
—ml—


Re: Trouble building trunk

Posted by Jorg Heymans <jh...@apache.org>.
Mark Lundquist wrote:

>>  Did you configure a mirror ?
> 
> I'm not sure... should I have? :-)  I just checked around, and saw that 
> I had a ~/.m2/settings.xml which must have been from some time ago, and 
> then a ~/.maven/ which has no settings.xml.  I moved the file to 
> ~/.maven and 'mvn install'ed again, but that didn't seem to make any 
> difference.
> 
> Here's my settings.xml... does it look righteous to you?:

The repo settings look outdated. Just restore settings.xml from a clean 
maven distro and try again. The main idea is that you shouldn't need the 
mirrors anymore as repo1.maven.org now points to a very stable and fast 
server. Furthermore, certain mirrors have been known not to have all 
artifacts synchronized properly.

HTH
Jorg


Re: Trouble building trunk

Posted by Mark Lundquist <ml...@wrinkledog.com>.
On Nov 19, 2006, at 12:43 PM, Jorg Heymans wrote:

> Try again.

I did... same deal.  And it was the same last night.

>  Did you configure a mirror ?

I'm not sure... should I have? :-)  I just checked around, and saw that  
I had a ~/.m2/settings.xml which must have been from some time ago, and  
then a ~/.maven/ which has no settings.xml.  I moved the file to  
~/.maven and 'mvn install'ed again, but that didn't seem to make any  
difference.

Here's my settings.xml... does it look righteous to you?:

------------------------------------------------------------------------ 
--------------------------
<?xml version="1.0"?>
<settings>
   <profiles>
     <profile>
       <id>apache</id>
       <repositories>
         <repository>
           <id>apache.snapshots</id>
           <name>Maven Snapshots</name>
           <url>http://people.apache.org/maven-snapshot-repository</url>
           <releases>
             <enabled>false</enabled>
           </releases>
           <snapshots>
             <enabled>true</enabled>
           </snapshots>
         </repository>
       </repositories>
       <pluginRepositories>
         <pluginRepository>
           <id>apache.snapshots</id>
           <name>Maven Plugin Snapshots</name>
           <url>http://people.apache.org/maven-snapshot-repository</url>
           <releases>
             <enabled>false</enabled>
           </releases>
           <snapshots>
             <enabled>true</enabled>
           </snapshots>
         </pluginRepository>
       </pluginRepositories>
     </profile>
     <profile>
       <id>codehaus</id>
       <pluginRepositories>
         <pluginRepository>
           <id>codehaus.plugin.snapshots</id>
           <name>CodeHaus Plugin Snapshots</name>
           <url>http://snapshots.maven.codehaus.org/maven2</url>
           <releases>
             <enabled>false</enabled>
           </releases>
           <snapshots>
             <enabled>true</enabled>
           </snapshots>
         </pluginRepository>
       </pluginRepositories>
     </profile>
   </profiles>
   <mirrors>
     <mirror>
       <id>mirrors.dotsrc.org</id>
       <url>http://mirrors.dotsrc.org/maven2</url>
       <mirrorOf>central</mirrorOf>
       <!-- Denmark -->
     </mirror>
     <mirror>
         <id>repo.mergere.com</id>
         <url>http://repo.mergere.com/maven2</url>
         <mirrorOf>central</mirrorOf>
       <!-- United States, somewhere -->
     </mirror>
     <mirror>
       <id>lsu.edu</id>
       <url>http://ibiblio.lsu.edu/main/pub/packages/maven2</url>
       <mirrorOf>central</mirrorOf>
       <!-- United States, Louisiana -->
      </mirror>
     <!--
     <mirror>
       <id>ibiblio.net</id>
       <url>http://www.ibiblio.net/pub/packages/maven2</url>
       <mirrorOf>central</mirrorOf>
     </mirror>
     -->
       <!-- United States, North Carolina -->
     <!--
     <mirror>
       <id>planetmirror.com</id>
       <url>http://downloads.planetmirror.com/pub/maven2</url>
       <mirrorOf>central</mirrorOf>
     </mirror>
     -->
       <!-- Australia, Queensland -->
   </mirrors>
</settings>
------------------------------------------------------------------------ 
--------------------------

Thanks,
—ml—
  
  

Re: Trouble building trunk

Posted by Jorg Heymans <jh...@apache.org>.
Mark Lundquist wrote:
> Hi Team,
> 
> How do I fix this?:
> 
> [ERROR] BUILD ERROR
> [INFO] 
> ------------------------------------------------------------------------
> [INFO] Failed to resolve artifact.
> 
> GroupId: org.apache.maven.plugins
> ArtifactId: maven-jar-plugin
> Version: 2.1
> 
> Reason: Unable to download the artifact from any repository
> 
>   org.apache.maven.plugins:maven-jar-plugin:pom:2.1
> 
> from the specified remote repositories:
>   central (http://repo1.maven.org/maven2),
>   apache.snapshots (http://people.apache.org/repo/m2-snapshot-repository),
>   apache.snapshot (http://people.apache.org/repo/m2-snapshot-repository),
>   reinhard-m2-snapshot-repository 
> (http://www.apache.org/~reinhard/m2-snapshot-repository),
>   apache-cvs (http://people.apache.org/repo/m1-snapshot-repository)
> 
> THanks,
> —ml—
> 
> 

Try again. Did you configure a mirror ?


Jorg