db-torque-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Thomas Fischer <fisc...@seitenbau.net>
Subject RE: maven 2 plugin
Date Fri, 20 Jun 2008 07:28:55 GMT
As I understand it, one does not add the plugin more than once, but one
specifies more than one executions for the same plugin. Check the maven
documentation.

     Thomas

>         <!--   Adding torque plugin 2 for database access -->
>                    <plugin>
>                   <groupId>org.apache.db.torque</groupId>
>                   <artifactId>torque-maven-plugin</artifactId>
>                   <configuration>
>                         <targetDatabase>mysql</targetDatabase>
>                         <targetPackage></targetPackage>
>                         <driver>org.gjt.mm.mysql.Driver</driver>
>                         <url>jdbc:mysql://localhost:3306/bookstore</url>
>                         <user>root</user>
>                         <password>1234</password>
>                   </configuration>
>                   <executions>
>                         <execution>
>                           <phase>generate-sources</phase>
>                           <goals>
>                              <goal>om</goal>
>                           <goal>documentation</goal>
>                                    </goals>
>                         </execution>
>                   </executions>
>                   <dependencies>
>                         <dependency>
>                           <artifactId>mysql-connector-java</artifactId>
>                           <groupId>mysql</groupId>
>                           <version>3.1.12</version>
>                           <type>jar</type>
>                         </dependency>
>                   </dependencies>
>                 </plugin>
>         <!--  End of torque plugin 2 for database access -->
>
>
>         <!--   Adding torque plugin for database access -->
>                    <plugin>
>                   <groupId>org.apache.db.torque</groupId>
>                   <artifactId>torque-maven-plugin</artifactId>
>                   <configuration>
>                         <targetDatabase>mysql</targetDatabase>
>                         <targetPackage></targetPackage>
>                         <driver>org.gjt.mm.mysql.Driver</driver>
>
<url>jdbc:mysql://192.168.41.116:3306/bookstore2</url>
>                         <user>root</user>
>                         <password>root</password>
>                   </configuration>
>                   <executions>
>                         <execution>
>                           <phase>generate-sources</phase>
>                             <goals>
>                              <goal>om</goal>
>                           <goal>documentation</goal>
>                                    </goals>
>                         </execution>
>                   </executions>
>                   <dependencies>
>                         <dependency>
>                           <artifactId>mysql-connector-java</artifactId>
>                           <groupId>mysql</groupId>
>                           <version>3.1.12</version>
>                           <type>jar</type>
>                         </dependency>
>                   </dependencies>
>                 </plugin>
>         <!--  End of torque plugin for database access -->
>


---------------------------------------------------------------------
To unsubscribe, e-mail: torque-dev-unsubscribe@db.apache.org
For additional commands, e-mail: torque-dev-help@db.apache.org


Mime
View raw message