jira-importer commented on issue #170: URL: https://github.com/apache/maven-war-plugin/issues/170#issuecomment-2967847487
**[Wonne Keysers](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=wonnekeysers)** commented Compile time dependencies can be excluded from the WEB-INF/lib by using the \<optional>true\</optional> flag. However, this currently does not work recursively. For example: if the war has a dependency on A.jar, but A.jar itself s dependant from B.jar, putting the A-dependency optional excludes it from the war (yet it includes it in the manifest), but B.jar is still included in the WEB-INF/lib. If the optional flag would be working recursively, I think the solution would be complete? -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: issues-unsubscr...@maven.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org