Bonjour,
Je viens d'installer maestro.
Je l'ai déclaré un "Proxied Repository"
URL : http://repo1.maven.org/maven2
identifiant : central
en local mon settings.xml est le suivant :
<?xml version="1.0" encoding="UTF-8"?><settings>
<localRepository>F:\repository</localRepository>
<mirrors>
<mirror>
<mirrorOf>central</mirrorOf>
<name>Central Mirror Repository</name>
<url>http://xxxxxx:8080/repository</url>
<id>central-mirror</id>
</mirror>
</mirrors>
<profiles>
<profile>
<id>maestro</id>
<repositories>
<repository>
<id>central</id>
<name>Maestro Project Server</name>
<url>http://xxxxxx:8080/repository</url>
</repository>
</repositories>
<pluginRepositories>
<pluginRepository>
<id>central</id>
<name>Maestro Project Server</name>
<url>http://xxxxxx:8080/repository</url>
</pluginRepository>
</pluginRepositories>
</profile>
</profiles>
<activeProfiles>
<activeProfile>maestro</activeProfile>
</activeProfiles>
</settings>
Quand je lance un "mvn install" d'un projet, Maven essaye bien d'aller récupérer mes artifacts sur mon repository "xxxxxx:8080" mais échoue (ce qui est normal puisque vide!)
Downloading: http://xxxxxx:8080/repository/org/co...plexus-maven-p
lugin/1.3.3/plexus-maven-plugin-1.3.3.jar
[WARNING] Unable to get resource 'org.codehaus.plexus:plexus-maven-plugin:maven-
plugin:1.3.3' from repository central (http://xxxxxx:8080/repository)
[INFO] Cannot find mojo descriptor for: 'help:effective-settings' - Treating as
non-aggregator.
…
Try downloading the file manually from the project website.
Then, install it using the command:
mvn install:install-file -DgroupId=org.codehaus.plexus -DartifactId=plexus-m
aven-plugin \
-Dversion=1.3.3 -Dpackaging=maven-plugin -Dfile=/path/to/file
org.codehaus.plexus:plexus-maven-plugin:maven-plugin:1.3.3
from the specified remote repositories:
central (http://xxxxxxxxx:8080/repository),
snapshots.codehaus.org (http://snapshots.repository.codehaus.org)
org.codehaus.plexus:plexus-maven-plugin:maven-plugin:1.3.3
from the specified remote repositories:
central (http://xxxxxxx:8080/repository),
snapshots.codehaus.org (http://snapshots.repository.codehaus.org)
Je voudrais que de façon "transparente" Archiva aille récupérer le fichier manquant sur "repo1.maven.org/maven2" comme paramétré.
Partager