So, I have a multi-module maven project consisting of a war project and a jar project. The jar is a dependency of the war. I'm seeing some unexpected behavior around which dependencies get bundled up in WEB-INF/lib. Namely, it seems like dependencies from the war project, either direct or transitive, are trumping dependencies of the jar (again, direct or transitive), regardless of version. For example, my jar project depends on projectX-2.0. The war depends on Y-1.1 which has a transitive dependency on projectX-1.0. When the war gets built projectX-1.0 is what winds up in WEB-INF/lib. I know I can work around this using <excluded> in the war; I'm more curious as to why this is happening. Is it a bug or intended behavior. If it's intended, what's the rationale?

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org

Reply via email to