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

Add multi-build support in a single module #16053

Closed
bcournaud opened this issue Mar 26, 2021 · 3 comments · Fixed by #16054
Closed

Add multi-build support in a single module #16053

bcournaud opened this issue Mar 26, 2021 · 3 comments · Fixed by #16054
Labels
kind/enhancement New feature or request
Milestone

Comments

@bcournaud
Copy link
Contributor

Description

Give the possibility to build the same module multiple times with different profiles, generating different artifacts.

Implementation ideas

Add multiple executions to the Quarkus maven plugin, specifying a different Quarkus profile for each execution.
The plugin could then generate one artifact for each execution and store it into a specific output directory.

Here is an example of the executions we could find in the pom.xml, resulting in 2 subfolders:

  • target/foo-quarkus-app
  • target/bar-quarkus-app
<executions>
  <execution>
    <id>build-foo</id>
    <goals>
      <goal>generate-code</goal>
      <goal>generate-code-tests</goal>
      <goal>build</goal>
    </goals>
    <configuration>
      <systemProperties>
        <quarkus.profile>foo</quarkus.profile>
        <quarkus.package.output-directory>foo-quarkus-app</quarkus.package.output-directory>
      </systemProperties>
    </configuration>
  </execution>
  <execution>
    <id>build-bar</id>
    <goals>
      <goal>generate-code</goal>
      <goal>generate-code-tests</goal>
      <goal>build</goal>
    </goals>
    <configuration>
      <systemProperties>
        <quarkus.profile>bar</quarkus.profile>
        <quarkus.package.output-directory>bar-quarkus-app</quarkus.package.output-directory>
      </systemProperties>
    </configuration>
  </execution>
</executions>
@bcournaud
Copy link
Contributor Author

Potential PR for this: #16054

@essobedo
Copy link
Contributor

@aloubyansky Hi, WDYT of this enhancement and the related PR proposal? It is somehow the next step of #15356.

@aloubyansky
Copy link
Member

I commented on the PR. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants