Bug 870395 - maven: fails to resolve versioned artifacts
Summary: maven: fails to resolve versioned artifacts
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: maven
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Mikolaj Izdebski
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-10-26 11:25 UTC by Mikolaj Izdebski
Modified: 2013-02-11 09:59 UTC (History)
4 users (show)

Fixed In Version: 3.0.4-28
Clone Of:
Environment:
Last Closed: 2013-02-11 09:59:08 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Mikolaj Izdebski 2012-10-26 11:25:12 UTC
Description of problem:
maven fails to resolve versioned artifacts if dependency version doesn't match exactly version specified in JPP depmap, even if the artifact file suffix matches version of the dependency.

Version-Release number of selected component (if applicable):
maven-3.0.4-14.fc19.noarch

How reproducible:
Pseudo-randomly (depends on depmap order)

Steps to Reproduce:
mvn-rpmbuild example:example:1.0:foo

pom.xml contains:
> <dependency>
>   <groupId>example</groupId>
>   <artifactId>example</artifactId>
>   <version>1.0</version>
> </dependency>

depmap.xml contains:
> <dependency>
>   <maven>
>     <groupId>example</groupId>
>     <artifactId>example</artifactId>
>     <version>1.0-Final</version>
>   </maven>
>   <jpp>
>     <groupId>JPP/example1</groupId>
>     <artifactId>example</artifactId>
>     <version>1.0-Final</version>
>   </jpp>
> </dependency>
> <dependency>
>   <maven>
>     <groupId>example</groupId>
>     <artifactId>example</artifactId>
>     <version>2.0-Final</version>
>   </maven>
>   <jpp>
>     <groupId>JPP/example</groupId>
>     <artifactId>example</artifactId>
>     <version>2.0-Final</version>
>   </jpp>
> </dependency>

File system contains:
> /usr/share/java/example1/example-1.0.jar
> /usr/share/java/example/example.jar

Actual results:
maven resolves either of 2 jars (depeding on semi-random factors).
In the above case /usr/share/java/example/example.jar is resolved.

Expected results:
maven resolves /usr/share/java/example1/example-1.0.jar

Additional info:

Comment 1 Mikolaj Izdebski 2013-02-11 09:59:08 UTC
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


Note You need to log in before you can comment on or make changes to this bug.