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:[EMAIL PROTECTED] http://www.NequalsOne.com -----Original Message----- From: Benjamin Yu [mailto:[EMAIL PROTECTED] 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:[EMAIL PROTECTED] Sent: Wednesday, March 10, 2004 8:18 AM To: [EMAIL PROTECTED] 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:[EMAIL PROTECTED] http://www.NequalsOne.com --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
