Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 1.1-beta-1
-
Fix Version/s: 1.1-beta-1
-
Component/s: model
-
Labels:None
-
Environment:Any (Linux, JDK 1.4.2)
-
Number of attachments :
Description
When the version tag is missing from a dependency (typically when you
use maven.jar.override, for example for tools.jar),
maven nullpointers on AbstractArtifact.isSnapshot() due to
getDependency().getVersion().indexOf(...) (getVersion() -> null)
This seems to be a bug in maven-model-3.0.0-SNAPSHOT.jar,
in org.apache.maven.project.Dependency.getVersion().
(I can't find the location of the maven-model source.. so no patch
)