Introduction
Torque projects used to be built with all of the Torque elements (templates,
property files,
The advent of Maven allows Torque to be used in a much simpler manner. With the Maven plugin, absolutely no Torque-related resources (except the Torque jar file iteself) are required to be locally installed in each project. Instead, the plugin will automatically download any required resources for you. Installation
Currently you must manually build the plugin by checking out Torque from CVS
and running
ConfigurationThe Torque Maven plugin is configured via properties defined in your project.properties file. See the properties reference for details on the various properties that can be configured. project.properties
Instead of relying on the typical
The Torque settings in
Here is a sample configuration from
... other project settings... # ------------------------------------------------------------------- # # T O R Q U E S E T T I N G S # # ------------------------------------------------------------------- torque.project = yourproject torque.database = mysql torque.database.createUrl = jdbc:mysql://localhost:3306/ torque.database.buildUrl = jdbc:mysql://localhost:3306/yourprojectdb torque.database.url = jdbc:mysql://localhost:3306/yourprojectdb torque.database.driver = org.gjt.mm.mysql.Driver torque.database.user = user torque.database.password = password torque.database.host = localhost Other TipsIf you run into problems, try the following tips:
|