Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow specific executions in the master build branch #136

Open
rhierlmeier opened this issue Apr 19, 2023 · 0 comments
Open

Allow specific executions in the master build branch #136

rhierlmeier opened this issue Apr 19, 2023 · 0 comments

Comments

@rhierlmeier
Copy link

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 rhierlmeier changed the title Allow a specific execution in the master build branch Allow specific executions in the master build branch Apr 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant