Issue #12173 Ingore dependencies of type pom for the webapp classpath (#12177)

This commit is contained in:
Jan Bartel 2024-08-21 09:29:59 +10:00 committed by GitHub
parent 942e77c3c5
commit 0cae6351f4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 0 deletions

View File

@ -242,6 +242,10 @@ public abstract class AbstractUnassembledWebAppMojo extends AbstractWebAppMojo
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;