Description of problem: mvn-rpmbuild has problems with some dependencies when returning "latest" as available versions. "LATEST" works though. See if this change makes sense in the code and make a fix
Using: <dependency> <groupId>org.codehaus.plexus</groupId> <artifactId>plexus-container-default</artifactId> <version>latest</version> </dependency> The regular mvn build will fail with: [ERROR] Failed to execute goal on project maven-plugin-api: Could not resolve dependencies for project org.apache.maven:maven-plugin-api:jar:3.0.3: Failure to find org.codehaus.plexus:plexus-container-default:jar:latest in https://repository.jboss.org/nexus/content/groups/public/ was cached in the local repository, resolution will not be reattempted until the update interval of jboss-public-repository-group has elapsed or updates are forced -> [Help 1] Using: <dependency> <groupId>org.codehaus.plexus</groupId> <artifactId>plexus-container-default</artifactId> <version>LATEST</version> </dependency> mvn-rpmbuild fails with: [ERROR] Failed to execute goal org.apache.maven.plugins:maven-clean-plugin:2.4.1:clean (default-clean) on project maven: Execution default-clean of goal org.apache.maven.plugins:maven-clean-plugin:2.4.1:clean failed: Plugin org.apache.maven.plugins:maven-clean-plugin:2.4.1 or one of its dependencies could not be resolved: Failed to collect dependencies for org.apache.maven.plugins:maven-clean-plugin:jar:2.4.1 (): Failed to read artifact descriptor for org.codehaus.plexus:plexus-container-default:jar:LATEST: Failed to resolve version for org.codehaus.plexus:plexus-container-default:jar:LATEST: Could not find metadata org.codehaus.plexus:plexus-container-default/maven-metadata.xml in local (/home/carlo/work/apache/maven/maven-3/tags/maven-3.0.3/.m2) -> [Help 1]
I believe that this bug is fixed in maven-3.0.4-28, which is available in Fedora Rawhide. I am closing the bug now, thank you for reporting it. A summary of changes is included below. * Wed Jan 23 2013 Mikolaj Izdebski <mizdebsk> - 3.0.4-28 - Move mvn-local and mvn-rpmbuild out of %_bindir