Stephen, Thanks VERY much for that clarification..  it helped greatly!!

I found the Maven HowTo somewhat confusing..  so here's my summary of what I did to 
get it to work.
I mention a few problems I'm having...  most notably that I can't get it to work 
unless I create a lib directory in the project root with Torque and all its deps. (I'm 
sure I'm doing something wrong)
One day when I figure out how to commit patches (or updates or whatever the proper 
term is)  I'd be happy to update the doc on the site, after I work out the kinks.

Any comments, corrections etc.  are more than welcome.
_________________________________________________________________________


I am using this command to test the installation:

maven torque:om


I made the changes as stated on:

http://jakarta.apache.org/turbine/torque/maven-howto.html

NOTE THESE CHANGES:


===============================================================================
BUILD.XML SECTION
===============================================================================

This section talks about making changes to the "build.xml" file. 
These changes should instead be made to the "maven.xml" file.  
(As pointed out by Stephen Haberman)
Create a maven.xml file if there is not already one in your project.

The project open tag in the example is as follows:

<project name="yourproject" default="maven:war" basedir=".">

however, maven will complain about the "name" and "basedir" attributes.
So instead you must use a project open tag like this:

<project default="maven:war" >

if you are copying straight from the HowTo..  note that there is no closing 
project tag.


===============================================================================
PROJECT.PROPERTIES
===============================================================================
just a warning to be very careful with these settings.
I had copied from a previous file I was using (with a few crucial differences) 
and it would NOT work at all.
If something goes wrong, double-check the settings in this section.
Also, make sure you remove any build.properties files to avoid confusion.


===============================================================================
LIB DIRECTORY
===============================================================================
I had to put an ANT style lib directory in the project root with the torque jar
and all of its dependencies.  I thought Maven's project.xml was supposed to 
take care of this...  but I could be doing something wrong.

In the project.properties example,  there is this line:
 
 torque.lib.dir = ${lib.repo}
 
however, when I run it the ${lib.repo} doesn't resolve to a value..  it shows 
this error:
[ERROR] C:\test\projects\maven-torque-test\${lib.repo} not found.

===============================================================================
PROJECT.XML
===============================================================================
I copied all the dependencies to project.xml as well, but I imagine that's 
irrelevant as it is currently using the lib directory. Although, it will be 
necessary once I figure out what I'm doing wrong and can delete the lib 
directory.

end.

--
To unsubscribe, e-mail:   <mailto:turbine-torque-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:turbine-torque-user-help@;jakarta.apache.org>

Reply via email to