diff --git a/jetty-ee8/jetty-ee8-webapp/pom.xml b/jetty-ee8/jetty-ee8-webapp/pom.xml
index 7d86dafb89d..25013d35ead 100644
--- a/jetty-ee8/jetty-ee8-webapp/pom.xml
+++ b/jetty-ee8/jetty-ee8-webapp/pom.xml
@@ -80,7 +80,7 @@
false
- ${basedir}/src/test/resources/mods/foo-bar-janb.jar
+ ${project.build.testOutputDirectory}/mods/foo-bar-janb.jar
org.eclipse.jetty.ee8.webapp.WebAppClassLoaderUrlStreamTest
diff --git a/jetty-ee9/jetty-ee9-webapp/pom.xml b/jetty-ee9/jetty-ee9-webapp/pom.xml
index 8e3eb7a8e28..bba91eafc0c 100644
--- a/jetty-ee9/jetty-ee9-webapp/pom.xml
+++ b/jetty-ee9/jetty-ee9-webapp/pom.xml
@@ -53,7 +53,7 @@
false
- ${basedir}/src/test/resources/mods/foo-bar-janb.jar
+ ${project.build.testOutputDirectory}/mods/foo-bar-janb.jar
org.eclipse.jetty.ee9.webapp.WebAppClassLoaderUrlStreamTest
diff --git a/jetty-ee9/jetty-ee9-webapp/src/test/java/org/eclipse/jetty/ee9/webapp/MetaInfConfigurationTest.java b/jetty-ee9/jetty-ee9-webapp/src/test/java/org/eclipse/jetty/ee9/webapp/MetaInfConfigurationTest.java
index d1d32513138..25ce5f92a2a 100644
--- a/jetty-ee9/jetty-ee9-webapp/src/test/java/org/eclipse/jetty/ee9/webapp/MetaInfConfigurationTest.java
+++ b/jetty-ee9/jetty-ee9-webapp/src/test/java/org/eclipse/jetty/ee9/webapp/MetaInfConfigurationTest.java
@@ -143,7 +143,7 @@ public class MetaInfConfigurationTest
* jetty-9.4.x to jetty-10.0.x (where we use module-info): in jetty-9.4.x,
* we can use the --add-module argument to put the foo-bar-janb.jar onto the
* module path, but this doesn't seem to work in jetty-10.0.x. So this test
- * will find foo-bar.janb.jar on the classpath, and jetty-util from the module path.
+ * will find foo-bar-janb.jar on the classpath, and servlet-api from the module path.
*
* @throws Exception if the test fails
*/