[ 
http://jira.codehaus.org/browse/MIDEA-83?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_86310
 ] 

Immo Huneke commented on MIDEA-83:
----------------------------------

Thanks to whoever built the 2.1-SNAPSHOT release of the IDEA plugin. I have 
tested this and it looks as if it has resolved the version range syntax problem 
from 2.0 (see http://jira.codehaus.org/browse/MIDEA-57) but not the 
parent/child dependency version mismatch. It still uses the parent POM's 
version from the dependencyManagement section in preference to that in the 
child POM's dependency section.

> When creating the model file, the parent POM's version of a dependency is 
> added to the IDEA project's Libraries instead of the project POM's version
> ----------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: MIDEA-83
>                 URL: http://jira.codehaus.org/browse/MIDEA-83
>             Project: Maven 2.x Idea Plugin
>          Issue Type: Bug
>    Affects Versions: 2.0
>         Environment: Windows XP, Sun JDK 1.5.0 (09)
>            Reporter: Immo Huneke
>
> Create a parent POM that has a dependencyManagement section. Within this, 
> define a dependency on the latest released version of a library.
> Now create a new Maven project that specifies the parent POM as its parent. 
> Within this project, define a dependency on a later, unreleased version of 
> the same library. Note we are not overriding a dependency in the parent POM 
> (as per http://jira.codehaus.org/browse/MIDEA-57) but defining a new 
> dependency, only inheriting the default properties of the dependency from the 
> parent's dependencyManagement section.
> When you run "mvn idea:idea" from the command line, everything works fine. 
> But open the new project in IntelliJ IDEA and you will see that the older 
> version of the library has been attached, consequently any references in the 
> Java code to new APIs available only in the new version of the library will 
> remain unresolved.
> I am using version 2.1 of Maven, but cannot find version 2.1 of the IDEA 
> plugin anywhere, so I expect I'm using version 2.0 of the plugin. If someone 
> could build a version 2.1 and make it available please on a publicly 
> accessible repository, I would like to test whether this has been fixed in 
> 2.1.

-- 
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