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: | Provide error/warning hint for usage of classes from transitive dependencies | ||
---|---|---|---|
Product: | projects | Reporter: | markiewb |
Component: | Maven | Assignee: | Tomas Stupka <tstupka> |
Status: | REOPENED --- | ||
Severity: | normal | CC: | markiewb |
Priority: | P3 | ||
Version: | 7.4 | ||
Hardware: | PC | ||
OS: | Windows 7 | ||
Issue Type: | ENHANCEMENT | Exception Reporter: |
Description
markiewb
2013-08-25 16:17:21 UTC
the enforcer rules are of no use here. with them the build will fail even when transitive dependency is not used at all in the code, it's enough to have the dependency in the resolved tree of dependencies. reworking the MavenWhiteListQueryImpl from org.netbeans.modules.maven.apisupport should not be hard however the challenge will be where to put the options to configure it. It appears to me that Hints is the right place, but the feature is not implemented via a hint api. Yes a hint would be preferable. So i guess http://wiki.netbeans.org/wiki/images/6/6d/Whitelists.png isn't implemented as hint. we already have some "fake" hints that store options only eg. org.netbeans.modules.maven.hints.errors.SearchClassDependencyHint another possible problem point is that current apisupport whitelist implementation precalculates transitive packages, which is likely ok in netbeans module development context but in general we could arrive at situations where a single package is in multiple artifacts. Any chance to see this in NB 8? not anymore. I didn't make it for 8.0, now it's only bug fixing until release This old bug may not be relevant anymore. If you can still reproduce it in 8.2 development builds please reopen this issue. Thanks for your cooperation, NetBeans IDE 8.2 Release Boss Still valid in 8.2 dev Product Version: NetBeans IDE Dev (Build 201607100002) |