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.
the simplified project folder recognition introduced by ergonomics seems to persist even when the project type in question is already enabled. that is causing problems in UI. steps to reproduce: 1. svn checkout http://svn.codehaus.org/mojo/trunk/mojo/mojo-archetypes/ 2. open webapp-jee5/ folder as a maven project. 3. ERROR: expand Other Sources node, it has one subnode, expand it and you will see just the META-INF.maven package. if you do the same with ergonomics purged (deleted cluster) and clean userdir, there are more packages shown.
I guess this is related to issue 154427: shall we improve proxying or replace the project in OpenProjects list?
no, IMHO this is about the ergonomics isProject()/loadProject() method not being completely equal to barebone maven project factory. If maven projects are enabled, the ergonomics factory shall either completely ignore the maven project resolution or shall completely delegate to the maven factory. It's not about project instances, if these are created it's already too late.
Reproduced. If I just open the project in ergonomics IDE, it contains just META-INF.maven. If I shutdown and restart, the project still contains just META-INF.maven. If I fully enable Web&J2EE category and restart the project contains more packages. As such it is imho an example of issue 156338 - e.g. maven project that does not enable j2ee functionality. However just fixing issue 156338 is unlikely to be enough, the pom.xml contains "<packaging>jar</packaging>" and as such, j2ee would not be enabled either, even after fixing 156338.
not sure if your evaluation is correct. The packages are missing because there is a pom.xml file at the resources and it is falsely identified by ergonomics as a project, therefore the SourceGroup.contains() method will not include the folders within and will skip them. The solution is to make sure the pom.xml in resources is not recognized as project.
I see. Thanks for explanation.
ergonomics#be75578d0634
Integrated into 'main-golden', will be available in build *200901111401* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main/rev/be75578d0634 User: Jaroslav Tulach <jtulach@netbeans.org> Log: #156396: Provide recognition only for disabled feature infos