Add ability to merge configuration with same contextKey

Description

contextKey is currently used to pair configuration defined in settings.xml with Cargo Maven plugin definition defined in pom.xml.

It would be good if users can use contextKey also for merging of configuration defined in different maven executions.

For example if user has this Cargo plugin definition:

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 <plugin> <groupId>org.codehaus.cargo</groupId> <artifactId>cargo-maven2-plugin</artifactId> <version>1.6.4</version> <executions> <execution> <id>start</id> <phase>pre-integration-test</phase> <goals> <goal>start</goal> </goals> <configuration> <container> <contextKey>context1</contextKey> </container> <configuration> <properties> <cargo.servlet.port>8080</cargo.servlet.port> </properties> </configuration> </configuration> </execution> <execution> <id>stop</id> <phase>post-integration-test</phase> <goals> <goal>stop</goal> </goals> <configuration> <container> <contextKey>context1</contextKey> </container> <configuration> <properties> <cargo.logging>high</cargo.logging> </properties> </configuration> </configuration> </execution> </executions> </plugin>

Then execution with id stop would merge its own configuration with configuration defined in execution with id start.

Status

Assignee

Karel Suta

Reporter

Karel Suta

Components

Fix versions

Priority

Major
Configure