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 202839 - Maven project single test executes through Ant
Summary: Maven project single test executes through Ant
Status: RESOLVED INVALID
Alias: None
Product: projects
Classification: Unclassified
Component: Maven (show other bugs)
Version: 7.0.1
Hardware: PC Linux
: P3 normal with 1 vote (vote)
Assignee: Jesse Glick
URL:
Keywords:
Depends on: 204907
Blocks:
  Show dependency tree
 
Reported: 2011-09-29 17:37 UTC by dpospisi
Modified: 2011-11-09 22:45 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 dpospisi 2011-09-29 17:37:01 UTC
IDE executes and debugs maven based project single test using Ant instead of Maven.

Single file test/debug configuration from projects' action configuration is ignored.
Comment 1 Jesse Glick 2011-10-19 19:54:57 UTC
When Compile on Save is enabled for unit tests, which is the default (see Compile panel of project properties), the IDE uses an unspecified mechanism (currently Ant's <junit>) to run tests directly from the class cache produced by the background compiler. If you have specialized Surefire configuration which requires a full Maven lifecycle to be launched, just disable CoS.
Comment 2 dpospisi 2011-10-28 08:51:46 UTC
Works great. Many thanks Jesse!