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 200445 - Register submodules in MavenFileOwnerQueryImpl more aggressively
Summary: Register submodules in MavenFileOwnerQueryImpl more aggressively
Status: RESOLVED FIXED
Alias: None
Product: projects
Classification: Unclassified
Component: Maven (show other bugs)
Version: 7.0
Hardware: All All
: P3 normal (vote)
Assignee: Jesse Glick
URL:
Keywords:
Depends on:
Blocks: 172502
  Show dependency tree
 
Reported: 2011-07-27 20:21 UTC by Jesse Glick
Modified: 2011-08-08 17:06 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jesse Glick 2011-07-27 20:21:05 UTC
When opening a big aggregator POM such as Glassfish's, it is generally desirable to have submodules registered in FOQ so that intermodule dependencies will be recognized as source dependencies.

Currently the registration only happens when a project is opened. But this also triggers classpath scanning etc., so it is not comfortable to open all the submodules.

Possibilities include:

1. Register a project when loaded, not opened. Makes it a bit harder to tell when registration will occur, but perhaps this is OK.

2. Register a project when displayed under the Modules node of an aggregator.
Comment 1 Jesse Glick 2011-08-03 23:33:57 UTC
core-main #a2be67539dc6
Comment 2 Quality Engineering 2011-08-04 13:47:29 UTC
Integrated into 'main-golden', will be available in build *201108040600* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/a2be67539dc6
User: Jesse Glick <jglick@netbeans.org>
Log: #200445: Register submodules in MavenFileOwnerQueryImpl more aggressively
Comment 3 Quality Engineering 2011-08-06 14:00:10 UTC
Integrated into 'main-golden'
Changeset: http://hg.netbeans.org/main-golden/rev/a73027ff5dc7
User: Jesse Glick <jglick@netbeans.org>
Log: Refining #200445 to actually load any projects using substitutions in <artifactId>.
This can still fail in case they are not yet loadable, e.g. parent POM missing.
Comment 4 Jesse Glick 2011-08-08 17:06:55 UTC
*** Bug 188964 has been marked as a duplicate of this bug. ***