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 January 21st, 2008, 07:53 PM
sin sin is offline
Registered User
 
Join Date: Jan 2008
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default Eclipse and PIX

I would like to build the PIX project in Eclipse without using Maven. Has anyone been able to get PIX compiled and working from within Eclipse? What jar files are required?
 
Old January 22nd, 2008, 07:22 AM
Registered User
 
Join Date: Dec 2007
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

From the wrox-pix-web directory , run the command mvn eclipse:eclipse

This will create a eclipse project for you.

Import the wrox-pix-web project as an eclipse project using Import an existing project option. The .classpath contains the M2_REPO variable which you need to set it for resolving dependencies. Create a Java build path variable M2_REPO and point to your local maven repository, typical location is C:\Documents and Settings\$username\.m2\repository.


 
Old January 22nd, 2008, 03:57 PM
sin sin is offline
Registered User
 
Join Date: Jan 2008
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I got the project to compile and run including all of the JUnit tests. I would however like to have all of the libraries in a local lib directory inside of the eclipse project rather than using the maven repository. Is there any way to copy the jar files that are used from the maven repository to another directory? I could just do a find and then copy every jar file but the repository has multiple versions for the same jar and I only want the latest one.


 
Old January 22nd, 2008, 07:50 PM
sin sin is offline
Registered User
 
Join Date: Jan 2008
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I was able to get all of the jar files by building the web app following the instructions in appendix c. The only jar file missing was the spring-mock library which I copied from the maven repository.

I create a new Eclipse Dynamic Web app, copied the source and configs over to the new project and it works as expected.





Similar Threads
Thread Thread Starter Forum Replies Last Post
eclipse Uniqe Beginning PHP 1 February 4th, 2012 03:29 PM
Easy Eclipse jtbjustin BOOK: Professional Joomla! ISBN: 978-0-470-13394-1 1 November 17th, 2008 05:31 PM
Compile problem wrox-pix-web marshad77 BOOK: Beginning Spring Framework 2 ISBN: 978-0-470-10161-2 0 July 1st, 2008 11:01 AM
can't start tomcat with pix deployed anjie BOOK: Beginning Spring Framework 2 ISBN: 978-0-470-10161-2 1 January 21st, 2008 05:18 PM





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