I ended up listing almost all of torque's runtime dependencies. My build
with maven wouldn't work otherwise. I'm not totally 100% sure on exactly
what is required. One quirk I found was that maven would build if I did not
include the stratum jar... But eclipse would give me an error if the stratum
jar wasn't in the project's classpath.
>If it makes a difference, I am using a custom base class and a custom
>base peer.
Do you mean that you modified the Base* java files?
If so, I believe that the docs say that all customizations should go into
the individual class files. Just because the Base classes will be
overwritten when generating code, but won't overwrite the subclasses if they
should exist.
Not 100% sure, but I think that the category/log variable is somewhere
within the torque code itself, not the autogenerated code.
-Ben
-----Original Message-----
From: Nathan Mcminn [mailto:NMcminn@theblragency.com]
Sent: Wednesday, March 10, 2004 11:40 AM
To: Apache Torque Users List
Subject: RE: Torque versions and Maven plugin
Ben,
Thanks for the quick response.
I checked in my $HOME/.maven/plugins/maven-torque-plugin directory and
everything looks like it should (as far as I can tell)
In project.xml (for my project), do I need to have all of torque's
dependendcies listed?
I have both commons-logging 1.0.2 and log4j 1.2.7 listed as dependencies
in my project.xml.
I'm not sure what is going wrong. It seems like the plugin is using a
torque generator that doesn't match up with the runtime version-wise.
If it makes a difference, I am using a custom base class and a custom
base peer. Where exactly is the category variable defined? If it is
defined in the standard base class or base peer, that could be my
problem.
--------------------------------------------
Nathan McMinn
Application Developer
NequalsOne - HealthCare marketing tools
mailto:nmcminn@NequalsOne.com
http://www.NequalsOne.com
-----Original Message-----
From: Benjamin Yu [mailto:BenjaminY@InformativeResearch.com]
Sent: Wednesday, March 10, 2004 11:15 AM
To: 'Apache Torque Users List'
Subject: RE: Torque versions and Maven plugin
I'm going to guess that it sounds like your project.xml is missing the
dependancy entry.
More specifically, the specific error looks like it points to one of the
logging packages. Either log4j or commons-logging...
Here's a like of dependencies for torque:
For torque's generator:
http://db.apache.org/torque/generator/dependencies.html
For torque's runtime jar: http://db.apache.org/torque/dependencies.html
Note that you don't need the generator's jar listed in your project.xml
file. That's being handled by the maven-torque plugin. You do need the
runtime jar though.
> How can I configure what version of Torque the Maven
> plugin is using?
>From your message, it looks like you're running this on a windows box.
What you can do is go into your $HOME/.maven/plugins directory.
For example, C:\Documents and Settings\Ben\.maven\plugins. There should
be a subdirectory for the maven-torque plugin. Look there.
Hope this helps.
-Ben
-----Original Message-----
From: Nathan Mcminn [mailto:NMcminn@theblragency.com]
Sent: Wednesday, March 10, 2004 8:18 AM
To: torque-user@db.apache.org
Subject: Torque versions and Maven plugin
I'm not sure that I am posting this in the right place, my question kind
of spans a couple different projects. I don't have a ton of experience
with this particular set of tools, so please bear with me.
I have a pretty big application written using Turbine/Torque/Velocity.
We are using Maven for project management. Using the Torque plugin for
Maven, I am able to generate my source files just fine. However, when I
try to build, I get a slew of compiler errors complaining about the
generated classes, like the one below
C:\SOURCE~1\NEO-MA~1\NEO\src\java\com\nequalsone\om\BaseSurveyReportDefi
nitionParameterPeer.java:93: cannot resolve symbol
symbol : variable category
location: class
com.nequalsone.om.BaseSurveyReportDefinitionParameterPeer
category.error("Could not initialize Peer", e);
All complaining about a missing variable "category"
In my project.xml file for this project, Torque 3.1 is defined as a
dependency, and is available in my Maven repository.
I suspect what may be happening, is that the Torque source file
generation is using a different version than Maven is attempting to
compile against. How can I configure what version of Torque the Maven
plugin is using?
--------------------------------------------
Nathan McMinn
Application Developer
NequalsOne - HealthCare marketing tools
mailto:nmcminn@NequalsOne.com
http://www.NequalsOne.com
---------------------------------------------------------------------
To unsubscribe, e-mail: torque-user-unsubscribe@db.apache.org
For additional commands, e-mail: torque-user-help@db.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: torque-user-unsubscribe@db.apache.org
For additional commands, e-mail: torque-user-help@db.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: torque-user-unsubscribe@db.apache.org
For additional commands, e-mail: torque-user-help@db.apache.org