Torques Maven2 Plugin is lacking IDBroker-Features (which the maven1 version provided)
--------------------------------------------------------------------------------------
Key: TORQUE-101
URL: https://issues.apache.org/jira/browse/TORQUE-101
Project: Torque
Issue Type: New Feature
Components: Maven 2 Plugin
Environment: mvn --version
Maven version: 2.0.7
Java version: 1.6.0_02
OS name: "linux" version: "2.6.17-12-generic" arch: "i386"
org.apache.db.torque
torque-maven-plugin
3.3-RC2 [...]
Reporter: Marc Kannegiesser
As already discussed with Thomas Fischer on the list torque-user@db.apache.org it seems that the Maven2 plugin for Torque is lacking the feature of creating the init-statements for the IDBroker-Table.
I am currently porting an application to build with maven2. Everything seems to be fine except the creation of the IDBrokers ID_TABLE:
Torques maven1 plugin provided a goal named torque:id-table-init-sql which created .sql files for the initialisation of the IDBroker-Table. The content was like that:
insert into ID_TABLE (id_table_id, table_name, next_id, quantity) VALUES (5101, 'poll', 1000, 10); [...]
These files dont get generated with the Maven2 version of the plugin. The only config-option which could have to do sth with this is idTableXmlFile of the sql-Mojo. Thomas sais this is needed by the underlaying ant-task but he also does not know where it is for exactly.
Please have a look at the mailinglist for more details: http://mail-archives.apache.org/mod_mbox/db-torque-user/200709.mbox/browser
Would it be possible to add this missing feature ( porting the maven1 plugins goal torque:id-table-init-sql ) soon? Then i could easily port my applications build-process to maven2.
Thanks in advance,
Marc
PS:
My config is like this (i tried several versions):
plugin>
org.apache.db.torque
torque-maven-plugin
3.3-RC2
jdbc:mysql://localhost/mysoftware
report.${project.artifact.artifactId}.sql.generationfalse
mysql
${basedir}/src/torque-schemas
${basedir}/src/torque-templates
org.gjt.mm.mysql.Driver
root
*schema.xml
id-table-schema.xml
com.mycompany.mysoftware
id-table-schema.xml
mysql
mysql-connector-java
3.1.12
jar
Creating .sql files
process-resources
sql
OM Goal (Generating Classes, Beans, ...)
process-resources
om
true
true
true
Bean
Fire sql to the database!!!
process-resources
sqlExec
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: torque-dev-unsubscribe@db.apache.org
For additional commands, e-mail: torque-dev-help@db.apache.org