I have trouble with my organization repository (for maven2).
Here is my configuration : I have an organisation repository on a tomcat server. This repository has been populated by all the maven plugins and my projects (this repository is the local repository of the maven tool installed on this machine so it has been automatically populated because this machine has internet access). I want that all developers use this repository because they don't have access to internet. Developers use Eclipse on Windows XP and run maven 2 with external tools shortcuts. I try 3 scenarios : - In my settings.xml I declare my new repository (abc) and run maven : Settings.xml <settings> <proxies> <proxy> <id>optional</id> <active>true</active> <protocol>http</protocol> <host>10.133.2.84</host> <port>8080</port> <nonProxyHosts>10.133.125.36</nonProxyHosts> </proxy> </proxies> <profiles> <profile> <id>developpement</id> <activation> <property> <name>env</name> <value>dev</value> </property> </activation> <repositories> <repository> <id>abc</id> <name>Repository interne</name> <url>http://10.233.125.36:8080/m2repository</url> </repository> </repositories> <pluginRepositories> <pluginRepository> <id>abc</id> <name>Repository interne pour plugins</name> <url>http://10.233.125.36:8080/m2repository</url> </pluginRepository> </pluginRepositories> </profile> </profiles> <activeProfiles> <activeProfile>developpement</activeProfile> </activeProfiles> </settings> The result is : INFO] Scanning for projects... [INFO] ------------------------------------------------------------------------ ---- [INFO] Building FWK_PRM [INFO] task-segment: [process-resources] [INFO] ------------------------------------------------------------------------ ---- [INFO] artifact org.apache.maven.plugins:maven-resources-plugin: checking for updates from abc [INFO] artifact org.apache.maven.plugins:maven-resources-plugin: checking for updates from central Downloading: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-resources-p lugin/2.2/maven-resources-plugin-2.2.pom 1/1K 1K downloaded Downloading: http://10.233.125.36:8080/m2repository/org/apache/maven/plugins/maven-re sources-plugin/2.2/maven-resources-plugin-2.2.jar 4/13K 8/13K 9/13K 13/13K 13K downloaded Why maven download the pom from repo1 and the jar from my repository? If I look at my repository the pom is present. If I replace in my settings.xml my repository id by "central" to override maven central repository then I get the error : [INFO] Scanning for projects... [INFO] ------------------------------------------------------------------------ ---- [INFO] Building FWK_PRM [INFO] task-segment: [process-resources] [INFO] ------------------------------------------------------------------------ ---- [INFO] artifact org.apache.maven.plugins:maven-resources-plugin: checking for updates from central [INFO] ------------------------------------------------------------------------ [ERROR] BUILD ERROR [INFO] ------------------------------------------------------------------------ [INFO] The plugin 'org.apache.maven.plugins:maven-resources-plugin' does not exist or no valid version could be found [INFO] ------------------------------------------------------------------------ [INFO] For more information, run Maven with the -e switch [INFO] ------------------------------------------------------------------------ [INFO] Total time: < 1 second [INFO] Finished at: Wed Aug 30 17:55:58 CEST 2006 [INFO] Final Memory: 1M/2M [INFO] ------------------------------------------------------------------------ So, I try another test. I specify a proxy setting to download the resources plugin from internet and restart the command and get this error : [INFO] Scanning for projects... Downloading: http://10.233.125.36:8080/m2repository/sft/framework/tru/FWK/2005.3/FWK- 2005.3.pom 1/1K 1K downloaded [WARNING] *** CHECKSUM FAILED - Error retrieving checksum file for sft/framework/tru/FWK/2005.3/FWK-2005.3.pom - IGNORING Because my project pom refer to this dependency maven try to download it from my organization repository, this works but I get this warning. Indeed, there is no checksum file for my projects installed on my organization repository, why? Does maven don't create this file automatically? Is it because I use install-file goal? Thanks in advance. Franck HUGOT