maven icon indicating copy to clipboard operation
maven copied to clipboard

[MNG-5600] Dependency management import should support exclusions

Open alex1989hu opened this issue 6 years ago • 15 comments

The original patch is made by: Christian Schulte [email protected] @ChristianSchulte

For more information kindly ask you to visit the original pull request #148

alex1989hu avatar Oct 13 '19 19:10 alex1989hu

@olamy kind ping

alex1989hu avatar Oct 27 '19 19:10 alex1989hu

/cc @khmarbaise could you please help to let this PR being merged? Thank you

alex1989hu avatar Dec 09 '19 20:12 alex1989hu

@alex1989hu Is there an IT for that?

michael-o avatar Dec 09 '19 20:12 michael-o

@alex1989hu Is there an IT for that?

Yes, it is written in the referenced PR #148 --> maven-integration-testing/pull/30

alex1989hu avatar Dec 09 '19 20:12 alex1989hu

Any update on this?

valdar avatar May 07 '20 13:05 valdar

Completely forgot. Can someone rebase here?

michael-o avatar May 07 '20 14:05 michael-o

Completely forgot. Can someone rebase here?

Sure

UPDATE: Done

alex1989hu avatar May 07 '20 14:05 alex1989hu

IT of github.com/apache/maven-integration-testing/pull/30 needs to be rebased too.

rfscholte avatar May 07 '20 18:05 rfscholte

IT of github.com/apache/maven-integration-testing/pull/30 needs to be rebased too.

Rebased here: https://github.com/apache/maven-integration-testing/pull/59

alex1989hu avatar May 07 '20 19:05 alex1989hu

@slachiewicz You have created a branch for this. Do you want to pursue this PR?

michael-o avatar May 07 '20 20:05 michael-o

Hey, is this feature undesirable for Maven to have? Or is this PR being blocked for other reasons? Either way is fine with me, just wanted to know if there's a reason there's been no activity here in nearly 2 years now.

renatoathaydes avatar Dec 16 '21 17:12 renatoathaydes

Not to be a "me 2" here, but I ran into this issue today. But I figured I would at least comment to show my support of including this change.

I was centralizing some repeatedly used dependencies in a multi-module project via dependencyManagement in the parent POM. These dependencies came with some excludes (fortunately the same one in each usage), so I put those in the parent as well. Was quite surprised that building my application resulted in 2x the size of the final package and a complete failure to function at all (there is a reason I do these exclusions!). To work around this I had to re-add the exclusions to each of the relevant modules.

Like the previous comment...I can totally understand if there are reasons for blockage, but those are not apparent. Looking back to the beginning, this enhancement/fix is over 4 years old now! Kind of sucks to see an already-solved issues be ignored like this.

djohle avatar May 04 '22 21:05 djohle

@cstamas @gnodet @hboutemy Is this something we can consider for 4? I don't think it would be appropriate for 3.9.0, but it is opt-in only. WDYT?

michael-o avatar May 06 '22 18:05 michael-o

@michael-o

I would very much appreciate if that would end up in 3.9 (as you said it's opt in and only little code is touched). Otherwise it will be practically unusable for years to come, given that big projects like Quarkus cannot/will not force users to use the latest maven version and Maven 4 adoption will most likely take considerably more time that 3.9.

famod avatar Jul 14 '22 13:07 famod

Also bumped into that issue today, I was kind of shocked that it's not supported OOB. For me it's blocks the creation of parent pom for all microservices that imports spring-boot-dependencies (very common) where importing another project bom that has conflict with spring-boot-dependencies. Guy's this is a must !

mistriel avatar Aug 28 '22 19:08 mistriel

Another +1 "me too"... would really like to see this feature!

JWT007 avatar Feb 15 '23 16:02 JWT007

This is another +1 - today ran into this problem... @alex1989hu I think the original merge request needs another update (conflicts exists)

Lonzak avatar Apr 17 '23 15:04 Lonzak