Maven 1

Unexpected behavior of org.apache.maven.project.Project.

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: 1.0.2
  • Fix Version/s: 1.1-beta-1
  • Component/s: model
  • Labels:
    None
  • Environment:
    All
  • Number of attachments :
    0

Description

Calling Project.setDependencies() does not repopulate Project.dependencyMap.
Calling Project.setDependencies() with a null value later results in NPE in addDependency() and getDependentProjectIds().
No way to remove a dependency. Calling getDependencies().remove() does not work because dependencyMap is not updated.
Because of issues with dependencyMap, getDependencies() should return either a copy of the List or an immutable List.

Activity

There are no comments yet on this issue.

People

Vote (0)
Watch (1)

Dates

  • Created:
    Updated:
    Resolved: