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 246442 - maven builds will not run when <netbeans.hint.deploy.server> is in the project pom and no servers have been added
Summary: maven builds will not run when <netbeans.hint.deploy.server> is in the projec...
Status: RESOLVED WORKSFORME
Alias: None
Product: javaee
Classification: Unclassified
Component: Maven (show other bugs)
Version: 8.0
Hardware: PC Linux
: P2 normal (vote)
Assignee: Petr Hejl
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-08-13 14:40 UTC by whboyd
Modified: 2015-04-17 10:00 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description whboyd 2014-08-13 14:40:30 UTC
steps to reproduce:
1. install netbeans 8.0 without installing any server plugins (tomcat, glassfish, etc)
2. create a maven web project
3. add this to pom.xml:
<properties>
   <netbeans.hint.deploy.server>Tomcat</netbeans.hint.deploy.server>
</properties>

4. right-click the project and any of the options that runs a maven goal (clean and build, clean, test, run, etc)

The cursor will turn into the waiting cursor a moment, then back to a normal cursor. No output will appear, and the maven command underlying the selected menu option will not be run.

If you remove the
<netbeans.hint.deploy.server>Tomcat</netbeans.hint.deploy.server>
line from pom.xml, all of the maven menu selections will work as normal, resulting in a successful build/clean/run etc.

If you add a tomcat server under tools > servers, the problem will no longer occur with or without <netbeans.hint.deploy.server> in the pom. If you delete the tomcat server from tools > servers the error will also not occur even after deleting it. It seems to happen only on a fresh install where there has been no tomcat server installed previously.
Comment 1 Petr Hejl 2015-04-17 10:00:50 UTC
I've tried the steps described here in dev build and everything works ok - clean & build proceed without any issue. Feel free to reopen.