Hello, I have a M2 project and I want to create a zip with dependencies using assembly. Let's say that one of transitive dependencies is org.springframework:spring-beans. However, spring-beans with all its dependencies will be provided by the runtime environment so I don't need them to be packaged in the result zip file. I tried to set org.springframework:spring-beans's scope to 'provided' but it does not work as expected - all its dependencies's scopes are reverted back to 'compile' as specified in [1]. So, is there some way to remove a dependency and its transitive dependencies from the project's dependency tree? I'd really hate to enumerate all transitive dependencies manually in the <exclude> element of the assembly descriptor. Thank you very much!
[1] http://docs.codehaus.org/display/MAVEN/Dependency+Mediation+and+Conflict +Resolution#DependencyMediationandConflictResolution-Scoperesolution --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]