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.

Bug 208411

Summary: ForeignClassBundler impl based on manual hint
Product: projects Reporter: Jesse Glick <jglick>
Component: MavenAssignee: Tomas Stupka <tstupka>
Status: RESOLVED WONTFIX    
Severity: normal Keywords: PATCH_AVAILABLE
Priority: P3    
Version: 7.2   
Hardware: All   
OS: All   
Issue Type: ENHANCEMENT Exception Reporter:
Bug Depends on:    
Bug Blocks: 155091    
Attachments: Background patch
Suggested patch

Description Jesse Glick 2012-02-14 16:58:28 UTC
We might want to have a hint you could set in the POM that would let the user make the final decision about preferSources; see the dummy use of Shade in [1] for example. Should take priority over ShadePluginDetector and osgi.ForeignClassBundlerImpl (i.e. position=0).

[1] https://svn.codehaus.org/mojo/trunk/mojo/nbm-maven/nbm-maven-harness/pom.xml
Comment 1 Jesse Glick 2013-07-24 13:46:41 UTC
Have another case where I am using <attachArtifact> from maven-antrun-extended-plugin, which I guess NB does not know about.
Comment 2 Jesse Glick 2013-07-25 16:08:54 UTC
Created attachment 137814 [details]
Background patch

Preparatory patch.
Comment 3 Jesse Glick 2013-07-25 16:10:59 UTC
Created attachment 137815 [details]
Suggested patch

Suggested patch. I can confirm in a debugger that it affects preferSources() on a project; unfortunately I have not yet been able to confirm that it produces the desired effect:

1. On nbm-maven-harness, even without this property set, if I delete the Shade plugin then nbm-maven-plugin scans OK.

2. On my proprietary project, whether this property is set or not, there are no errors in classpath scanning for the project using the library with a binary replacement, but source association does not work even though the *-sources.jar is in my local repo.

These sound like bugs in the Java infrastructure but I am not sure what might be going on.
Comment 4 Martin Balin 2016-07-07 08:38:44 UTC
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