Return-Path: Delivered-To: apmail-db-torque-user-archive@www.apache.org Received: (qmail 26229 invoked from network); 10 Nov 2009 10:06:34 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 10 Nov 2009 10:06:34 -0000 Received: (qmail 29422 invoked by uid 500); 10 Nov 2009 10:06:34 -0000 Delivered-To: apmail-db-torque-user-archive@db.apache.org Received: (qmail 29400 invoked by uid 500); 10 Nov 2009 10:06:34 -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 29390 invoked by uid 99); 10 Nov 2009 10:06:34 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 10 Nov 2009 10:06:34 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [217.24.207.26] (HELO mail.seitenbau.net) (217.24.207.26) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 10 Nov 2009 10:06:26 +0000 Received: from [192.168.15.18] (helo=www.seitenbau.net) by router.seitenbau.net with esmtp (Exim 4.43) id 1N7nbw-0002xv-MD for torque-user@db.apache.org; Tue, 10 Nov 2009 11:06:05 +0100 In-Reply-To: <00c301ca61e9$982f2060$c88d6120$@com> References: <00c301ca61e9$982f2060$c88d6120$@com> Subject: RE: [torrque-maven-plugin] Colliding parameters for different goals. X-KeepSent: 86267942:9D19403B-C125766A:00369D06; type=4; name=$KeepSent To: "Apache Torque Users List" X-Mailer: Lotus Notes Release 8.5 December 05, 2008 Message-ID: From: Thomas Fischer Date: Tue, 10 Nov 2009 11:06:03 +0100 X-MIMETrack: Serialize by Router on www/seitenbau(Release 8.5HF467 | May 15, 2009) at 10.11.2009 11:06:03 MIME-Version: 1.0 Content-type: text/plain; charset=US-ASCII X-Spam-Score: -1.4 (-) X-Spam-Report: -1.4 ALL_TRUSTED Passed through trusted hosts only via SMTP X-Virus-Checked: Checked by ClamAV on apache.org > I have encountered a problem running the M2 plugin for torque. The goals I > run are basically om, sql and sqlExec. There are a lot of parameters that > can be specified for these goals so I do it in my projects pom.xml. However, > all these three goals have some parameters that have the same name, e.g the > outputDir parameter. For om, I want this to point to my source directory, > for sql I want another directory where the sql-file will be generated. But > Maven2 is limited here and it is not possible to map different values for > the same parameter to different goals. This is not true. You need to define more than one execution. In principle, you have the following options: 1) use the same configuration for all goals (this is what you currently do) org.apache.torque torque-maven-plugin 3.3 ... generate-om om sql 2) define different executions, and define the complete configuration for each execution org.apache.torque torque-maven-plugin 3.3 generate-om om ... generate-sql sql ... The following does not work: 3) Define some parameters for all executions and some for a specific execution org.apache.torque torque-maven-plugin 3.3 ... generate-om om ... generate-sql sql ... As 1) does not meet your requiremets your only option is 2) Thomas --------------------------------------------------------------------- To unsubscribe, e-mail: torque-user-unsubscribe@db.apache.org For additional commands, e-mail: torque-user-help@db.apache.org