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

Common Maven Quarkus app bootstraping Mojo #12725

Merged
merged 1 commit into from
Oct 15, 2020

Conversation

aloubyansky
Copy link
Member

@aloubyansky aloubyansky commented Oct 14, 2020

Common Maven Quarkus app bootstraping Mojo that allows bootstraping the app once and re-using the CuratedApplication in other mojos extending the common bootstrap Mojo configured for the same project (i.e. code generation, test code generation and packaging).

Typical project generated by our tools includes the following config:

      <plugin>
        <groupId>io.quarkus</groupId>
        <artifactId>quarkus-maven-plugin</artifactId>
        <version>${quarkus-plugin.version}</version>
        <executions>
          <execution>
            <goals>
              <goal>build</goal>
              <goal>generate-code</goal>
              <goal>generate-code-tests</goal>
            </goals>
          </execution>
        </executions>
      </plugin>

This means for even e.g. mvn package -DskipTests the CuratedApplication will be bootstrapped three times, i.e. once per goal. This change introduces a kind build flow cache per project, so the CuratedApplication is created only once and then shared between these goals.

…he app once and re-using the CuratedApplication in other mojos extending the common bootstrap configured for the same project (i.e. code generation, test code generation and packaging)
Copy link
Contributor

@gastaldi gastaldi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👏

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

Successfully merging this pull request may close these issues.

3 participants