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

Summary: Maven project single test executes through Ant
Product: projects Reporter: dpospisi
Component: MavenAssignee: Jesse Glick <jglick>
Status: RESOLVED INVALID    
Severity: normal    
Priority: P3    
Version: 7.0.1   
Hardware: PC   
OS: Linux   
Issue Type: DEFECT Exception Reporter:
Bug Depends on: 204907    
Bug Blocks:    

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!