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 198770 - Maven does not initialize Netbeans Platfrom support
Summary: Maven does not initialize Netbeans Platfrom support
Status: RESOLVED FIXED
Alias: None
Product: ide
Classification: Unclassified
Component: Features On Demand (show other bugs)
Version: 7.0
Hardware: PC Windows 7 x64
: P3 normal with 1 vote (vote)
Assignee: Jaroslav Tulach
URL:
Keywords:
Depends on: 168618
Blocks:
  Show dependency tree
 
Reported: 2011-05-20 16:09 UTC by tim_sa
Modified: 2011-06-05 14:04 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Maven NetBeans Development Support Module Missing Error Dialog (17.03 KB, image/png)
2011-05-20 16:09 UTC, tim_sa
Details

Note You need to log in before you can comment on or make changes to this bug.
Description tim_sa 2011-05-20 16:09:05 UTC
Created attachment 108421 [details]
Maven NetBeans Development Support Module Missing Error Dialog

When you install a new version of NetBeans you shouldn't need to go and activate a module if you are opening an existing project.

If I open a Maven NetBeans Module/Application project I get the following error "Maven NetBeans Development Support Module Missing" (See attached)
The project still compiles correctly, however all of the NBP specific menu items are not available. 
In order to fix you need to activate the NetBeans Platform development module.

When the Project is opened the NetBeans Platform development module should be activated.

Steps to reproduce:
-Install NetBeans 
-Open Existing Maven NetBeans Platform Application

WorkAround: 
- New Project
- new Maven NetBeans Module (NetBeans activates Module)
- close New Project Dialog
- Build Maven NetBeans project
Comment 1 Jaroslav Tulach 2011-05-25 19:23:59 UTC
Caused by changes for bug 168618.
Comment 2 Jesse Glick 2011-05-26 14:56:55 UTC
If it is relevant, a trigger for loading apisupport might be an open project with $projectDirectory/pom.xml matching (xmlns:pom="http://maven.apache.org/POM/4.0.0"):

/pom:project[pom:packaging='nbm' or pom:packaging='nbm-application']
Comment 3 Jaroslav Tulach 2011-05-27 13:39:10 UTC
Yes, it is relevant. Needs to be put into ide.ergonomics/apisupport.properties similar way as enterprise.properties contain:

project.xpath.pom.xml=project/packaging[text()='war' or text()='ejb' or text()='ebj3']
Comment 4 Jesse Glick 2011-05-27 14:11:54 UTC
Sounds right. (BTW <packaging>ear</> is also possible.)
Comment 5 Jaroslav Tulach 2011-06-04 13:46:42 UTC
ergonomics#8f339154d79d
Comment 6 Quality Engineering 2011-06-05 14:04:13 UTC
Integrated into 'main-golden', will be available in build *201106051000* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/8f339154d79d
User: Jaroslav Tulach <jtulach@netbeans.org>
Log: #198770: react to presence of nbm packaging