diff --git a/devtools/maven/src/main/java/io/quarkus/maven/DevMojo.java b/devtools/maven/src/main/java/io/quarkus/maven/DevMojo.java index 3e10e02d71243..c57a75a2c501f 100644 --- a/devtools/maven/src/main/java/io/quarkus/maven/DevMojo.java +++ b/devtools/maven/src/main/java/io/quarkus/maven/DevMojo.java @@ -93,7 +93,6 @@ import io.quarkus.bootstrap.resolver.maven.BootstrapMavenContext; import io.quarkus.bootstrap.resolver.maven.BootstrapMavenContextConfig; import io.quarkus.bootstrap.resolver.maven.MavenArtifactResolver; -import io.quarkus.bootstrap.resolver.maven.options.BootstrapMavenOptions; import io.quarkus.bootstrap.util.BootstrapUtils; import io.quarkus.bootstrap.workspace.ArtifactSources; import io.quarkus.bootstrap.workspace.SourceDir; @@ -1184,7 +1183,6 @@ private QuarkusDevModeLauncher newLauncher(Boolean debugPortOk) throws Exception if (argsString != null) { builder.applicationArgs(argsString); } - propagateUserProperties(builder); return builder.build(); } @@ -1207,26 +1205,6 @@ private void setJvmArgs(Builder builder) throws Exception { } - private void propagateUserProperties(MavenDevModeLauncher.Builder builder) { - Properties userProps = BootstrapMavenOptions.newInstance().getSystemProperties(); - if (userProps == null) { - return; - } - final StringBuilder buf = new StringBuilder(); - buf.append("-D"); - for (Object o : userProps.keySet()) { - String name = o.toString(); - final String value = userProps.getProperty(name); - buf.setLength(2); - buf.append(name); - if (value != null && !value.isEmpty()) { - buf.append('='); - buf.append(value); - } - builder.jvmArgs(buf.toString()); - } - } - private void applyCompilerFlag(Optional compilerPluginConfiguration, String flagName, Consumer builderCall) { compilerPluginConfiguration