diff --git a/cxx-sslr/pom.xml b/cxx-sslr/pom.xml
index 1e2da15cc5..34bcd19921 100644
--- a/cxx-sslr/pom.xml
+++ b/cxx-sslr/pom.xml
@@ -70,16 +70,19 @@
org.junit.jupiter
junit-jupiter-engine
${junit-jupiter.version}
+ test
org.junit.jupiter
junit-jupiter-api
${junit-jupiter.version}
+ test
org.mockito
mockito-core
${mockito-core.version}
+ test
diff --git a/cxx-sslr/sslr-testing-harness/pom.xml b/cxx-sslr/sslr-testing-harness/pom.xml
index fde890e2eb..4bf8171916 100644
--- a/cxx-sslr/sslr-testing-harness/pom.xml
+++ b/cxx-sslr/sslr-testing-harness/pom.xml
@@ -54,6 +54,7 @@
org.assertj
assertj-core
+ compile
diff --git a/pom.xml b/pom.xml
index 5dbc5921f3..dd835960a1 100644
--- a/pom.xml
+++ b/pom.xml
@@ -312,16 +312,19 @@
org.sonarsource.api.plugin
sonar-plugin-api
${sonar.plugin.api.version}
+ provided
org.sonarsource.sonarqube
sonar-plugin-api-impl
${sonar.version}
+ test
org.sonarsource.sonarqube
sonar-testing-harness
${sonar.version}
+ test
@@ -338,21 +341,25 @@
org.junit.jupiter
junit-jupiter-engine
${junit-jupiter.version}
+ test
org.junit.jupiter
junit-jupiter-api
${junit-jupiter.version}
+ test
org.assertj
assertj-core
${assertj-core.version}
+ test
org.mockito
mockito-core
${mockito-core.version}
+ test
org.apache.maven