gitflow-helper-maven-plugin icon indicating copy to clipboard operation
gitflow-helper-maven-plugin copied to clipboard

Allow specific executions in the master build branch

Open rhierlmeier opened this issue 1 year ago • 0 comments

With PR #129 it is now possible to define Maven plugins that can be executed during the build of the master build. However when this Maven plugin has different executions then all executions are executed.

Suggestion:

Introduces the configuration options retainExecutions. The retainExecutions is a list of strings. Each string has the format <groupId>:<artifactId>:<excutionId> All Executions that are not defined in this options are not executed during the master build.

Example:

<plugin>
    <groupId>com.e-gineering</groupId>
    <artifactId>gitflow-helper-maven-plugin</artifactId>
    <configuration>
      <retainExecutions>
        <retainExecution>org.codehaus.mojo:flatten-maven-plugin:flatten-in-master</retainExecution>
      </retainExecutions>
    </configuration>
  </plugin>  
<plugin>
  <groupId>org.codehaus.mojo</groupId>
  <artifactId>flatten-maven-plugin</artifactId>
  <executions>
    <execution>
      <id>flatten-in-master</id>
      <goals>
        <goal>flatten</goal>
      </goals>
      <phase>process-resources</phase>
    </execution>
      <id>flatten-other</id>
      <goals>
        <goal>flatten</goal>
      </goals>
      <phase>process-resources</phase>
    </execution>
  </executions>  
</plugin>

rhierlmeier avatar Apr 19 '23 06:04 rhierlmeier