NetBeans Forums
| View previous topic :: View next topic |
| Author |
Message |
Adam Jurzyk Posted via mailing list.
|
Posted: Fri Mar 18, 2011 11:47 am Post subject: How to specify a which Java main class to run complied with a Maven Project |
|
|
I usually configure exec-maven-plugin in pom to launch proper class. I
think that Project Properties->Run configuration also always worked
for me.
You can also override action executed by Netbeans on "Run" command in
Project Properties -> Actions -> Run project
On Fri, Mar 18, 2011 at 1:43 AM, Craig Motell <address-removed> wrote:
| Quote: |
Dear Maven users with Netbeans: I hope there are!
I have a maven project, it creates many Java classes with main() that I can
run.
I am able to run my application using the following Maven command line:
D:\projects\web\core>mvn org.codehaus.mojo:exec-maven-plugin:1.1.1:java
-Dexec.mainClass=Project.task.ipt
[INFO] Scanning for projects...
and it runs...albeit poorly:)
--------------------------------------------------
But I can't run it directly in NETBEANS.
QUESTION: my primary question is how to run this class in Netbeans. How to
tell Netbeans which Java class to run with a project.
My Attempt:
I try adding this as a Project Properties->Run
----------------------------------------------------------------------------
| Configuration: <default config>
| Main Class: Project.task.ipt
| Arguments:
| Working Directory:
| VM Options: -Xms126m -Xm512m
-------------------------------------------------------------------------------
but when I run |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You can attach files in this forum You can download files in this forum
|
|
|