Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Java > Java Open Source > Spring
Password Reminder
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Spring section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old January 10th, 2011, 06:25 AM
Registered User
Join Date: Jan 2011
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Exclamation Maven Help Needed...

I am new to Spring & Maven.

I have properly installed maven in my machine.
Also able to compile the project code.

But when I execute the java class using following command
mvn -e exec:java -Dexec.mainClass=com.test.beg.Calculate -Dexec.args="3000 3"
It gives error like...

+ Error stacktraces are turned on.
[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'exec'.
[INFO] ------------------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] Invalid task 'ûDexec.args=ö3000': you must specify a valid lifecycle phas
e, or a goal in the format plugin:goal or pluginGroupId:pluginArtifactId:pluginV
[INFO] ------------------------------------------------------------------------
[INFO] Trace
org.apache.maven.BuildFailureException: Invalid task 'ûDexec.args=ö3000': you mu
st specify a valid lifecycle phase, or a goal in the format plugin:goal or plugi
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.getMojoDescriptor
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.segmentTaskListBy
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLi
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
        at org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:6
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
        at java.lang.reflect.Method.invoke(Method.java:585)
        at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
        at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
        at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)

        at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1 second
[INFO] Finished at: Mon Jan 10 15:48:43 IST 2011
[INFO] Final Memory: 2M/3M
[INFO] ------------------------------------------------------------------------

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
New Compilation FATAL ERROR maven 2.0.9 krausch BOOK: Beginning Spring Framework 2 ISBN: 978-0-470-10161-2 1 December 4th, 2016 08:34 AM
Help needed Taffmeister XSLT 3 April 1st, 2009 08:03 AM
help needed sumit_00 ASP.NET 2.0 Basics 2 August 20th, 2007 08:59 AM
help needed mikedeepak Classic ASP Professional 0 April 4th, 2006 04:53 AM
Help is needed! satts Access 3 February 14th, 2005 03:04 PM

All times are GMT -4. The time now is 04:55 PM.

Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.