please read this brief description of mirrors:
<!-- mirrors
   | This is a list of mirrors to be used in downloading artifacts from remote 
repositories.
   | It works like this: a POM may declare a repository to use in resolving 
certain artifacts.
   | However, this repository may have problems with heavy traffic at times, so 
people have mirrored
   | it to several places.
   |
   | That repository definition will have a unique id, so we can create a 
mirror reference for that
   | repository, to be used as an alternate download site. The mirror site will 
be the preferred 
   | server for that repository.
   |-->
  <mirrors>
    <!-- mirror
     | Specifies a repository mirror site to use instead of a given repository. 
The repository that
     | this mirror serves has an ID that matches the mirrorOf element of this 
mirror. IDs are used
     | for inheritance and direct lookup purposes, and must be unique across 
the set of mirrors.
     |
    -->
  </mirror>

Martin --


 


> Date: Wed, 22 Jun 2011 20:48:35 +0930
> Subject: Re: Can't resolve libraries.
> From: [email protected]
> To: [email protected]
> 
> On Wed, Jun 22, 2011 at 8:20 PM, samwun <[email protected]> wrote:
> > Thank you very much for othe suggestion
> > I have removed the error in $MAVEN_HOME/conf/settings.xml.
> > Here is the error:
> >
> >
> >
> >> $ mvn compile war:war
> >> [WARNING]
> >> [WARNING] Some problems were encountered while building the effective
> >> settings
> >> [WARNING] 'mirrors.mirror.id' must not be 'local', this identifier is
> >> reserved for the local repository, using it for other repositories will
> >> corrupt your repository metadata. @ C:\Users\sam\.m2\settings.xml
> 
> What about this error?
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
> 
                                          

Reply via email to