You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by "Carsten Ziegeler (JIRA)" <ji...@codehaus.org> on 2005/08/26 13:18:03 UTC
[jira] Commented: (MNG-787) Wrong dependency handling and problems with version ranges
[ http://jira.codehaus.org/browse/MNG-787?page=comments#action_45277 ]
Carsten Ziegeler commented on MNG-787:
--------------------------------------
Retesting today without updated from the Maven svn, the NPE does not appear anymore (I guess this is due to some updates of some dependency snapshots for the compiler?). So specifying [1.3.02] or the ranges works! So I can use this as a workaround.
So the only open issue is that the version specified in the POM is not used.
> Wrong dependency handling and problems with version ranges
> ----------------------------------------------------------
>
> Key: MNG-787
> URL: http://jira.codehaus.org/browse/MNG-787
> Project: Maven 2
> Type: Bug
> Components: maven-artifact
> Versions: 2.0-beta-1
> Reporter: Carsten Ziegeler
> Priority: Blocker
>
>
> The current dependency mechanism does not use the versions specified in the POM for compilation. It uses the most recent version from some transitive dependency. An example is the xml-apis. If you specifiy e.g. version 1.3.02 in your pom, version 2.0.2 is used comming from transitive dependencies.
> Another problem is, as soon as you specify ranges for the version, you get an exception:
> If you specifiy e.g. [1.3.02] or [1.3.01,1.3.02] or [1.3.02, 1.3.03] you always get the same NPE:
> java.lang.NullPointerException: version was null for xml-apis:xml-apis
> at
> org.apache.maven.artifact.DefaultArtifact.getBaseVersion(DefaultArtifact.java:295)
> at
> org.apache.maven.artifact.DefaultArtifact.getId(DefaultArtifact.java:202)
> at
> org.apache.maven.artifact.resolver.DebugResolutionListener.includeArtifact(DebugResolutionListener.java:56)
> at
> org.apache.maven.artifact.resolver.DefaultArtifactCollector.fireEvent(DefaultArtifactCollector.java:275)
> at
> org.apache.maven.artifact.resolver.DefaultArtifactCollector.fireEvent(DefaultArtifactCollector.java:254)
> at
> org.apache.maven.artifact.resolver.DefaultArtifactCollector.recurse(DefaultArtifactCollector.java:166)
> at
> org.apache.maven.artifact.resolver.DefaultArtifactCollector.recurse(DefaultArtifactCollector.java:204)
> at
> org.apache.maven.artifact.resolver.DefaultArtifactCollector.collect(DefaultArtifactCollector.java:70)
> at
> org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolveTra
--
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
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org