Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Selected Solution

Based on the attached discussion, this is the selected solution:

Code Block
xml
xml

<plugin>
 <g/a/v>
 <configuration />
 <executions>
   <execution>
     <id />
     <configuration />
     <goals>
       <goal>...</goal>
       <goal>...</goal>
     </goals>
   </execution>
 </executions>
</plugin>

For backwards compat, we can keep the external goals, but deprecate them. They would form a default execution.

Executions with the same id are merged in an inheritence scenario. Goals within an execution could not be duplicated.

There is no per-goal configuration in the new format, as it can be done with multiple executions. This makes it less verbose.

For reports, it would be as follows:

Code Block
xml
xml

<report>
 <g/a/v>
 <configuration />
 <reportSets>
   <reportSet>
     <id />
     <configuration />
     <reports>
       <report>...</report>
       <report>...</report>
     </reports>
   </reportSet>
 </reportSets>
</report>

...

Problem Statement

There appear to be some use cases for running the same goal twice. The current proposal is for this to be configured in the POM like so:

...