This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Created attachment 127784 [details] patch for fixing In the latest IDE (NetBeans IDE Dev (Build 20121114-81d2ab562d59)) the CPExtender removes from pom.xml only the first maven dependency it finds. I'm attaching really short patch which fixes this issue to me, I wanted to add also some test case but the current CPExtenderTest#testAddRemovePomLib() was failing to me so I didn't spent time with that.
thanks.. http://hg.netbeans.org/core-main/rev/09cd69459cf1 please note however that in general dependency removal is fairly conservative and almost any manual change done by the user in the pom will cause the dependency not to be removed. That's correct however.
Integrated into 'main-golden', will be available in build *201211170002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/09cd69459cf1 User: Milos Kleint <mkleint@netbeans.org> Log: #222117 continue instead of break to remove all dependencies
(In reply to comment #1) > thanks.. > > http://hg.netbeans.org/core-main/rev/09cd69459cf1 > > please note however that in general dependency removal is fairly conservative > and almost any manual change done by the user in the pom will cause the > dependency not to be removed. That's correct however. I know, anyway thanks for integrating...
*** Bug 222175 has been marked as a duplicate of this bug. ***