[
http://jira.codehaus.org/browse/MNG-2314?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_90581
]
Cyrill Ruettimann commented on MNG-2314:
----------------------------------------
Ok I see. I just wondering about this behavour, since in my opinion the
classifier has a smaller impact than the version. If you look at the definition
of a dependency:
<dependency>
<groupId>org.testng</groupId>
<artifactId>testng</artifactId>
<version>5.1</version>
<scope>test</scope>
<classifier>jdk14</classifier>
</dependency>
With the classifier you declare to stick with version 5.1, but with a special
kind of this version.
testng-5.1.jar --> testng-5.1-jdk14.jar
The same applies to javadoc and sources (if you upload javadocs and sources
with deploy:deploy-file).
But maven behaves (what you are saying) different in the case of dependency
resolution (at least in reactor builds). The classifier is on the same level as
groupId and artifactId. This is different from the view of the repository
hierarchy.
> <dependencyManagement> not inherited more than one level
> --------------------------------------------------------
>
> Key: MNG-2314
> URL: http://jira.codehaus.org/browse/MNG-2314
> Project: Maven 2
> Issue Type: Bug
> Components: Dependencies, Inheritance and Interpolation
> Affects Versions: 2.0.4
> Reporter: Simon Kepp Nielsen
> Assigned To: John Casey
> Fix For: 2.0.5
>
> Attachments: MNG-2314.test.zip
>
>
> Version information from the <dependencyManagement> section in the parent pom
> is correctly inherited to dependencies in a child project. But if you try to
> inherit version information from a grand-parent project, you get the
> following error:
> Error Building POM (may not be this project's POM).
> POM Location: <child pom location>
> Validation Messages:
> [0] 'dependencies.dependency.version' is missing for
> <groupId>:<artifactId>
> Reason: Failed to validate POM
--
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