Merge pull request #6894 from gastaldi/plugin

Reuse compiler configuration in quarkus:dev
This commit is contained in:
George Gastaldi
2020-01-30 18:44:53 -03:00
committed by GitHub

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,