I'm using the torque plugin with a SNAPSHOT of torque, and it 'just works' for me.

My deps look like this:

<dependency>
      <groupId>torque</groupId>
      <artifactId>torque</artifactId>
      <version>SNAPSHOT</version>
      <url>http://db.apache.org/torque/</url>
      <properties>
        <war.bundle.jar>true</war.bundle.jar>
      </properties>
</dependency>

My project.properties:

# -------------------------------------------------------------------
#  TORQUE: GENERAL BUILD-TIME SETTINGS
# -------------------------------------------------------------------

torque.runOnlyOnSchemaChange    = false
torque.addTimeStamp             = false

# -------------------------------------------------------------------
#  TORQUE: BUILD-TIME PATH SETTINGS
# -------------------------------------------------------------------

torque.schema.dir               = src/schema
torque.sql.dir                  = src/sql
torque.java.dir                 = src/java
torque.lib.dir                  = ${maven.repo.local}
#torque.lib.dir                  = ${lib.repo}

# -------------------------------------------------------------------
#  TORQUE: BUILD-TIME DOCUMENTATION SETTINGS
# -------------------------------------------------------------------

torque.doc.dir                  = target/site
torque.doc.format               = html

# -------------------------------------------------------------------
#  TORQUE: OBJECT MODEL GENERATION SETTINGS
# -------------------------------------------------------------------
torque.addGetByNameMethod       = true
torque.addTimeStamp             = false
torque.addIntakeRetrievable     = false
torque.useManagers              = false

# -------------------------------------------------------------------
#  TORQUE: GENERAL RUN-TIME SETTINGS
# -------------------------------------------------------------------

torque.project              = foo
torque.database             = mysql

# -------------------------------------------------------------------
#  TORQUE: DEFAULT DATABASE
# -------------------------------------------------------------------

torque.database.default = middleware

# -------------------------------------------------------------------
#  TORQUE: MIDDLEWARE DATABASE
# -------------------------------------------------------------------

torque.database.middleware.adapter = mysql
torque.dsfactory.middleware.factory = org.apache.torque.dsfactory.Jdbc2PoolDataSourceFactory
torque.dsfactory.middleware.pool.defaultMaxActive = 10
torque.dsfactory.middleware.pool.testOnBorrow = true
torque.dsfactory.middleware.pool.validationQuery = SELECT 1
torque.dsfactory.middleware.connection.driver = com.mysql.jdbc.Driver
torque.dsfactory.middleware.connection.url = jdbc:mysql://127.0.0.1/middleware
torque.dsfactory.middleware.connection.user = u_wish
torque.dsfactory.middleware.connection.password = *****


Hope that helps.

Gabe


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to