Chapter 1 - problem running the example
Hi Friends.....
I would like to thank to the authors of this book for writing such good book; the language is very simple to understand.
I have followed the steps mentioned in 'Try it out section of Chapter1' to run the first example; for that i went into command prompt to : src/chapter1/monolithic' and run the command:-
mvn compile
I get this output which says the BUILD is SUCCESSFUL:->
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Building monolithic
[INFO] task-segment: [compile]
[INFO] ------------------------------------------------------------------------
[INFO] [resources:resources {execution: default-resources}]
[WARNING] Using platform encoding (Cp1252 actually) to copy filtered resources, i.e. build is platform dependent!
[INFO] skip non existing resourceDirectory E:\E\Study\SpringBeginner\src\chapter1\monolithic\ src\main\resources
[INFO] [compiler:compile {execution: default-compile}]
[INFO] Nothing to compile - all classes are up to date
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESSFUL
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 12 seconds
[INFO] Finished at: Thu Aug 05 23:57:17 PDT 2010
[INFO] Final Memory: 5M/10M
[INFO] ------------------------------------------------------------------------
After successful build, I wanted to execute this first example by using this command:-
mvn exec:java -Dexec.mainClass=com.wrox.begspring.Calculate âDexec.args="3000 3"
I was expecting to get the result as: 'The result of 3000 plus 3 is 3003!' .
But it gave error :->
[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'exec'.
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Invalid task 'âDexec.args=3000 3': you must specify a valid lifecycle phase, or a goal in the format plugin:goal or pluginGroupId:pluginArtifactId:pluginVersion:goal
[INFO] ------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 2 seconds
[INFO] Finished at: Fri Aug 06 00:00:43 PDT 2010
[INFO] Final Memory: 2M/4M
[INFO] ------------------------------------------------------------------------
Can someone pls help me to execute this first example ?
Thanks in advance .
Ramesh Kumar
|