Hola David, see my comments inline.
I hope below information will help you to take a closer look at Castor. Regards Ralf Am 30.03.2011 11:57, schrieb David Martín Nieto: > Hi, > > I'm thinking to make a proposal for one of the ideas of Castor in > GSOC2011. Before make it i'm building my own test environment for > Castor and I've some doubts, maybe somebody can help me with this: > > * At first in the web page of castor ideas for the gsoc2011 there > are three diferent sections: Castor XML related projects, Spring > ORM support for Castor JDO related projects, and Castor JDO > related projects. I'm interested in especially the first and the > last sections but does not identify which of the existing > modules in subversion under the names do not appear similar. The > modules in subversion are these: castor-jaxb2, castor-jpa, > castor-spring, spring-xml. I wanted to know if it's really well > and are classified ideas modules and if so to what modules under > each. > The sections of ideas page do not directly relate to Castor modules. Instead they should be interpreted as areas of work. > > * To move forward I downloaded the spring-xml module with the > intention to go riding a test environment. I run first one: > svn co http://svn.codehaus.org/castor/spring-xml/trunk > And then a mvn mvn compile and test successfully. > But after throwing a jar mvn tells the comand show to me: > > [INFO] ----------------------------------------------- > ------------------------- > [INFO] Building Castor Spring XML abstraction for 1.2.2-SNAPSHOT > [INFO] ----------------------------------------------- > ------------------------- > [INFO] ----------------------------------------------- > ------------------------- > [INFO] BUILD FAILURE > [INFO] ----------------------------------------------- > ------------------------- > [INFO] Total time: 0.273s > [INFO] Finished at: Wed Mar 30 11:52:30 EST 2011 > [INFO] Final Memory: 2M/91M > [INFO] ----------------------------------------------- > ------------------------- > [ERROR] Unknown lifecycle phase "jar. " You Must Specify a > valid lifecycle phase or in the format GOAL <plugin-prefix>: > <goal> > or <plugin-group-id>: <plugin-artifact-id> [: > <plugin-version>]: <goal>. Available Phases lifecycle are: > validate, initialize, generate-sources, process-sources, > generate-resources, process-resources, compile, > process-classes, generate-test-sources, process-test-sources, > generate-test-resources, process -test-resources, > test-compile, process-test-classes, test, prepare, package, > package, pre-integration-test integration-test, > post-integration-test, verify, install, deploy, pre-clean, > clean , post-clean, pre-site, site, post-site, site-deploy. -> > [Help 1] > [ERROR] > [ERROR] To see the full stack trace of the errors, re-run > Maven with the-e switch. > [ERROR] Maven Re-run using the-X switch to enable full debug > logging. > [ERROR] > [ERROR] For more information about the errors and possible > solutions, please read the Following articles: > [ERROR] [Help 1] > > http://cwiki.apache.org/confluence/display/MAVEN/LifecyclePhaseNotFoundException > > And I don't know how to fix it. > For everything but the JPA stuff you have to download: svn co https://svn.codehaus.org/castor/castor/trunk/ What you get is a multi module maven project. To get all libs downloaded and all required classes generated you can execute 'mvn install'. For setting up the project with eclipse you have 2 options. One is to use project root as root for a single eclipse project. This way the project definitions included in SVN will be used. The other option is to execute 'mvn eclipse:eclipse' which will create module specific project definitions. This way you get a multi project setup in eclipse. Having said that you may be hit by a bug where maven fails to download a required lib. We are currently trying to resolve this. The spring-xml project you downloaded is only a plugin for spring to use castor for xml data binding. The castor-spring project is a plugin for spring to use castor as persistence (Spring ORM for JDO). The castor-jpa Project is an interface layer around castor that is intended to provide JPA compliant interface to Castor persistence part (JDO). > > > * On the other hand would be particularly interested in knowing > where information could expand on this idea for GSOC2011, which > would be the most appropriate documents to study and understand > more specifically the improvement and especially if the module > to download is the spring-xml or another. > Depending on the idea you are interested in I would suggest to directly conntact the possible mentor that is included on the ideas page (Werner or myself). Another possibility is to connect to our irc. With an irc-client this would be irc://irc.codehaus.org/castor or by web proxy http://irc.codehaus.org at castor channel. > > > Thanks a lot! > > David Martín > Spainish student on computer sciences > -- Syscon Ingenieurbüro für Meß- und Datentechnik GmbH Ralf Joachim Raiffeisenstraße 11 72127 Kusterdingen Germany Tel. +49 7071 3690 52 Mobil: +49 173 9630135 Fax +49 7071 3690 98 Internet: www.syscon.eu E-Mail: ralf.joac...@syscon.eu Sitz der Gesellschaft: D-72127 Kusterdingen Registereintrag: Amtsgericht Stuttgart, HRB 382295 Geschäftsleitung: Jens Joachim, Ralf Joachim