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