Date: 2004-06-09T11:44:06 Editor: 194.175.229.106 <> Wiki: DB Torque Wiki Page: GettingTorqueToWork URL: http://wiki.apache.org/db-torque/GettingTorqueToWork
no comment Change Log: ------------------------------------------------------------------------------ @@ -7,6 +7,7 @@ ''' PLEASE, PLEASE, PLEASE!!''' If you have had problems setting up Torque and solved them, add your experiences to the list. The more people who contribute, the better the document! ---- + == Installing release 3.1 == Note that the tutorial is in serious need of updating. It is based on Torque 3.0 which did not include the separated runtime and generation components nor the Torque maven plugin. See TutorialErrata for details. @@ -278,3 +279,18 @@ -- Gary Shea + += Installing from CVS = + +I did go through the following steps to build torque from CVS + + 1. Download Torque from CVS. See http://db.apache.org/torque/cvs-usage.html for instructions. + + 2. Download and install maven (http://maven.apache.org/start/download.html). I used maven 1.0-rc3 on Windows. Don't forget to set the environment variable MAVEN_HOME to the appropriate directory and to add the maven binary directory to the environment variable PATH. + + 3. Build torque: Run "maven jar" from the torque root diretory. Maven now downloads some jar files. In the end, it complains about not being able to download jdbc-2.0.jar and jndi-1.2.1.jar. As far as I know, jdbc 2.0 is contained in J2SE 1.4 and should therefore not be needed separately if J2SE1.4.x is used, so I commented the jdbc dependency in project.xml in torque's root directory. Another solution would probably be to download thew jdbc-2.0 optional package from http://java.sun.com/products/jdbc/download.html, but I did not try it. Then download jndi-1_2_1.zip from http://java.sun.com/products/jndi/downloads/index.html, unpack it, copy the file lib/jndi.jar into the directory .maven/repository/jndi/jars in your home diretory and rename it to jndi-1.2.1.jar. Then run "maven jar" again. This will download some more jar files, and build the library torque/torque-3.2-dev.jar. To generate the documentation, run "maven site:generate". The documentation will be generated in target/docs. + + 4. Build the Torque Generator: change into the directory src/generator and run "maven jar". It will download some jar files and build the library src/generator/target/torque-gen-3.2-dev.jar. Again, the documentation will be generated by running "maven site:generate". The documentation for the generator will be generated in src/generator/target/docs. + + 5. Build the Maven plugin(see also http://db.apache.org/torque/maven-howto.html): change into the directory src/generator and run "maven plugin:install". Maven complains about not being able to download torque-gen-3.2-dev.jar. But as this file was already created, it can be copied from src/generator/target/torque-gen-3.2-dev.jar to the .maven/repository/torque/jars in the home directory of the user. Running "maven plugin:install" again seemed to create the plugin. +-- Thomas Fischer --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
