You are viewing a plain text version of this content. The canonical link for it is here.
Posted to torque-user@db.apache.org by brian janaszek <bj...@collaborativefusion.com> on 2003/06/04 20:34:16 UTC

Torque 3/Turbine 2.2 and Maven

Hello--

I've been pestering the Maven users list all day with questions, and now
I want to see if anyone here can help....

I've been trying to setup a web app with Turbine 2.2/Torque 3.x and
Maven (beta9).  I've been able to successfully generate my SQL scripts,
add tables to the database, and generate my OM layer java files, but I
cannot compile those auto-generated classes.

I've got the Torque 3.0 jar in my maven repository, but the generated
code has references to classes in the Torque 3.1 release
(TooManyRowsException, for example). I've tried running the torque:om
task against the Torque 3.1 jar, but since the generator classes have
been separated, that task fails when looking for the Ant tasks within
Torque.  Also, I get stacks of "class or interface expected" errors as
well, indicating that there are syntax errors within the Torque
generated Java files.  

Has anyone seen this sort of behavior?  Am I missing something
incredibly obvious? I've seen a few howtos on the various lists, and
I've followed them, but I've had no success.

TIA
bmj


Re: Torque 3/Turbine 2.2 and Maven

Posted by Eric Emminger <er...@ericemminger.com>.
Brian

brian janaszek wrote:
> Eric--
> 
> Thanks for the reply.  We've had to go back to Ant due to time
> constraints, but we would like to move to Maven if we stick with
> Turbine/Torque.
> 
> What version of the Torque plugin are you using with beta 8?  I

Actually, I'm *not* using the Torque plugin. I still use Torque's ant 
tasks. I use Maven for everything else. Sorry if I overlooked this earlier.

> attempted to use the earlier plugin (built for Torque 3.0) and ran into
> issues with code generation of the OM layer.  At one point, no code was
> being generated, but no errors were returned.  Very odd.  I was trying
> to use Maven to build the application from the ground up, and ran into
> so many problems (and so many disparate solutions on the various mailing
> lists) that I just gave up and went back to Ant.
> 
> Do you know if there is an up-to-date HOWTO for using Maven with
> Turbine/Torque?  Everything I've found wasn't complete -- there were
> always problems at one point or another.

I followed the how to at
http://nagoya.apache.org/wiki/apachewiki.cgi?JakartaTDK/Starting_Project_With_TDK2.2_And_Maven

It works well enough for me to use it.

Eric


Re: Torque 3/Turbine 2.2 and Maven

Posted by brian janaszek <bj...@collaborativefusion.com>.
Eric--

Thanks for the reply.  We've had to go back to Ant due to time
constraints, but we would like to move to Maven if we stick with
Turbine/Torque.

What version of the Torque plugin are you using with beta 8?  I
attempted to use the earlier plugin (built for Torque 3.0) and ran into
issues with code generation of the OM layer.  At one point, no code was
being generated, but no errors were returned.  Very odd.  I was trying
to use Maven to build the application from the ground up, and ran into
so many problems (and so many disparate solutions on the various mailing
lists) that I just gave up and went back to Ant.

Do you know if there is an up-to-date HOWTO for using Maven with
Turbine/Torque?  Everything I've found wasn't complete -- there were
always problems at one point or another.

thanks
bmj


On Mon, 2003-06-09 at 15:36, Eric Emminger wrote:
> Brian
> 
> brian janaszek wrote:
> > Hello--
> > 
> > I've been pestering the Maven users list all day with questions, and now
> > I want to see if anyone here can help....
> > 
> > I've been trying to setup a web app with Turbine 2.2/Torque 3.x and
> > Maven (beta9).  I've been able to successfully generate my SQL scripts,
> 
> I have things working with Maven beta 8. I'm guessing your questions are 
> specific to beta 9, but if I can help, let me know.
> 
> Eric
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: torque-user-unsubscribe@db.apache.org
> For additional commands, e-mail: torque-user-help@db.apache.org
> 


Re: Torque 3/Turbine 2.2 and Maven

Posted by Eric Emminger <er...@ericemminger.com>.
Brian

brian janaszek wrote:
> Hello--
> 
> I've been pestering the Maven users list all day with questions, and now
> I want to see if anyone here can help....
> 
> I've been trying to setup a web app with Turbine 2.2/Torque 3.x and
> Maven (beta9).  I've been able to successfully generate my SQL scripts,

I have things working with Maven beta 8. I'm guessing your questions are 
specific to beta 9, but if I can help, let me know.

Eric