Wrox Programmer Forums
|
BOOK: Beginning Spring Framework 2 ISBN: 978-0-470-10161-2
This is the forum to discuss the Wrox book Beginning Spring Framework 2 by Thomas Van de Velde, Bruce Snyder, Christian Dupuis, Sing Li, Anne Horton, Naveen Balani; ISBN: 9780470101612
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning Spring Framework 2 ISBN: 978-0-470-10161-2 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 August 5th, 2010, 02:48 PM
Registered User
 
Join Date: Aug 2010
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default 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





Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem Running Chapter 6 Earthquake clombardo BOOK: Professional Android 2 Application Development 26 June 28th, 2012 01:33 PM
Problem running site Chapter 3: Error DB Serv lcolmenarez BOOK: Beginning ASP.NET 2.0 BOOK VB ISBN: 978-0-7645-8850-1; C# ISBN: 978-0-470-04258-8 1 June 23rd, 2006 07:40 AM
Problem running datacontrol.aspx in Chapter 2 andersond BOOK: Beginning ASP.NET 1.0 5 October 29th, 2003 07:45 PM





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