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

Popular posts from this blog

How do I check if an insert was successful with MySQLdb in Python? -

delphi - blogger via idHTTP : error 400 bad request -

postgresql - ERROR: operator is not unique: unknown + unknown -