[ http://jira.codehaus.org/browse/MNG-2340?page=all ]

Eugene Kuleshov updated MNG-2340:
---------------------------------

    Assign To: Jason van Zyl  (was: Eugene Kuleshov)
    Component: Embedding

Jason, it looks like embedder.readProjectWithDependencies() returns lucene 1.3 
when reading child project that redefine dependency (even with trunk embedder 
snapshot you gave me):

6/2/06 10:36:09 AM EDT: [DEBUG] MNGECLIPSE-131-parent: using locally installed 
snapshot
6/2/06 10:36:09 AM EDT: [DEBUG] 
org.maven.ide.tests:MNGECLIPSE-131-app:jar:1.0-SNAPSHOT (selected for null)
6/2/06 10:36:09 AM EDT: [DEBUG]   lucene:lucene:jar:1.4.3:compile (applying 
version: 1.3;)
6/2/06 10:36:09 AM EDT: [DEBUG]   lucene:lucene:jar:1.3:compile (selected for 
compile)
6/2/06 10:36:09 AM EDT: [DEBUG]   junit:junit:jar:3.8.1:test (selected for test)

Strange thing, that it is working right from the command line with Maven 2.0.4

> Incorrect dependency version downloaded
> ---------------------------------------
>
>          Key: MNG-2340
>          URL: http://jira.codehaus.org/browse/MNG-2340
>      Project: Maven 2
>         Type: Bug

>   Components: Embedding
>     Versions: 2.0.4
>     Reporter: Adrian
>     Assignee: Jason van Zyl
>     Priority: Critical
>  Attachments: MNGECLIPSE-131.zip
>
>
> I have a parent pom with a dependency management section specifying the 
> version of an artifact to use. In the child project, I override this version.
> The maven plugin ignores the overriding version and downloads the version 
> specified by the parent pom.
> For example, in the parent pom
> {code}
> <dependency>
>       <groupId>lucene</groupId>
>       <artifactId>lucene</artifactId>
>       <version>1.4.3</version>
> </dependency>
> {code}
> in the project pom, inheriting the parent pom
> {code}
> <dependency>
>       <groupId>lucene</groupId>
>       <artifactId>lucene</artifactId>
>       <version>2.0</version>
> </dependency>
> {code}
> The maven eclipse plugin downloads version 1.4.3 for my project

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira

Reply via email to