Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Java > Java Open Source > Spring
|
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 software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
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
Code:
mvn -e exec:java -Dexec.mainClass=com.test.beg.Calculate -Dexec.args="3000 3"
It gives error like...

Code:
+ Error stacktraces are turned on.
[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'exec'.
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[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
ersion:goal
[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
nGroupId:pluginArtifactId:pluginVersion:goal
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.getMojoDescriptor
(DefaultLifecycleExecutor.java:1830)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.segmentTaskListBy
AggregationNeeds(DefaultLifecycleExecutor.java:462)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLi
fecycleExecutor.java:175)
        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
0)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
        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] ------------------------------------------------------------------------





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





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.