You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Igor Fedorenko (JIRA)" <ji...@codehaus.org> on 2009/02/12 23:09:19 UTC

[jira] Created: (MNG-4034) dependency version is not inherited from parent dependencyManagement

dependency version is not inherited from parent dependencyManagement
--------------------------------------------------------------------

                 Key: MNG-4034
                 URL: http://jira.codehaus.org/browse/MNG-4034
             Project: Maven 2
          Issue Type: Bug
          Components: Inheritance and Interpolation
    Affects Versions: 3.0-alpha-1
            Reporter: Igor Fedorenko


Dependency version is missing for dependencies defined inside a profile and actual version provided in dependencyManagement section of the parent pom. I will attach sample (effective) pom shortly.

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

        

[jira] Closed: (MNG-4034) [regression] dependency version is not inherited from parent dependencyManagement

Posted by "Shane Isbell (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MNG-4034?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Shane Isbell closed MNG-4034.
-----------------------------

    Resolution: Fixed

> [regression] dependency version is not inherited from parent dependencyManagement
> ---------------------------------------------------------------------------------
>
>                 Key: MNG-4034
>                 URL: http://jira.codehaus.org/browse/MNG-4034
>             Project: Maven 2
>          Issue Type: Bug
>          Components: Inheritance and Interpolation, Profiles
>    Affects Versions: 3.0-alpha-1
>            Reporter: Igor Fedorenko
>            Assignee: Shane Isbell
>             Fix For: 3.0-alpha-3
>
>         Attachments: effpom.xml, mng4034.zip
>
>
> Dependency version is missing for dependencies defined inside a profile and actual version provided in dependencyManagement section of the parent pom. I will attach sample (effective) pom shortly.

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

        

[jira] Updated: (MNG-4034) dependency version is not inherited from parent dependencyManagement

Posted by "Igor Fedorenko (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MNG-4034?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Igor Fedorenko updated MNG-4034:
--------------------------------

    Attachment: effpom.xml

sample effective pom

> dependency version is not inherited from parent dependencyManagement
> --------------------------------------------------------------------
>
>                 Key: MNG-4034
>                 URL: http://jira.codehaus.org/browse/MNG-4034
>             Project: Maven 2
>          Issue Type: Bug
>          Components: Inheritance and Interpolation
>    Affects Versions: 3.0-alpha-1
>            Reporter: Igor Fedorenko
>         Attachments: effpom.xml
>
>
> Dependency version is missing for dependencies defined inside a profile and actual version provided in dependencyManagement section of the parent pom. I will attach sample (effective) pom shortly.

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

        

[jira] Commented: (MNG-4034) [regression] dependency version is not inherited from parent dependencyManagement

Posted by "Shane Isbell (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MNG-4034?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=165933#action_165933 ] 

Shane Isbell commented on MNG-4034:
-----------------------------------

This occurs because the building sequence is: 1) inheritance; 2) dependency management; 3) profiles. Since the profile contains the dependency, it is joined in after dependency management rules and thus does not contain the version. I'll re-work ordering.

> [regression] dependency version is not inherited from parent dependencyManagement
> ---------------------------------------------------------------------------------
>
>                 Key: MNG-4034
>                 URL: http://jira.codehaus.org/browse/MNG-4034
>             Project: Maven 2
>          Issue Type: Bug
>          Components: Inheritance and Interpolation, Profiles
>    Affects Versions: 3.0-alpha-1
>            Reporter: Igor Fedorenko
>            Assignee: Shane Isbell
>             Fix For: 3.0-alpha-3
>
>         Attachments: effpom.xml
>
>
> Dependency version is missing for dependencies defined inside a profile and actual version provided in dependencyManagement section of the parent pom. I will attach sample (effective) pom shortly.

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

        

[jira] Updated: (MNG-4034) [regression] dependency version is not inherited from parent dependencyManagement

Posted by "Benjamin Bentmann (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MNG-4034?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Benjamin Bentmann updated MNG-4034:
-----------------------------------

    Summary: [regression] dependency version is not inherited from parent dependencyManagement  (was: dependency version is not inherited from parent dependencyManagement)

> [regression] dependency version is not inherited from parent dependencyManagement
> ---------------------------------------------------------------------------------
>
>                 Key: MNG-4034
>                 URL: http://jira.codehaus.org/browse/MNG-4034
>             Project: Maven 2
>          Issue Type: Bug
>          Components: Inheritance and Interpolation, Profiles
>    Affects Versions: 3.0-alpha-1
>            Reporter: Igor Fedorenko
>            Assignee: Shane Isbell
>             Fix For: 3.0-alpha-3
>
>         Attachments: effpom.xml
>
>
> Dependency version is missing for dependencies defined inside a profile and actual version provided in dependencyManagement section of the parent pom. I will attach sample (effective) pom shortly.

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

        

[jira] Closed: (MNG-4034) [regression] dependency version is not inherited from parent dependencyManagement

Posted by "Shane Isbell (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MNG-4034?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Shane Isbell closed MNG-4034.
-----------------------------

    Resolution: Fixed

> [regression] dependency version is not inherited from parent dependencyManagement
> ---------------------------------------------------------------------------------
>
>                 Key: MNG-4034
>                 URL: http://jira.codehaus.org/browse/MNG-4034
>             Project: Maven 2
>          Issue Type: Bug
>          Components: Inheritance and Interpolation, Profiles
>    Affects Versions: 3.0-alpha-1
>            Reporter: Igor Fedorenko
>            Assignee: Shane Isbell
>             Fix For: 3.0-alpha-3
>
>         Attachments: effpom.xml
>
>
> Dependency version is missing for dependencies defined inside a profile and actual version provided in dependencyManagement section of the parent pom. I will attach sample (effective) pom shortly.

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

        

[jira] Reopened: (MNG-4034) [regression] dependency version is not inherited from parent dependencyManagement

Posted by "Igor Fedorenko (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MNG-4034?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Igor Fedorenko reopened MNG-4034:
---------------------------------


Still see the problem using maven 3.0 trunk rev  745288. I will attach sample project in a moment.

> [regression] dependency version is not inherited from parent dependencyManagement
> ---------------------------------------------------------------------------------
>
>                 Key: MNG-4034
>                 URL: http://jira.codehaus.org/browse/MNG-4034
>             Project: Maven 2
>          Issue Type: Bug
>          Components: Inheritance and Interpolation, Profiles
>    Affects Versions: 3.0-alpha-1
>            Reporter: Igor Fedorenko
>            Assignee: Shane Isbell
>             Fix For: 3.0-alpha-3
>
>         Attachments: effpom.xml
>
>
> Dependency version is missing for dependencies defined inside a profile and actual version provided in dependencyManagement section of the parent pom. I will attach sample (effective) pom shortly.

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

        

[jira] Updated: (MNG-4034) dependency version is not inherited from parent dependencyManagement

Posted by "Shane Isbell (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MNG-4034?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Shane Isbell updated MNG-4034:
------------------------------

    Fix Version/s: 3.0-alpha-3

> dependency version is not inherited from parent dependencyManagement
> --------------------------------------------------------------------
>
>                 Key: MNG-4034
>                 URL: http://jira.codehaus.org/browse/MNG-4034
>             Project: Maven 2
>          Issue Type: Bug
>          Components: Inheritance and Interpolation
>    Affects Versions: 3.0-alpha-1
>            Reporter: Igor Fedorenko
>            Assignee: Shane Isbell
>             Fix For: 3.0-alpha-3
>
>         Attachments: effpom.xml
>
>
> Dependency version is missing for dependencies defined inside a profile and actual version provided in dependencyManagement section of the parent pom. I will attach sample (effective) pom shortly.

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

        

[jira] Updated: (MNG-4034) [regression] dependency version is not inherited from parent dependencyManagement

Posted by "Igor Fedorenko (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MNG-4034?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Igor Fedorenko updated MNG-4034:
--------------------------------

    Attachment: mng4034.zip

Steps to reproduce the problem.

# Unzip attached mng4034.zip
# cd  mng4034/module
# mvn -X -Pupdate-dependencies help:effective-pom

The above command fails with maven 3.0 with the following message

{noformat}
igor@desktop:/workspaces/tycho-dev/mng4034/module$ /tmp/apache-maven-3.0-SNAPSHOT/bin/mvn -X -Pupdate-dependencies help:effective-pom 
+ Error stacktraces are turned on.
Maven version: 3.0-SNAPSHOT built on unknown
Java version: 1.6.0_10
Java home: /opt/jdk1.6.0_10/jre
Default locale: en_CA, platform encoding: UTF-8
OS name: "linux" version: "2.6.27-11-generic" arch: "amd64" family: "unix"
[DEBUG] Checking for external profiles in: /workspaces/tycho-dev/mng4034/module/profiles.xml
[DEBUG] 'dependencies.dependency.version' is missing for org.apache.maven:maven-embedder
[ERROR] 
Failed to build MavenProject instance for: /workspaces/tycho-dev/mng4034/module/pom.xml


POM File: /workspaces/tycho-dev/mng4034/module/pom.xml


Error stacktrace:
org.apache.maven.reactor.MavenExecutionException: Failed to build MavenProject instance for: /workspaces/tycho-dev/mng4034/module/pom.xml
	at org.apache.maven.DefaultMaven.collectProjects(DefaultMaven.java:286)
	at org.apache.maven.DefaultMaven.getProjects(DefaultMaven.java:252)
	at org.apache.maven.DefaultMaven.createReactorManager(DefaultMaven.java:97)
	at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:151)
	at org.apache.maven.embedder.MavenEmbedder.execute(MavenEmbedder.java:867)
	at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:167)
	at org.apache.maven.cli.MavenCli.main(MavenCli.java:62)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:597)
	at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
	at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
	at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:408)
	at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:351)
Caused by: org.apache.maven.project.InvalidProjectModelException: Failed to validate POM for project org.maven.ide.components:module at /workspaces/tycho-dev/mng4034/module/pom.xml
	at org.apache.maven.project.DefaultMavenProjectBuilder.validateModel(DefaultMavenProjectBuilder.java:437)
	at org.apache.maven.project.DefaultMavenProjectBuilder.buildWithProfiles(DefaultMavenProjectBuilder.java:337)
	at org.apache.maven.project.DefaultMavenProjectBuilder.build(DefaultMavenProjectBuilder.java:147)
	at org.apache.maven.DefaultMaven.collectProjects(DefaultMaven.java:282)
	... 14 more

[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILED
[INFO] ------------------------------------------------------------------------
[INFO] Total time: < 1 second
[INFO] Finished at: Tue Feb 17 18:23:59 EST 2009
[INFO] Final Memory: 3M/112M
[INFO] ------------------------------------------------------------------------
{noformat}

Expected effective pom is produced with maven 2.1.0M1

> [regression] dependency version is not inherited from parent dependencyManagement
> ---------------------------------------------------------------------------------
>
>                 Key: MNG-4034
>                 URL: http://jira.codehaus.org/browse/MNG-4034
>             Project: Maven 2
>          Issue Type: Bug
>          Components: Inheritance and Interpolation, Profiles
>    Affects Versions: 3.0-alpha-1
>            Reporter: Igor Fedorenko
>            Assignee: Shane Isbell
>             Fix For: 3.0-alpha-3
>
>         Attachments: effpom.xml, mng4034.zip
>
>
> Dependency version is missing for dependencies defined inside a profile and actual version provided in dependencyManagement section of the parent pom. I will attach sample (effective) pom shortly.

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

        

[jira] Updated: (MNG-4034) dependency version is not inherited from parent dependencyManagement

Posted by "Benjamin Bentmann (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MNG-4034?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Benjamin Bentmann updated MNG-4034:
-----------------------------------

    Component/s: Profiles

> dependency version is not inherited from parent dependencyManagement
> --------------------------------------------------------------------
>
>                 Key: MNG-4034
>                 URL: http://jira.codehaus.org/browse/MNG-4034
>             Project: Maven 2
>          Issue Type: Bug
>          Components: Inheritance and Interpolation, Profiles
>    Affects Versions: 3.0-alpha-1
>            Reporter: Igor Fedorenko
>            Assignee: Shane Isbell
>             Fix For: 3.0-alpha-3
>
>         Attachments: effpom.xml
>
>
> Dependency version is missing for dependencies defined inside a profile and actual version provided in dependencyManagement section of the parent pom. I will attach sample (effective) pom shortly.

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