[archiva] Archiva comme proxy
Je veux utiliser Archiva comme repository d'entreprise et comme proxiedRepository repo.mergere.com.
Si j'ai bien compris, quand je demande un jar :
- maven regarde dans le repository local : première demande donc il ne le trouve pas.
il demande a mon repository d’entreprise : archiva ne l'a pas. - Archiva demande à repo.mergere.com: il le trouve et le download .
- Archiva le stock dans son repository
- Archiva signal à maven qu'il a le jar.
- Maven download le jar
Le scénario est-il bien comme cela ?
Dans mon cas j'utilise un proxy http.
Ma configuration archiva :
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
|
<?xml version="1.0" encoding="UTF-8"?><configuration>
<repositories>
<repository>
<directory>D:\Program Files\Mergere\Maestro 1.1\project-server\bin\win32\..\..\data\project-server\repository</directory>
<id>maestro</id>
<name>Managed Repository</name>
</repository>
</repositories>
<proxiedRepositories>
<proxiedRepository>
<url>http://repo.mergere.com/maven2</url>
<managedRepository>maestro</managedRepository>
<releasesPolicy>interval</releasesPolicy>
<releasesInterval>1</releasesInterval>
<useNetworkProxy>true</useNetworkProxy>
<id>mergere</id>
<name>Mergere Repository Mirror</name>
</proxiedRepository>
</proxiedRepositories>
<localRepository>C:\Documents and Settings\moi\.m2\repository</localRepository>
<indexPath>D:\Program Files\Mergere\Maestro 1.1\project-server\data\project-server\index</indexPath>
<proxy>
<username></username>
<password></password>
<port>1234</port>
<host>proxy.monentreprise.com</host>
</proxy>
</configuration> |
Mon test :
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73
|
C:\projets>mvn help:effective-pom
[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'help'.
[INFO] org.apache.maven.plugins: checking for updates from maestro-project-server
[INFO] org.apache.maven.plugins: checking for updates from central
[INFO] ----------------------------------------------------------------------------
[INFO] Building MonProjet
[INFO] task-segment: [help:effective-pom] (aggregator-style)
[INFO] ----------------------------------------------------------------------------
Downloading: http://localhost:8080/repository/org/apache/maven/maven-settings/2.0/maven-settings-2.0.pom
[WARNING] Unable to get resource from repository maestro-project-server (http://localhost:8080/repository)
Downloading: http://repo.mergere.com/maven2/org/apache/maven/maven-settings/2.0/maven-settings-2.0.pom
[WARNING] Unable to get resource from repository central (http://repo.mergere.com/maven2)
Downloading: http://localhost:8080/repository/org/apache/maven/maven-plugin-tools-api/2.0/maven-plugin-tools-api-2.0.pom
[WARNING] Unable to get resource from repository maestro-project-server (http://localhost:8080/repository)
Downloading: http://repo.mergere.com/maven2/org/apache/maven/maven-plugin-tools-api/2.0/maven-plugin-tools-api-2.0.pom
[WARNING] Unable to get resource from repository central (http://repo.mergere.com/maven2)
Downloading: http://localhost:8080/repository/org/apache/maven/maven-plugin-descriptor/2.0/maven-plugin-descriptor-2.0.pom
[WARNING] Unable to get resource from repository maestro-project-server (http://localhost:8080/repository)
Downloading: http://repo.mergere.com/maven2/org/apache/maven/maven-plugin-descriptor/2.0/maven-plugin-descriptor-2.0.pom
[WARNING] Unable to get resource from repository central (http://repo.mergere.com/maven2)
Downloading: http://localhost:8080/repository/org/apache/maven/maven-core/2.0/maven-core-2.0.pom
[WARNING] Unable to get resource from repository maestro-project-server (http://localhost:8080/repository)
Downloading: http://repo.mergere.com/maven2/org/apache/maven/maven-core/2.0/maven-core-2.0.pom
[WARNING] Unable to get resource from repository central (http://repo.mergere.com/maven2)
Downloading: http://localhost:8080/repository/org/apache/maven/maven-plugin-api/2.0/maven-plugin-api-2.0.pom
[WARNING] Unable to get resource from repository maestro-project-server (http://localhost:8080/repository)
Downloading: http://repo.mergere.com/maven2/org/apache/maven/maven-plugin-api/2.0/maven-plugin-api-2.0.pom
[WARNING] Unable to get resource from repository central (http://repo.mergere.com/maven2)
Downloading: http://localhost:8080/repository/org/apache/maven/maven-plugin-tools-api/2.0/maven-plugin-tools-api-2.0.jar
[WARNING] Unable to get resource from repository maestro-project-server (http://localhost:8080/repository)
Downloading: http://repo.mergere.com/maven2/org/apache/maven/maven-plugin-tools-api/2.0/maven-plugin-tools-api-2.0.jar
[WARNING] Unable to get resource from repository central (http://repo.mergere.com/maven2)
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Failed to resolve artifact.
Missing:
----------
1) org.apache.maven:maven-plugin-tools-api:jar:2.0
Try downloading the file manually from the project website.
Then, install it using the command:
mvn install:install-file -DgroupId=org.apache.maven -DartifactId=maven-plugin-tools-api \
-Dversion=2.0 -Dpackaging=jar -Dfile=/path/to/file
Path to dependency:
1) org.apache.maven.plugins:maven-help-plugin:maven-plugin:2.0.1
2) org.apache.maven:maven-plugin-tools-api:jar:2.0
----------
1 required artifact is missing.
for artifact:
org.apache.maven.plugins:maven-help-plugin:maven-plugin:2.0.1
from the specified remote repositories:
central (http://repo.mergere.com/maven2),
maestro-project-server (http://localhost:8080/repository)
[INFO] ------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 3 minutes 33 seconds
[INFO] Finished at: Tue Nov 14 17:49:06 CET 2006
[INFO] Final Memory: 4M/508M
[INFO] ------------------------------------------------------------------------
C:\projets> |
Je me demande si j'ai un problème plus de configuration d'archiva ou plus réseau et firewall :question: :question: (ou de compréhension des fonctionnalités d'archiva):?