Hello to the Maven users, I have an issue with Maven and a missing artifact, that in fact is on our local Maven repository
$ mvn -version Apache Maven 3.0.2 (r1056850; 2011-01-09 00:58:10+0000) Java version: 1.6.0_21, vendor: Sun Microsystems Inc. Java home: C:\Program Files\Java\jdk1.6.0_21\jre Default locale: en_GB, platform encoding: Cp1252 OS name: "windows 7", version: "6.1", arch: "amd64", family: "windows" $mvn dependency:analyze [ERROR] Failed to execute goal on project corba-test-bench: Could not resolve dependencies for project uk.co.mycompany.corba.test.bench:corba-test-bench:jar:1.0.0-SNAPSHOT: The following artifacts could not be resolved: uk.co.mycompany.corba:common-corba-v3:jar:jacorb:3.0.10-SNAPSHOT, uk.co.mycompany.corba:igtypes:jar:jacorb:1.0.6-SNAPSHOT: Could not find artifact uk.co.mycompany.corba:common-corba-v3:jar:jacorb:3.0.10-20110418.093031-6 in nexus.ig.snapshot.repo (http://maven-repo2.mygroup.local:8081/nexus/content/repositories/ig.snapshot) -> [Help 1] At my company, we use the following repository: Sonatype Nexus Open Source Edition, Version: 1.8.0 If I open my browser at the url http://maven-repo2.mygroup.local:8081/nexus/content/repositories/ig.snapshot/uk/co/mycompany/corba/common-corba-v3/3.0.10-SNAPSHOT/ I can see these files: common-corba-v3-3.0.10-20110418.084702-1.pom common-corba-v3-3.0.10-20110418.084702-1.pom.md5 common-corba-v3-3.0.10-20110418.084702-1.pom.sha1 common-corba-v3-3.0.10-20110418.084731-2.pom common-corba-v3-3.0.10-20110418.084731-2.pom.md5 common-corba-v3-3.0.10-20110418.084731-2.pom.sha1 common-corba-v3-3.0.10-20110418.090905-3.pom common-corba-v3-3.0.10-20110418.090905-3.pom.md5 common-corba-v3-3.0.10-20110418.090905-3.pom.sha1 common-corba-v3-3.0.10-20110418.090951-4.pom common-corba-v3-3.0.10-20110418.090951-4.pom.md5 common-corba-v3-3.0.10-20110418.090951-4.pom.sha1 common-corba-v3-3.0.10-20110418.092902-5.pom common-corba-v3-3.0.10-20110418.092902-5.pom.md5 common-corba-v3-3.0.10-20110418.092902-5.pom.sha1 common-corba-v3-3.0.10-20110418.093031-6.pom common-corba-v3-3.0.10-20110418.093031-6.pom.md5 common-corba-v3-3.0.10-20110418.093031-6.pom.sha1 common-corba-v3-3.0.10-SNAPSHOT-jacorb.jar common-corba-v3-3.0.10-SNAPSHOT-jacorb.jar.md5 common-corba-v3-3.0.10-SNAPSHOT-jacorb.jar.sha1 common-corba-v3-3.0.10-SNAPSHOT-sunorb.jar common-corba-v3-3.0.10-SNAPSHOT-sunorb.jar.md5 common-corba-v3-3.0.10-SNAPSHOT-sunorb.jar.sha1 maven-metadata.xml maven-metadata.xml.md5 maven-metadata.xml.sha1 The metadata file is <metadata> <groupId>uk.co.mycompany.corba</groupId> <artifactId>common-corba-v3</artifactId> <version>3.0.10-SNAPSHOT</version> <versioning> <snapshot> <timestamp>20110418.093031</timestamp> <buildNumber>6</buildNumber> </snapshot> <lastUpdated>20110418093046</lastUpdated> </versioning> <style /> </metadata> The artifact common-corba-v3 is built and deployedusing the following configuration <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-jar-plugin</artifactId> <configuration> <classifier>${envClassifier}</classifier> </configuration> </plugin> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-deploy-plugin</artifactId> <version>2.5</version> <!-- <configuration> --> <!-- <classifier>${envClassifier}</classifier> --> <!-- </configuration> --> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-install-plugin</artifactId> <version>2.3</version> <!-- <configuration> --> <!-- <classifier>${envClassifier}</classifier> --> <!-- </configuration> --> </plugin> </plugins> where ${envClassifier} can be sunorb or jacorb. The build fail also if I uncomment the <configuration> in the install and deploy plugins. This is not the only artfact that cannot be resolved, despite it's there, on the repository. I can download it on my hard drive. I have tried all Maven version from 2.2.0 to 3.0.2 The thing hat baffles me is that the build, sometimes succeeed, but most of the time it fails. I have tried to fix this since weeks, when it looks fine, suddenly the problems re-arise. I cannot find much help googling. Please, can you help me? Many thanks -- Claves do Amaral Email: [email protected] LinkedIn: http://www.linkedin.com/pub/claves-do-amaral/a/b3b/1a9 --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
