mirror of
https://github.com/jlengrand/quarkus.git
synced 2026-03-10 08:41:22 +00:00
Remove test-related entries in maven-compiler-plugin
Some properties (like `testSource` and `testTarget`) are valid only for the `testCompile` mojo, however they are allowed to be declared as part of the maven-compiler-plugin configuration Co-authored-by: Justin Lee <julee@redhat.com>
This commit is contained in:
@@ -370,9 +370,15 @@ public class DevMojo extends AbstractMojo {
|
||||
}
|
||||
|
||||
private void executeCompileGoal(Plugin plugin, String groupId, String artifactId) throws MojoExecutionException {
|
||||
Xpp3Dom configuration = (Xpp3Dom) plugin.getConfiguration();
|
||||
if (configuration == null) {
|
||||
configuration = MojoExecutor.configuration();
|
||||
Xpp3Dom configuration = MojoExecutor.configuration();
|
||||
Xpp3Dom pluginConfiguration = (Xpp3Dom) plugin.getConfiguration();
|
||||
if (pluginConfiguration != null) {
|
||||
//Filter out `test*` configurations
|
||||
for (Xpp3Dom child : pluginConfiguration.getChildren()) {
|
||||
if (!child.getName().startsWith("test")) {
|
||||
configuration.addChild(child);
|
||||
}
|
||||
}
|
||||
}
|
||||
MojoExecutor.executeMojo(
|
||||
MojoExecutor.plugin(
|
||||
|
||||
Reference in New Issue
Block a user