Maven bundles multiple versions of same libraries in WAR -
Maven bundles multiple versions of same libraries in WAR -
i got nosuchmethoderror exceptions when running test maven build. realized maven bundles multiple versions of same libraries in war (some transitive dependencies has different versions). default behaviour? fail see how want it. also, found exclusion tag can't have version (or range) can't exclude conflicting version. there way prevent maven adding multiple versions of same library war? give thanks you.
edit: yeah, can exclude , depend on in pom. it's far elegant solution (can cause problems changes in upstream).
you can configure assembly-plugin exclude dependencies. same excluding duplicates different versions in dependencies section. highly recommend exclude duplicates in dependencies section. project might lack proper dependency management. if utilize correctly, have exclusions in same pom.
maven
Comments
Post a Comment