From 0cae6351f4fe2f4265d4c650a6db73084ac259ca Mon Sep 17 00:00:00 2001 From: Jan Bartel Date: Wed, 21 Aug 2024 09:29:59 +1000 Subject: [PATCH] Issue #12173 Ingore dependencies of type pom for the webapp classpath (#12177) --- .../ee10/maven/plugin/AbstractUnassembledWebAppMojo.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/jetty-ee10/jetty-ee10-maven-plugin/src/main/java/org/eclipse/jetty/ee10/maven/plugin/AbstractUnassembledWebAppMojo.java b/jetty-ee10/jetty-ee10-maven-plugin/src/main/java/org/eclipse/jetty/ee10/maven/plugin/AbstractUnassembledWebAppMojo.java index 7e5683fd16e5..986fd2fcb870 100644 --- a/jetty-ee10/jetty-ee10-maven-plugin/src/main/java/org/eclipse/jetty/ee10/maven/plugin/AbstractUnassembledWebAppMojo.java +++ b/jetty-ee10/jetty-ee10-maven-plugin/src/main/java/org/eclipse/jetty/ee10/maven/plugin/AbstractUnassembledWebAppMojo.java @@ -242,6 +242,10 @@ private boolean isArtifactOKForWebInfLib(Artifact artifact) if ("war".equalsIgnoreCase(artifact.getType())) return false; + //The dependency cannot be a pom + if ("pom".equalsIgnoreCase(artifact.getType())) + return false; + //The dependency cannot be scope provided (those should be added to the plugin classpath) if (Artifact.SCOPE_PROVIDED.equals(artifact.getScope())) return false;