Issue Details (XML | Word | Printable)

Key: MNG-3700
Type: Bug Bug
Status: Open Open
Priority: Major Major
Assignee: Unassigned
Reporter: John Casey
Votes: 1
Watchers: 2
Operations

If you were logged in you would be able to see more operations.
Maven 2

ModelUtils.clone doesn't clone plugin entries where inherited == false

Created: 07/Aug/08 03:15 PM   Updated: 18/Aug/08 05:09 PM
Component/s: POM
Affects Version/s: 2.0.10
Fix Version/s: 2.0.11

Time Tracking:
Not Specified

File Attachments: 1. Text File ModelUtilsTest.patch (2 kB)

Issue Links:
Related

Complexity: Intermediate
Testcase included: yes


 Description  « Hide
ModelUtils.clone(..) uses the ModelInheritanceAssembler under the covers, with assembleAsInheritance == true. This is not strictly true, since inheritance semantics are different in some ways from clone semantics.

This becomes an issue where plugins are concerned, especially when the plugin entry in the POM contains inherited == "false", which will lead to the cloning process excluding that plugin from the clone result.



 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
John Casey added a comment - 07/Aug/08 03:21 PM
test case (unit test patch for ModelUtilsTest in maven-project)

Benjamin Bentmann added a comment - 07/Aug/08 03:22 PM
Might be related to MNG-3539.