I have just tried this....

It seems better... but it does not work yet!

I have:
(1) First played the "mvn test" in my project with the <proxy> settings to 
download the needed dependencies.

(2) Commented my <proxy> settings and put <mirror> settings (in my 
"C:\Documents and Settings\<LOGIN>\.m2\settings.xml" under Windows XP) as 
following:
<settings>
  <localRepository>C:/Dev/tools/maven/local-m2</localRepository>
  <!--<proxies><proxy>...</proxy></proxies>-->
  <mirrors>
   <mirror>
      <id>local-repository</id>
      <url>file://Z:/maven/repository </url>
      <mirrorOf>central</mirrorOf>
    </mirror>
  </mirrors>
</settings>

(3) Moved the content of my "localRepository" to my local "center repository".

(4) Retried the "mvn test" command.

And I get the following error:

org.apache.maven.lifecycle.LifecycleExecutionException: 
The plugin 'org.apache.maven.plugins:maven-resources-plugin' does not exist or 
no valid version could be found

It seems Maven not to try to connect to *MY* "central repository"!


"Pleaaaase, help!" (Leeloo)


-----Message d'origine-----
De : Jörg Schaible [mailto:[EMAIL PROTECTED] 
Envoyé : vendredi 20 janvier 2006 10:22
À : Maven Users List
Objet : RE: [m2] Central repository in a standalone environment

COUVREUR jacques wrote on Friday, January 20, 2006 9:36 AM:

> Hi Edwin and thanks !...
> 
> But I have tried the following settings as you hinted me:
> 
> <profiles>
>    <profile>
>       <!--activation><activeByDefault /></activation-->     
>      <id>dev-profile</id> <repositories>
>        <repository>
>          <id>central</id>
>          <name>Local repository<name>
>          <!--url>file://Z:\maven\repository</url-->
>          <!--url>file:C:/Dev/tools/maven/repository-m2</url-->
>          <url>http://mon.cataweb.org</url>
>        </repository>
>      </repositories>
>    </profile>
>  </profiles>
>  <activeProfiles>
>    <activeProfile>dev-profile</activeProfile>
>  </activeProfiles>

[snip]

IMHO you must set your repository as mirror for "central".

- Jörg

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





------------------------------
Ce message est protege par les regles relatives au secret des correspondances ; 
il peut en outre contenir des informations a caractere confidentiel ou 
protegees par differentes regles et notamment le secret des affaires ; il est 
etabli a destination exclusive de son destinataire. Toute divulgation, 
utilisation, diffusion ou reproduction (totale ou partielle) de ce message, ou 
des informations qu'il contient, doit etre prealablement autorisee. 
Tout message electronique est susceptible d'alteration et son integrite ne peut 
etre assuree. Les AGF declinent toute responsabilite au titre de ce message 
s'il a ete modifie ou falsifie. 
Si vous n'etes pas destinataire de ce message, merci de le detruire 
immediatement et d'avertir l'expediteur de l'erreur de distribution et de la 
destruction du message.
This message is protected by the secrecy of correspondence rules ; furthermore 
it may contain privileged or confidential information that is protected by law, 
notably by the secrecy of business relations rule ; it is intended solely for 
the attention of   the addressee . Any disclosure, use, dissemination or 
reproduction (either whole or  partial) of this message or the information 
contained herein is strictly prohibited without prior consent.
Any electronic message  is susceptible to alteration  and  its integrity can 
not be assured.  AGF declines any  responsibility for  this message in the 
event of  alteration  or falsification..
If you are not the intended  recipient, please destroy it immediately and  
notify the sender of the wrong delivery and the mail deletion. 
------------------------------


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

Reply via email to