Maven 2 & 3

back-propagation of resources doesn't handle multiple resources with the same directory

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Blocker Blocker
  • Resolution: Fixed
  • Affects Version/s: 2.0.10, 3.0-alpha-1
  • Fix Version/s: 2.1.0-M1
  • Component/s: Plugins and Lifecycle
  • Labels:
    None
  • Complexity:
    Intermediate
  • Number of attachments :
    0

Activity

Hide
John Casey added a comment -

Added mergeId (marked for internal use only) to the Resource class generated by modello, to allow assignment of a unique identifier prior to calculating the concrete build section to feed into a plugin's execution. This mergeId is maintained in both the concrete and dynamic copies, to allow merging changed configurations back from the concrete version to the dynamic version (which is used to incorporate changes to the project state in successive plugin executions).

Also added an integration test to verify that two resource entries with the same directory and target path - but with differing include/exclude patterns - are treated separately throughout the build, not consolidated as happened when resources were keyed by their directories (previously).

Show
John Casey added a comment - Added mergeId (marked for internal use only) to the Resource class generated by modello, to allow assignment of a unique identifier prior to calculating the concrete build section to feed into a plugin's execution. This mergeId is maintained in both the concrete and dynamic copies, to allow merging changed configurations back from the concrete version to the dynamic version (which is used to incorporate changes to the project state in successive plugin executions). Also added an integration test to verify that two resource entries with the same directory and target path - but with differing include/exclude patterns - are treated separately throughout the build, not consolidated as happened when resources were keyed by their directories (previously).

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: