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.
Summary: | Blacklist transitive dependencies in Java editor | ||
---|---|---|---|
Product: | apisupport | Reporter: | Jesse Glick <jglick> |
Component: | Maven | Assignee: | Milos Kleint <mkleint> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | dbell |
Priority: | P1 | Keywords: | PLAN |
Version: | 7.1 | ||
Hardware: | All | ||
OS: | All | ||
Issue Type: | ENHANCEMENT | Exception Reporter: | |
Bug Depends on: | 201340 | ||
Bug Blocks: |
Description
Jesse Glick
2011-08-30 19:25:21 UTC
*** Bug 203354 has been marked as a duplicate of this bug. *** And most likely also applies to OSGI related projects. Possible general Maven projects as well, though I am not sure how to characterize them. The Enforcer rule [1] would I guess force you to <exclude> those dependencies, in which case the NB classpath would not contain them anyway. Is there a rule that lets you leave them nominally in place but checks that you are not making use of them during compilation? If so, that would be perfect for the blacklist. [1] http://maven.apache.org/enforcer/enforcer-rules/banTransitiveDependencies.html Integrated into 'main-golden', will be available in build *201301310001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/82c534ed211f User: Milos Kleint <mkleint@netbeans.org> Log: #201453 a basic implementation of whitelistquery for nbm projects, no caching, no osgi I bet if you ran FindBugs it would have something interesting to say about the line if (mp.getProperties() == null && mp.getProperties().getProperty("enable.whitelist") == null) { good catch, it's outright wrong and would throw null pointer exception at times.. temporary code but still worth fixing I guess.. (In reply to comment #5) > I bet if you ran FindBugs it would have something interesting to say about the > line > > if (mp.getProperties() == null && > mp.getProperties().getProperty("enable.whitelist") == null) { let's keep this open until we remove the current enablement triggers. Integrated into 'main-golden', will be available in build *201302222300* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/e39516c52c57 User: Martin Kozeny <mkozeny@netbeans.org> Log: #201453: Initial finding of private packages in dependent modules. enabled for maven projects - http://hg.netbeans.org/core-main/rev/7bee3e8703eb Integrated into 'main-golden', will be available in build *201303082300* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/7bee3e8703eb User: Milos Kleint <mkleint@netbeans.org> Log: #201453 enable whitelists for maven projects, add index refresh when the private/transitive packages change upon project reload. Integrated into 'main-golden', will be available in build *201304272301* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/486b99169e85 User: Martin Kozeny <mkozeny@netbeans.org> Log: #201453: Turning on this functionality. Integrated into 'main-golden', will be available in build *201305032300* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/76518cc50bd9 User: Martin Kozeny <mkozeny@netbeans.org> Log: #201453: Turning off this functionality. |