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 215594 - Netbeans runs maven projects through ant instead of maven exec plugin
Summary: Netbeans runs maven projects through ant instead of maven exec plugin
Alias: None
Product: projects
Classification: Unclassified
Component: Maven (show other bugs)
Version: 7.2
Hardware: PC Windows 7
: P1 normal with 1 vote (vote)
Assignee: Milos Kleint
Depends on:
Blocks: 180519 215575 217722
  Show dependency tree
Reported: 2012-07-16 16:15 UTC by evillive
Modified: 2013-02-21 12:34 UTC (History)
2 users (show)

See Also:
Exception Reporter:


Note You need to log in before you can comment on or make changes to this bug.
Description evillive 2012-07-16 16:15:38 UTC
Netbeans uses ant to execute maven projects.

Steps to reproduce:
1. Run maven project via F6 or "Run" context menu
   Netbeans uses maven exec plugin

2. Stop project execution and re-run it via F6 or "Run" menu.
   Netbeans uses ant now.

There is similar issue ( that has status RESOLVED INVALID. I'm not sure if this is designed behavior, but at least, there is related issue ( which is definitely bug.
Comment 1 Milos Kleint 2012-07-16 16:23:48 UTC
with Compile on Save enabled, the subsequent executions will be performed by the IDE. That's unfortunately done through Ant further increasing confusion.

if Compile on Save doesn't work for you, just disable it. It's only working for the simple cases, please be aware however that the Ant execution is only part of the Compile on Save functionality, specifically tailored for jar based projects with a main method. For war projects we (re)deploy the apps for example. And CoS can also be used together with jrebel or javeleon for live class reloading.
Comment 2 evillive 2012-07-17 10:35:45 UTC
Thanks! Disabling Compile on Save works for me. Now I see that was designed behavior. Should I change status to RESOLVED (I cannot see INVALID option)?
Could you please look at ?
That is the only thing, that blocks me from using 'Compile on Save' feature.
Comment 3 Milos Kleint 2012-10-31 08:39:24 UTC
-> P1, TASK. not to be immediately fixed, but in the long term we should keep using maven even for quick executions without compilation
Comment 4 Milos Kleint 2013-02-21 12:34:00 UTC