diff --git a/pmd-cli/pom.xml b/pmd-cli/pom.xml
index fa137647d6..81fc5d26b2 100644
--- a/pmd-cli/pom.xml
+++ b/pmd-cli/pom.xml
@@ -29,18 +29,6 @@
${project.version}
-
-
- net.sourceforge.pmd
- pmd-languages-deps
- ${project.version}
- pom
- runtime
-
-
net.sourceforge.pmd
@@ -68,6 +56,19 @@
org.checkerframework
checker-qual
+
+
+ net.sourceforge.pmd
+ pmd-java
+ ${project.version}
+ test
+
+
+ net.sourceforge.pmd
+ pmd-javascript
+ ${project.version}
+ test
+
org.hamcrest
hamcrest
diff --git a/pmd-cli/src/test/java/net/sourceforge/pmd/cli/CpdCliTest.java b/pmd-cli/src/test/java/net/sourceforge/pmd/cli/CpdCliTest.java
index 2fbd2fdcd7..11eceafc15 100644
--- a/pmd-cli/src/test/java/net/sourceforge/pmd/cli/CpdCliTest.java
+++ b/pmd-cli/src/test/java/net/sourceforge/pmd/cli/CpdCliTest.java
@@ -17,6 +17,8 @@ import java.nio.file.Files;
import java.nio.file.Path;
import java.nio.file.Paths;
import java.util.Collection;
+import java.util.Collections;
+import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;
@@ -28,7 +30,6 @@ import net.sourceforge.pmd.cli.internal.CliExitCode;
import net.sourceforge.pmd.internal.Slf4jSimpleConfiguration;
import com.github.stefanbirkner.systemlambda.SystemLambda;
-import com.google.common.collect.ImmutableMap;
class CpdCliTest extends BaseCliTest {
@@ -36,12 +37,17 @@ class CpdCliTest extends BaseCliTest {
private static final String SRC_DIR = BASE_RES_PATH + "files/";
private static final Path SRC_PATH = Paths.get(SRC_DIR).toAbsolutePath();
- private static final Map NUMBER_OF_TOKENS = ImmutableMap.of(
- SRC_PATH.resolve("dup1.java").toString(), 89,
- SRC_PATH.resolve("dup2.java").toString(), 89,
- SRC_PATH.resolve("fileWith_ISO8859_1_Encoding.java").toString(), 5,
- SRC_PATH.resolve("fileWith_UTF_8_BOM_Encoding.java").toString(), 5
- );
+ private static final Map NUMBER_OF_TOKENS;
+
+ static {
+ Map map = new LinkedHashMap<>();
+ map.put(SRC_PATH.resolve("dup1.java").toString(), 89);
+ map.put(SRC_PATH.resolve("dup2.java").toString(), 89);
+ map.put(SRC_PATH.resolve("fileWith_ISO8859_1_Encoding.java").toString(), 5);
+ map.put(SRC_PATH.resolve("fileWith_UTF_8_BOM_Encoding.java").toString(), 5);
+ NUMBER_OF_TOKENS = Collections.unmodifiableMap(map);
+ }
+
@TempDir
private Path tempDir;
diff --git a/pmd-dist/src/main/resources/assemblies/pmd-bin.xml b/pmd-dist/src/main/resources/assemblies/pmd-bin.xml
index 8e5f78f5f1..8a68aa0ca3 100644
--- a/pmd-dist/src/main/resources/assemblies/pmd-bin.xml
+++ b/pmd-dist/src/main/resources/assemblies/pmd-bin.xml
@@ -12,7 +12,7 @@
- *.bat
+ pmd.bat
target/extra-resources/scripts
bin
@@ -68,7 +68,6 @@
runtime
net.sourceforge.pmd:pmd-apex-jorje:pom
- net.sourceforge.pmd:pmd-cli:sh:completion:*
net.sourceforge.pmd:pmd-languages-deps:pom
lib