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 242011

Summary: Run file runs the project instead of the file
Product: javaee Reporter: spunk3
Component: MavenAssignee: Martin Janicek <mjanicek>
Status: RESOLVED WORKSFORME    
Severity: normal    
Priority: P3    
Version: 8.0   
Hardware: Macintosh   
OS: Mac OS X   
Issue Type: DEFECT Exception Reporter:

Description spunk3 2014-02-17 14:35:11 UTC
I have a Maven Web Application. When I click the Run File button or press Shift+F6 NetBeans runs the project instead of the file.
Comment 1 spunk3 2014-02-17 14:39:20 UTC
It's a Java file by the way. Web files run well.
Comment 2 Martin Janicek 2014-07-09 10:59:08 UTC
Hi, are you still facing the problem? I just tried to reproduce your issue but everything works as expected. I've done these simple steps:

1/ Create new Maven Web app
2/ Create new Java Class
3/ Implement simple main method with dummy Sys.out implementation
4/ Shift + F6

--> as the result, Maven command is executed showing correct log message

Closing as WORKSFORME for now. Please reopen the ticket in case you are still facing the problem. Thanks in advance!