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 186024

Summary: After 6.9 change the FOQ implementation in Maven
Product: projects Reporter: Antonin Nebuzelsky <anebuzelsky>
Component: MavenAssignee: Jesse Glick <jglick>
Status: RESOLVED FIXED    
Severity: normal CC: geoffw, jglick, jis, mase, pjiricka, theanuradha
Priority: P2    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: TASK Exception Reporter:
Bug Depends on:    
Bug Blocks: 183557, 189442    
Attachments: Preparatory patch
Main patch

Description Antonin Nebuzelsky 2010-05-12 15:34:35 UTC
See issue 183557 and the comment #19 at

http://netbeans.org/bugzilla/show_bug.cgi?id=183557#c19
Comment 1 Jesse Glick 2010-08-17 23:22:41 UTC
Created attachment 101466 [details]
Preparatory patch
Comment 2 Jesse Glick 2010-08-17 23:23:45 UTC
Created attachment 101467 [details]
Main patch

Probably too risky for M1 so leaving in queue till after then.
Comment 3 Jesse Glick 2010-08-17 23:35:23 UTC
Should substantially simplify code and perhaps improve some use cases. Once you have ever opened a Maven project, it will be associated with its artifact(s) even after closing the project. (Deleting the project clears the association, of course.)

Seems to work well with snapshot dependencies but still need to check various subtleties. Should a project be listed as the owner of a release artifact after it has "moved on" to a new dev snapshot or even another release? If not, then SimpleFileOwnerQueryImplementation might not be sufficiently precise (because we cannot reliably unregister the project from old artifacts). But this may be harmless; MavenForBinaryQueryImpl seems to compare the classpath JAR in the local repo to artifactRelativeRepositoryPath, which will only match if the versions are aligned.

The case of >1 projects with the same group/artifactId but different versions should be handled reasonably; artifacts of a "known" version will be associated with the appropriate project, and artifacts of any other version will be associated with the last-opened project.
Comment 4 Jesse Glick 2010-08-18 18:38:43 UTC
*** Bug 177387 has been marked as a duplicate of this bug. ***
Comment 5 Jesse Glick 2010-08-18 18:56:57 UTC
*** Bug 164392 has been marked as a duplicate of this bug. ***
Comment 6 Jesse Glick 2010-08-23 20:52:35 UTC
After some reflection, not going to do the "preparatory patch" here (see bug #189788); will make a smaller change to MavenFileOwnerQueryImpl.
Comment 7 Jesse Glick 2010-08-23 22:15:13 UTC
core-main #412e7b28addc
Comment 8 Quality Engineering 2010-08-25 03:25:22 UTC
Integrated into 'main-golden', will be available in build *201008250001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/412e7b28addc
User: Jesse Glick <jglick@netbeans.org>
Log: #186024: rewrite how the association between artifacts in the local repo and source projects is tracked.
Comment 9 Antonin Nebuzelsky 2010-08-31 13:47:36 UTC
*** Bug 189493 has been marked as a duplicate of this bug. ***
Comment 10 Antonin Nebuzelsky 2010-09-20 14:21:22 UTC
*** Bug 189982 has been marked as a duplicate of this bug. ***
Comment 11 Antonin Nebuzelsky 2010-09-23 11:46:07 UTC
*** Bug 171375 has been marked as a duplicate of this bug. ***