-
Notifications
You must be signed in to change notification settings - Fork 41.2k
Maven plugin - exclude dependencies - Doesn't work transitively #3602
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Duplicates #3426 |
Why not? In what scenario one would want child dependencies in their project when they don't want parents? Can there be a flag to exclude it conditionally at least? |
In my case I use 'excludeGroupIds' which should excludes all the artifacts under that group but that's is no happening. e.g. hadoop-mapreduce-client-core, hadoop-yarn-common etc are all under same group id. If you can't exclude them then what is the point. I would happily use shade plugin but that plugin has its own issue as well working with spring-boot jars. |
Ah, I see. That wasn't at all clear from the original description |
The doc states:
Can you fix your configuration first please? <configuration>
<excludeGroupIds>org.apache.hadoop,org.apache.hbase</excludeGroupIds>
</configuration> |
Closing due to lack of requested feedback. If you'd like us to reopen the issue, please comment with the required information. |
@wilkinsona I tried comma-separated list of group ids. It still doesn't exclude child dependencies. |
As explained in #3426, the exclusions are not applied transitively and it will only exclude artifacts with a group id that matches those specified in |
mvn dependency:copy-dependencies copy all jars to target/dependency; mvn dependency:tree, get all groupIds, then it works. |
Can anyone reopen this issue? What's the point that if I want to just exclude a dependence without its dependence? |
@Aaaaaaron please stop adding several comments on the same topic. If you have a question, ask on StackOverflow or chat with the community on Gitter. |
I tried following to exclude all the artifacts under following groups
But it still left me with some jars . It should work same as maven-shade plugin artifactSet -> excludes in my opinion.
The text was updated successfully, but these errors were encountered: