From torque-user-return-7647-apmail-db-torque-user-archive=db.apache.org@db.apache.org Fri Sep 28 16:50:11 2007 Return-Path: Delivered-To: apmail-db-torque-user-archive@www.apache.org Received: (qmail 973 invoked from network); 28 Sep 2007 16:50:11 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 28 Sep 2007 16:50:11 -0000 Received: (qmail 47353 invoked by uid 500); 28 Sep 2007 16:50:00 -0000 Delivered-To: apmail-db-torque-user-archive@db.apache.org Received: (qmail 47333 invoked by uid 500); 28 Sep 2007 16:50:00 -0000 Mailing-List: contact torque-user-help@db.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Apache Torque Users List" Reply-To: "Apache Torque Users List" Delivered-To: mailing list torque-user@db.apache.org Received: (qmail 47319 invoked by uid 99); 28 Sep 2007 16:50:00 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 28 Sep 2007 09:50:00 -0700 X-ASF-Spam-Status: No, hits=0.9 required=10.0 tests=SPF_PASS,URIBL_RHS_DOB X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [64.79.231.74] (HELO blr02.bynum.com) (64.79.231.74) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 28 Sep 2007 16:52:23 +0000 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Subject: RE: m2 torque plugin Date: Fri, 28 Sep 2007 11:43:36 -0500 Message-ID: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: m2 torque plugin Thread-Index: Acf21syKCZmr9MWlTvCkLlZKj72oMgDTfnHwATDikOAAwIQ7cA== From: "jill han" To: "Apache Torque Users List" X-Virus-Checked: Checked by ClamAV on apache.org Thanks a lot, Thomas there is m2 plugin for torque3.1.1 at http://repo1.maven.org/maven2/torque/maven-torque-plugin/ after m2 downloading: http://repo1.maven.org/maven2/torque/maven-torque-plugin/3.1.1/maven-tor que-plugin-3.1.1.pom and=20 http://repo1.maven.org/maven2/torque/maven-torque-plugin/3.1.1/maven-tor que-plugin-3.1.1.jar to the local repository it encountered a fatal error as [ERROR] FATAL ERROR [INFO] --------------------------------------------------------------------- [INFO] The PluginDescriptor for the plugin Plugin [torque:maven-torque-plugin] was not found. [INFO] --------------------------------------------------------------------- Even I upgraded to 3.3-RC2, the Error is the same. Is there any instruction on how to build PluginDescriptor or sample plugindescriptor? Maybe there is something wrong in the Below is part of the pom ************ ...... torque maven-torque-plugin 3.1.1 conf nequalsone-schema.xml generate-sources om om sql sqlExec documentation torque-gen torque 3.1.1 ant ant 1.5.1 commons-collections commons-collections 3.0 commons-lang commons-lang 2.0 commons-logging commons-logging 1.0.4 velocity velocity 1.3.1 village village 2.0-dev-20030825 ...... ******** >>2007/9/24, Thomas Fischer : >>a) There is no maven2 plugin for Torque 3.1.1. The current m2 plugin uses >>the 3.3.RCx generator. I'd not recommend using it with a 3.1.1 runtime. >>Consider upgrading; otherwise consider building a m2 plugin yourself which >>uses the 3.1.1 generator. >>b) I'm afraid there is no example in the website. In principle, you only >>have to insert the plugin in the bild/plugins section of the pom. In the >>test project we use the following snippet: >> >> >> org.apache.torque >> torque-maven-plugin >> ${project.version} >> >> target/torque/test/schema >> ${torque.targetDatabase} >> org.apache.torque.test >> ${torque.useManagers} >> ${torque.generateBeans} >> false >> ${torque.driver} >> ${torque.database.url} >> ${torque.database.user} >> ${torque.database.password} >> bookstore >> >> >> >> generate-sources >> om >> >> om >> sql >> sqlExec >> documentation >> >> >> >> test >> data >> >> datadtd >> datadump >> datasql >> >> >> target/torque/test/schema/bookstore->>schema.xml >> >> target/data/torque/bookstore-bookstore-all->>data.xml >> >> target/data/torque/bookstore-data.dtd >> >> >> >> >> >> ${torque.test.driver.artifactId} >> ${torque.test.driver.groupId} >> ${torque.test.driver.version} >> >> >> >>Probably you only need one execution. Also you need to fill the ${...} >>variables with correct values (you can also omit some of these, not all >>are >>required; check the plugin documentation.) >> >> Hope that helps, >> >> Thomas >-----Original Message----- >From: jill han=20 >Sent: Monday, September 24, 2007 3:26 PM >To: 'Apache Torque Users List' >Subject: RE: m2 torque plugin >Thanks for the reply, Thomas >I am using torque-3.1.1 >Is there any sample pom to show how the is constructed? > >Thanks, > >Jill --------------------------------------------------------------------- To unsubscribe, e-mail: torque-user-unsubscribe@db.apache.org For additional commands, e-mail: torque-user-help@db.apache.org