Bug 759470
| Summary: | resolver - latest vs. LATEST | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Stanislav Ochotnicky <sochotni> |
| Component: | maven | Assignee: | Mikolaj Izdebski <mizdebsk> |
| Status: | CLOSED RAWHIDE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | rawhide | CC: | akurtako, cdewolf, java-sig-commits, sochotni |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | 3.0.4-28 | Doc Type: | Bug Fix |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2013-02-11 10:01:20 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
|
Description
Stanislav Ochotnicky
2011-12-02 13:08:37 UTC
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 |