Hi all, I am trying to make Archiva be able to download the "dashboard" report plugin.
In my pom.xml : <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>dashboard-maven-plugin</artifactId> <version>1.0-SNAPSHOT</version> </plugin> Because this plugin is in codehaus snapshot, I added http://snapshots.repository.codehaus.org/ to archiva.xml. Here are all my repositories : <remoteRepositories> <remoteRepository> <url>http://repo1.maven.org/maven2</url> <id>Central</id> <name>Central Repository</name> </remoteRepository> <remoteRepository> <url>http://download.java.net/maven/2/</url> <id>Java.net</id> <name>Java.net Repository</name> </remoteRepository> <remoteRepository> <url>http://snapshots.repository.codehaus.org/</url> <id>Codehaus Snapshots</id> <name>Codehaus Snapshots Repository</name> </remoteRepository> <remoteRepository> <url>http://repository.codehaus.org/</url> <id>Codehaus</id> <name>Codehaus Repository</name> </remoteRepository> <remoteRepository> <url>http://people.apache.org/maven-snapshot-repository</url> <id>Apache Snapshots</id> <name>Apache Snapshots Repository</name> </remoteRepository> </remoteRepositories> And my proxyConnectors : (Notice that the main difference is for "Apache Snapshots" and "Codehaus Snapshots", where <snapshots> is set to "once" and <release> to "never") <proxyConnectors> <proxyConnector> <order>1</order> <sourceRepoId>internal</sourceRepoId> <targetRepoId>Central</targetRepoId> <proxyId>my proxy</proxyId> <whiteListPatterns> <whiteListPattern>**/*</whiteListPattern> </whiteListPatterns> <policies> <releases>once</releases> <checksum>fix</checksum> <snapshots>never</snapshots> <cache-failures>yes</cache-failures> </policies> </proxyConnector> <proxyConnector> <order>2</order> <sourceRepoId>internal</sourceRepoId> <targetRepoId>Java.net</targetRepoId> <proxyId>my proxy</proxyId> <whiteListPatterns> <whiteListPattern>**/*</whiteListPattern> </whiteListPatterns> <policies> <releases>once</releases> <checksum>fix</checksum> <snapshots>never</snapshots> <cache-failures>yes</cache-failures> </policies> </proxyConnector> <proxyConnector> <order>3</order> <sourceRepoId>internal</sourceRepoId> <targetRepoId>Codehaus</targetRepoId> <proxyId>my proxy</proxyId> <whiteListPatterns> <whiteListPattern>**/*</whiteListPattern> </whiteListPatterns> <policies> <releases>once</releases> <checksum>fix</checksum> <snapshots>never</snapshots> <cache-failures>yes</cache-failures> </policies> </proxyConnector> <proxyConnector> <order>4</order> <sourceRepoId>internal</sourceRepoId> <targetRepoId>Codehaus Snapshots</targetRepoId> <proxyId>my proxy</proxyId> <whiteListPatterns> <whiteListPattern>**/*</whiteListPattern> </whiteListPatterns> <policies> <releases>never</releases> <checksum>fix</checksum> <snapshots>once</snapshots> <cache-failures>yes</cache-failures> </policies> </proxyConnector> <proxyConnector> <order>5</order> <sourceRepoId>internal</sourceRepoId> <targetRepoId>Apache Snapshots</targetRepoId> <proxyId>my proxy</proxyId> <whiteListPatterns> <whiteListPattern>**/*</whiteListPattern> </whiteListPatterns> <policies> <releases>never</releases> <checksum>fix</checksum> <snapshots>once</snapshots> <cache-failures>yes</cache-failures> </policies> </proxyConnector> </proxyConnectors> In my settings.xml : <mirror> <id>archiva.default</id> <url>http://localhost:8080/archiva/repository/internal/</url> <mirrorOf>*</mirrorOf> </mirror> But when I launch "mvn site" the archiva console prints (I noticed there are no log for "Apache Snapshots" and "Codehaus Snapshots") : jvm 1 | 2008-03-11 10:37:52,744 [SocketListener0-1] INFO org.apache.archiva.AuditLog - internal guest 127.0.0.1 "org/codehaus/mojo/jalopy-maven-plugin/1.0-alpha-1/jalopy-maven-plugin-1.0-alpha-1.jar" "Modify File (proxied)" jvm 1 | 2008-03-11 10:37:54,572 [SocketListener0-1] INFO org.apache.archiva.AuditLog - internal guest 127.0.0.1 "/org/codehaus/mojo/dashboard-maven-plugin/1.0-SNAPSHOT/maven-metadata.xml" "Modify File (proxied)" jvm 1 | 2008-03-11 10:37:54,603 [SocketListener0-1] INFO org.apache.maven.archiva.proxy.RepositoryProxyConnectors:default - Transfer not attempted on http://repo1.maven.org/maven2/org/codehaus/mojo/dashboard-maven-plugin/1.0-SNAPSHOT/dashboard-maven-plugin-1.0-20080310.203128-18.pom : NO to update, snapshots policy set to NEVER.: using already present local file. jvm 1 | 2008-03-11 10:37:54,603 [SocketListener0-1] INFO org.apache.archiva.AuditLog - internal guest 127.0.0.1 "org/codehaus/mojo/dashboard-maven-plugin/1.0-SNAPSHOT/dashboard-maven-plugin-1.0-20080310.203128-18.pom" "Modify File (proxied)" and the maven console : [ERROR] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] A required plugin was not found: Plugin could not be found - check that the goal name is correct: Unable to download the artifact from any repository Try downloading the file manually from the project website. Then, install it using the command: mvn install:install-file -DgroupId=org.codehaus.mojo -DartifactId=dashboard-maven-plugin -Dversion=1.0-SNAPSHOT -Dpackaging=maven-plugin -Dfile=/path/to/file Alternatively, if you host your own repository you can deploy the file there: mvn deploy:deploy-file -DgroupId=org.codehaus.mojo -DartifactId=dashboard-maven-plugin -Dversion=1.0-SNAPSHOT -Dpackaging=maven-plugin -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id] org.codehaus.mojo:dashboard-maven-plugin:maven-plugin:1.0-SNAPSHOT from the specified remote repositories: central (http://repo1.maven.org/maven2) org.codehaus.mojo:dashboard-maven-plugin:maven-plugin:1.0-SNAPSHOT from the specified remote repositories: central (http://repo1.maven.org/maven2) It seems that the problem is only for snapshots plugins because I have the same problem with jdepend and findbug (which are in snapshot version) but I have no problem with the other plugins. What is missing in my setting ? Thank you for any help Laurent Delaforge ___________________________________________________________________________ L'integrite de ce message n'etant pas assuree sur Internet, les societes du groupe Oddo ne peuvent ?tre tenues responsables de son contenu. Ce message et les eventuels fichiers attaches contiennent des informations confidentielles. Au cas o? il ne vous serait pas destine, nous vous remercions de bien vouloir le supprimer et en aviser l'expediteur. This message and the files that may be attached to it contain confidential information. The Oddo group may not be held responsible for their contents, whose accuracy and completeness cannot be guaranteed over the internet. If the message is not addressed to you, kindly delete it and notify the sender. ___________________________________________________________________________
