mirror of
https://github.com/jlengrand/quarkus.git
synced 2026-03-10 08:41:22 +00:00
Merge pull request #6894 from gastaldi/plugin
Reuse compiler configuration in quarkus:dev
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user