Reuse compiler configuration in quarkus:dev

Fixes #6881
This commit is contained in:
George Gastaldi
2020-01-30 13:12:03 -03:00
parent befe68f118
commit 3d11cbd00e

View File

@@ -266,13 +266,17 @@ public class DevMojo extends AbstractMojo {
if (plugin == null) {
throw new MojoExecutionException("Failed to locate " + key + " among the project plugins");
}
Xpp3Dom configuration = (Xpp3Dom) plugin.getConfiguration();
if (configuration == null) {
configuration = MojoExecutor.configuration();
}
MojoExecutor.executeMojo(
MojoExecutor.plugin(
MojoExecutor.groupId(ORG_APACHE_MAVEN_PLUGINS),
MojoExecutor.artifactId(MAVEN_COMPILER_PLUGIN),
MojoExecutor.version(plugin.getVersion())),
MojoExecutor.goal("compile"),
MojoExecutor.configuration(),
configuration,
MojoExecutor.executionEnvironment(
project,
session,