diff --git a/drools-quarkus-extension/drools-quarkus/pom.xml b/drools-quarkus-extension/drools-quarkus/pom.xml
index b30722604f10..9c5057e3ccef 100644
--- a/drools-quarkus-extension/drools-quarkus/pom.xml
+++ b/drools-quarkus-extension/drools-quarkus/pom.xml
@@ -149,29 +149,6 @@
io.smallrye
jandex-maven-plugin
-
-
-
-
- org.codehaus.mojo
- exec-maven-plugin
- 3.1.1
-
-
- Run Script
- prepare-package
-
- java
-
-
- org.drools.util.RemoveCommentsMain
-
- ${project.basedir}/target/classes/META-INF/quarkus-extension.properties
-
-
-
-
-
diff --git a/drools-util/src/main/java/org/drools/util/RemoveCommentsMain.java b/drools-util/src/main/java/org/drools/util/RemoveCommentsMain.java
deleted file mode 100644
index 024320a8b289..000000000000
--- a/drools-util/src/main/java/org/drools/util/RemoveCommentsMain.java
+++ /dev/null
@@ -1,51 +0,0 @@
-package org.drools.util;
-
-import org.slf4j.Logger;
-import org.slf4j.LoggerFactory;
-
-import java.io.IOException;
-import java.nio.file.Files;
-import java.nio.file.NoSuchFileException;
-import java.nio.file.Path;
-import java.util.stream.Collectors;
-
-public class RemoveCommentsMain {
-
- private static final Logger LOGGER = LoggerFactory.getLogger(RemoveCommentsMain.class);
-
- public static void main(String... args) {
- final String ignoreMissingFilesArgument = args[0];
- final boolean ignoreMissingFiles = Boolean.parseBoolean(ignoreMissingFilesArgument);
- for (int i = 0; i < args.length; i++) {
- // If the ignoreMissingFiles argument is defined, skip it in this iteration.
- if ((ignoreMissingFiles || "false".equalsIgnoreCase(ignoreMissingFilesArgument)) && i == 0) {
- continue;
- } else {
- try {
- final String fileName = args[i];
- final String result = removeComments(fileName, ignoreMissingFiles);
- if (result != null) {
- Files.write(Path.of(fileName), result.getBytes());
- }
- } catch (IOException e) {
- throw new RuntimeException(e);
- }
- }
- }
- }
-
- static String removeComments(String fileName, final boolean ignoreMissingFiles) {
- try (var lines = Files.lines(Path.of(fileName))) {
- return lines.filter(line -> !line.startsWith("#")).collect(Collectors.joining("\n"));
- } catch (IOException e) {
- // Ignore non-existant files.
- if (ignoreMissingFiles && e instanceof NoSuchFileException) {
- LOGGER.info("Ignoring file that doesn't exist: " + fileName);
- return null;
- } else {
- throw new RuntimeException(e);
- }
- }
- }
-
-}
diff --git a/drools-util/src/test/java/org/drools/util/RemoveCommentsTest.java b/drools-util/src/test/java/org/drools/util/RemoveCommentsTest.java
deleted file mode 100644
index 1b529b5acc77..000000000000
--- a/drools-util/src/test/java/org/drools/util/RemoveCommentsTest.java
+++ /dev/null
@@ -1,15 +0,0 @@
-package org.drools.util;
-
-import org.junit.Test;
-
-import static org.junit.Assert.assertEquals;
-
-public class RemoveCommentsTest {
-
- @Test
- public void test() {
- String result = RemoveCommentsMain.removeComments("src/test/resources/commented.properties", false);
- String expected = "provides-capabilities=org.drools.drl\ndeployment-artifact=org.drools\\:drools-quarkus-deployment\\:999-SNAPSHOT";
- assertEquals(expected, result);
- }
-}