Maven 1

NullpointerException when <version> tag missing in dependency

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Major 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 :
    0

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 )

Activity

There are no comments yet on this issue.

People

Vote (0)
Watch (2)

Dates

  • Created:
    Updated:
    Resolved:

Time Tracking

Estimated:
1h
Original Estimate - 1 hour
Remaining:
1h
Remaining Estimate - 1 hour
Logged:
Not Specified
Time Spent - Not Specified