Modified: db/torque/torque4/trunk/torque-test/pom.xml URL: http://svn.apache.org/viewvc/db/torque/torque4/trunk/torque-test/pom.xml?rev=1384187&r1=1384186&r2=1384187&view=diff ============================================================================== --- db/torque/torque4/trunk/torque-test/pom.xml (original) +++ db/torque/torque4/trunk/torque-test/pom.xml Thu Sep 13 02:08:40 2012 @@ -1,529 +1,529 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - Licensed to the Apache Software Foundation (ASF) under one - or more contributor license agreements. See the NOTICE file - distributed with this work for additional information - regarding copyright ownership. The ASF licenses this file - to you under the Apache License, Version 2.0 (the - "License"); you may not use this file except in compliance - with the License. You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, - software distributed under the License is distributed on an - "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - KIND, either express or implied. See the License for the - specific language governing permissions and limitations - under the License. ---> -<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> - <parent> - <groupId>org.apache.torque</groupId> - <artifactId>torque</artifactId> - <version>4.0-beta1-SNAPSHOT</version> - <relativePath>..</relativePath> - </parent> - - <modelVersion>4.0.0</modelVersion> - - <artifactId>torque-test</artifactId> - <packaging>jar</packaging> - <name>Torque Test Project</name> - - <scm> - <connection>scm:svn:http://svn.apache.org/repos/asf/db/torque/torque4/trunk/torque-test</connection> - <developerConnection>scm:svn:https://svn.apache.org/repos/asf/db/torque/torque4/trunk/torque-test</developerConnection> - <url>http://svn.apache.org/viewvc/db/torque/torque4/trunk/torque-test</url> - </scm> - - <dependencies> - <dependency> - <artifactId>junit</artifactId> - <groupId>junit</groupId> - <version>3.8.1</version> - <scope>test</scope> - </dependency> - <dependency> - <artifactId>torque-runtime</artifactId> - <groupId>org.apache.torque</groupId> - <version>${project.version}</version> - </dependency> - - <!-- jndi --> - <dependency> - <artifactId>naming-common</artifactId> - <groupId>tomcat</groupId> - <version>5.0.28</version> - <scope>test</scope> - </dependency> - <dependency> - <artifactId>naming-java</artifactId> - <groupId>tomcat</groupId> - <version>5.0.28</version> - <scope>test</scope> - </dependency> - - <!-- db driver --> - <dependency> - <artifactId>${torque.test.driver.artifactId}</artifactId> - <groupId>${torque.test.driver.groupId}</groupId> - <version>${torque.test.driver.version}</version> - <scope>test</scope> - </dependency> - - <!-- avalon --> - <dependency> - <groupId>avalon-framework</groupId> - <artifactId>avalon-framework-impl</artifactId> - <version>4.3</version> - <scope>test</scope> - </dependency> - <dependency> - <groupId>fulcrum</groupId> - <artifactId>fulcrum-testcontainer</artifactId> - <version>1.0.4</version> - <scope>test</scope> - </dependency> - <dependency> - <groupId>fulcrum</groupId> - <artifactId>fulcrum-yaafi</artifactId> - <version>1.0.3</version> - <scope>test</scope> - </dependency> - </dependencies> - - <build> - <plugins> - <plugin> - <artifactId>maven-antrun-plugin</artifactId> - <executions> - <execution> - <id>clean-generated-sources</id> - <phase>clean</phase> - <configuration> - <tasks> - <!-- remove old generated sources --> - <echo message="Deleting directory src/main/generated-java" /> - <delete dir="src/main/generated-java" /> - <echo message="Deleting directory target/torque" /> - <delete dir="target/torque" /> - </tasks> - </configuration> - <goals> - <goal>run</goal> - </goals> - </execution> - <execution> - <id>filter-schema</id> - <phase>generate-sources</phase> - <configuration> - <tasks> - <!-- schema files need to be copied to insert idMethod --> - <copy todir="target/torque/test/schema"> - <fileset dir="src/main/schema" /> - <filterset> - <filter token="DATABASE_DEFAULT" value="bookstore" /> - <filter token="DATABASE_ID_METHOD" value="${torque.test.idmethod}" /> - </filterset> - </copy> - <delete dir="target/torque/test/sql" /> - <copy todir="target/torque/test/sql"> - <fileset dir="src/test/sql" /> - </copy> - </tasks> - </configuration> - <goals> - <goal>run</goal> - </goals> - </execution> - </executions> - </plugin> - - <plugin> - <groupId>org.apache.torque</groupId> - <artifactId>torque-maven-plugin</artifactId> - <version>${project.version}</version> - <executions> - <execution> - <id>generate-sources</id> - <phase>generate-sources</phase> - <goals> - <goal>generate</goal> - </goals> - <configuration> - <packaging>classpath</packaging> - <configPackage>org.apache.torque.templates.om</configPackage> - <sourceDir>target/torque/test/schema</sourceDir> - <overrideConfigDir>src/main/torque-gen</overrideConfigDir> - <sourceExcludes> - <sourceExclude>ext*-schema.xml</sourceExclude> - <sourceExclude>included*-schema.xml</sourceExclude> - <sourceExclude>id-table-schema.xml</sourceExclude> - </sourceExcludes> - <optionsFile>torque-gen.properties</optionsFile> - <options> - <torque.om.useManagers>${torque.useManagers}</torque.om.useManagers> - <torque.om.generateBeans>${torque.generateBeans}</torque.om.generateBeans> - <torque.om.complexObjectModel.generateFillers>true</torque.om.complexObjectModel.generateFillers> - <torque.om.generateMapInit>true</torque.om.generateMapInit> - </options> - </configuration> - </execution> - <execution> - <id>generate-sql</id> - <phase>generate-sources</phase> - <goals> - <goal>generate</goal> - </goals> - <configuration> - <packaging>classpath</packaging> - <configPackage>org.apache.torque.templates.sql</configPackage> - <sourceDir>target/torque/test/schema</sourceDir> - <defaultOutputDir>target/generated-sql</defaultOutputDir> - <defaultOutputDirUsage>none</defaultOutputDirUsage> - <loglevel>info</loglevel> - <sourceExcludes> - <sourceExclude>ext*-schema.xml</sourceExclude> - <sourceExclude>included*-schema.xml</sourceExclude> - </sourceExcludes> - <options> - <torque.database>${torque.targetDatabase}</torque.database> - </options> - </configuration> - </execution> - <execution> - <id>generate-createdb-sql</id> - <phase>generate-sources</phase> - <goals> - <goal>generate</goal> - </goals> - <configuration> - <packaging>classpath</packaging> - <configPackage>org.apache.torque.templates.sql.createdb</configPackage> - <sourceDir>target/torque/test/schema</sourceDir> - <defaultOutputDir>target/generated-createdb-sql</defaultOutputDir> - <defaultOutputDirUsage>none</defaultOutputDirUsage> - <loglevel>info</loglevel> - <sourceExcludes> - <sourceExclude>ext*-schema.xml</sourceExclude> - <sourceExclude>included*-schema.xml</sourceExclude> - <sourceExclude>id-table-schema.xml</sourceExclude> - </sourceExcludes> - <options> - <torque.database>${torque.targetDatabase}</torque.database> - </options> - </configuration> - </execution> - <execution> - <id>generate-idtable-sql</id> - <phase>generate-sources</phase> - <goals> - <goal>generate</goal> - </goals> - <configuration> - <packaging>classpath</packaging> - <configPackage>org.apache.torque.templates.idtable</configPackage> - <sourceDir>target/torque/test/schema</sourceDir> - <defaultOutputDir>target/generated-sql</defaultOutputDir> - <defaultOutputDirUsage>none</defaultOutputDirUsage> - <loglevel>info</loglevel> - <options> - <torque.database>${torque.targetDatabase}</torque.database> - </options> - </configuration> - </execution> - <execution> - <id>generate-html-doc</id> - <phase>generate-sources</phase> - <goals> - <goal>generate</goal> - </goals> - <configuration> - <packaging>classpath</packaging> - <configPackage>org.apache.torque.templates.doc.html</configPackage> - <sourceDir>target/torque/test/schema</sourceDir> - <sourceExcludes> - <sourceExclude>ext*-schema.xml</sourceExclude> - <sourceExclude>included*-schema.xml</sourceExclude> - <sourceExclude>id-table-schema.xml</sourceExclude> - </sourceExcludes> - <defaultOutputDir>target/generated-docs</defaultOutputDir> - <defaultOutputDirUsage>none</defaultOutputDirUsage> - <options> - <torque.database>${torque.targetDatabase}</torque.database> - <torque.om.package>org.apache.torque.test</torque.om.package> - </options> - </configuration> - </execution> - <!-- execution> - <id>generate-schema-from-jdbc</id> - <phase>generate-test-sources</phase> - <goals> - <goal>generate</goal> - </goals> - <configuration> - <packaging>classpath</packaging> - <configPackage>org.apache.torque.templates.jdbc2schema</configPackage> - <defaultOutputDir>target/generated-schema</defaultOutputDir> - <defaultOutputDirUsage>none</defaultOutputDirUsage> - <loglevel>info</loglevel> - <options> - <torque.jdbc2schema.driver>${torque.driver}</torque.jdbc2schema.driver> - <torque.jdbc2schema.url>${torque.database.url}</torque.jdbc2schema.url> - <torque.jdbc2schema.user>${torque.database.user}</torque.jdbc2schema.user> - <torque.jdbc2schema.password>${torque.database.password}</torque.jdbc2schema.password> - </options> - </configuration> - </execution--> - <execution> - <id>generate-xdoc</id> - <phase>pre-site</phase> - <goals> - <goal>generate</goal> - </goals> - <configuration> - <packaging>classpath</packaging> - <configPackage>org.apache.torque.templates.doc.xdoc</configPackage> - <sourceDir>target/torque/test/schema</sourceDir> - <sourceExcludes> - <sourceExclude>ext*-schema.xml</sourceExclude> - <sourceExclude>included*-schema.xml</sourceExclude> - <sourceExclude>id-table-schema.xml</sourceExclude> - </sourceExcludes> - <defaultOutputDir>target/generated-xdocs</defaultOutputDir> - <defaultOutputDirUsage>none</defaultOutputDirUsage> - <options> - <torque.database>${torque.targetDatabase}</torque.database> - <torque.om.package>org.apache.torque.test</torque.om.package> - </options> - </configuration> - </execution> - </executions> - <dependencies> - <dependency> - <groupId>org.apache.torque</groupId> - <artifactId>torque-templates</artifactId> - <version>${project.version}</version> - </dependency> - <dependency> - <!-- for jdbc2schema only --> - <groupId>${torque.test.driver.groupId}</groupId> - <artifactId>${torque.test.driver.artifactId}</artifactId> - <version>${torque.test.driver.version}</version> - </dependency> - </dependencies> - </plugin> - - <plugin> - <groupId>org.codehaus.mojo</groupId> - <artifactId>sql-maven-plugin</artifactId> - <version>1.4</version> - <executions> - <execution> - <id>execute-ddl</id> - <phase>process-classes</phase> - <goals> - <goal>execute</goal> - </goals> - <configuration> - <driver>${torque.driver}</driver> - <url>${torque.database.url}</url> - <username>${torque.database.user}</username> - <password>${torque.database.password}</password> - <onError>continue</onError> - <autocommit>true</autocommit> - <orderFile>ascending</orderFile> - <fileset> - <basedir>${basedir}/target/generated-sql</basedir> - <includes> - <include>*.sql</include> - </includes> - <excludes> - <exclude>*idtable-init.sql</exclude> - </excludes> - </fileset> - </configuration> - </execution> - <execution> - <!-- - separate execution to make sure the idtable is filled - after it is created - --> - <id>execute-idtable-sql</id> - <phase>process-classes</phase> - <goals> - <goal>execute</goal> - </goals> - <configuration> - <driver>${torque.driver}</driver> - <url>${torque.database.url}</url> - <username>${torque.database.user}</username> - <password>${torque.database.password}</password> - <onError>continue</onError> - <autocommit>true</autocommit> - <orderFile>ascending</orderFile> - <fileset> - <basedir>${basedir}/target/generated-sql</basedir> - <includes> - <include>*idtable-init.sql</include> - </includes> - </fileset> - </configuration> - </execution> - <execution> - <id>shutdown-db-after-ddl</id> - <phase>process-classes</phase> - <goals> - <goal>execute</goal> - </goals> - <configuration> - <driver>${torque.driver}</driver> - <url>${torque.database.shutdown.url}</url> - <username>${torque.database.user}</username> - <password>${torque.database.password}</password> - <onError>continue</onError> - <autocommit>true</autocommit> - <skip>${torque.database.shutdown.skip}</skip> - <skipOnConnectionError>true</skipOnConnectionError> - </configuration> - </execution> - </executions> - <dependencies> - <dependency> - <groupId>${torque.test.driver.groupId}</groupId> - <artifactId>${torque.test.driver.artifactId}</artifactId> - <version>${torque.test.driver.version}</version> - </dependency> - </dependencies> - </plugin> - - <plugin> - <groupId>org.apache.maven.plugins</groupId> - <artifactId>maven-surefire-plugin</artifactId> - <configuration> - <includes> - <include>**/*Test.java</include> - <include>**/${torque.test.include.beans}</include> - <include>**/${torque.test.include.managers}</include> - </includes> - <excludes> - <exclude>**/BaseRuntimeTestCase.java</exclude> - </excludes> - <forkMode>pertest</forkMode> - <systemProperties> - <property> - <name>torque.configuration.file</name> - <value>src/test/profile/${torque.test.profileDirectory}/Torque.properties</value> - </property> - </systemProperties> - </configuration> - </plugin> - - <plugin> - <groupId>org.apache.maven.plugins</groupId> - <artifactId>maven-compiler-plugin</artifactId> - <configuration> - <source>1.5</source> - <target>1.5</target> - <testIncludes> - <include>**/*Test.java</include> - <include>**/*TestCase.java</include> - <include>**/*Tools.java</include> - <include>**/*SchemaData.java</include> - <include>**/InheritanceClassnameTestChild*.java</include> - <include>**/${torque.test.include.beans}</include> - <include>**/${torque.test.include.managers}</include> - </testIncludes> - <!-- TODO: remove testExcludes once SQLToAppDataRuntimeTest works --> - <testExcludes> - <exclude>**/SQLToAppDataRuntimeTest.java</exclude> - </testExcludes> - </configuration> - </plugin> - - <plugin> - <artifactId>maven-site-plugin</artifactId> - <groupId>org.apache.maven.plugins</groupId> - <configuration> - <xdocDirectory>target/generated-xdocs</xdocDirectory> - </configuration> - </plugin> - - <plugin> - <groupId>org.apache.rat</groupId> - <artifactId>apache-rat-plugin</artifactId> - <configuration> - <excludes> - <exclude>velocity.log</exclude> - <exclude>.checkstyle</exclude> - <exclude>checkstyle-cache.ccf</exclude> - <exclude>derby.log</exclude> - <exclude>src/main/generated-java/**/*</exclude> - </excludes> - </configuration> - <executions> - <execution> - <phase>verify</phase> - <goals> - <goal>check</goal> - </goals> - </execution> - </executions> - </plugin> - </plugins> - </build> - - <profiles> - <profile> - <!-- - derby profile with default settings. - To be run from within the test project using "mvn -PderbyEmbedded test". - --> - <id>derbyEmbedded</id> - <activation> - <activeByDefault>false</activeByDefault> - </activation> - <properties> - <torque.test.profileDirectory>derbyEmbedded</torque.test.profileDirectory> - <torque.test.idmethod>native</torque.test.idmethod> - <torque.test.driver.artifactId>derby</torque.test.driver.artifactId> - <torque.test.driver.groupId>org.apache.derby</torque.test.driver.groupId> - <torque.test.driver.version>10.8.2.2</torque.test.driver.version> - <torque.driver>org.apache.derby.jdbc.EmbeddedDriver</torque.driver> - <torque.targetDatabase>derby</torque.targetDatabase> - <torque.database.url>jdbc:derby:target/bookstore;create=true</torque.database.url> - <torque.database.user /> - <torque.database.password /> - <torque.database.shutdown.url>jdbc:derby:target/bookstore;shutdown=true</torque.database.shutdown.url> - <torque.database.shutdown.skip>false</torque.database.shutdown.skip> - </properties> - </profile> - - <profile> - <!-- - hsqldb profile with beans and managers. Can only be run from - parent project with "mvn -Ptest,hsqldb install" because database url - is adjusted to this start location - --> - <id>hsqldb</id> - <activation> - <activeByDefault>false</activeByDefault> - </activation> - <properties> - <torque.test.profileDirectory>hsqldb</torque.test.profileDirectory> - <torque.test.idmethod>idbroker</torque.test.idmethod> - <torque.test.driver.artifactId>hsqldb</torque.test.driver.artifactId> - <torque.test.driver.groupId>org.hsqldb</torque.test.driver.groupId> - <torque.test.driver.version>2.2.6</torque.test.driver.version> - <torque.driver>org.hsqldb.jdbcDriver</torque.driver> - <torque.targetDatabase>hsqldb</torque.targetDatabase> - <torque.database.url>jdbc:hsqldb:torque-test/target/sqltest;shutdown=true</torque.database.url> - <torque.database.user>sa</torque.database.user> - <torque.database.password /> - <torque.database.shutdown.url>none</torque.database.shutdown.url> - <torque.database.shutdown.skip>true</torque.database.shutdown.skip> - </properties> - </profile> - </profiles> -</project> +<?xml version="1.0" encoding="UTF-8"?> +<!-- + Licensed to the Apache Software Foundation (ASF) under one + or more contributor license agreements. See the NOTICE file + distributed with this work for additional information + regarding copyright ownership. The ASF licenses this file + to you under the Apache License, Version 2.0 (the + "License"); you may not use this file except in compliance + with the License. You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, + software distributed under the License is distributed on an + "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + KIND, either express or implied. See the License for the + specific language governing permissions and limitations + under the License. +--> +<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> + <parent> + <groupId>org.apache.torque</groupId> + <artifactId>torque</artifactId> + <version>4.0-beta1</version> + <relativePath>..</relativePath> + </parent> + + <modelVersion>4.0.0</modelVersion> + + <artifactId>torque-test</artifactId> + <packaging>jar</packaging> + <name>Torque Test Project</name> + + <scm> + <connection>scm:svn:http://svn.apache.org/repos/asf/db/torque/torque4/tags/torque-4.0-beta1/torque-test</connection> + <developerConnection>scm:svn:https://svn.apache.org/repos/asf/db/torque/torque4/tags/torque-4.0-beta1/torque-test</developerConnection> + <url>http://svn.apache.org/viewvc/db/torque/torque4/tags/torque-4.0-beta1/torque-test</url> + </scm> + + <dependencies> + <dependency> + <artifactId>junit</artifactId> + <groupId>junit</groupId> + <version>3.8.1</version> + <scope>test</scope> + </dependency> + <dependency> + <artifactId>torque-runtime</artifactId> + <groupId>org.apache.torque</groupId> + <version>${project.version}</version> + </dependency> + + <!-- jndi --> + <dependency> + <artifactId>naming-common</artifactId> + <groupId>tomcat</groupId> + <version>5.0.28</version> + <scope>test</scope> + </dependency> + <dependency> + <artifactId>naming-java</artifactId> + <groupId>tomcat</groupId> + <version>5.0.28</version> + <scope>test</scope> + </dependency> + + <!-- db driver --> + <dependency> + <artifactId>${torque.test.driver.artifactId}</artifactId> + <groupId>${torque.test.driver.groupId}</groupId> + <version>${torque.test.driver.version}</version> + <scope>test</scope> + </dependency> + + <!-- avalon --> + <dependency> + <groupId>avalon-framework</groupId> + <artifactId>avalon-framework-impl</artifactId> + <version>4.3</version> + <scope>test</scope> + </dependency> + <dependency> + <groupId>fulcrum</groupId> + <artifactId>fulcrum-testcontainer</artifactId> + <version>1.0.4</version> + <scope>test</scope> + </dependency> + <dependency> + <groupId>fulcrum</groupId> + <artifactId>fulcrum-yaafi</artifactId> + <version>1.0.3</version> + <scope>test</scope> + </dependency> + </dependencies> + + <build> + <plugins> + <plugin> + <artifactId>maven-antrun-plugin</artifactId> + <executions> + <execution> + <id>clean-generated-sources</id> + <phase>clean</phase> + <configuration> + <tasks> + <!-- remove old generated sources --> + <echo message="Deleting directory src/main/generated-java" /> + <delete dir="src/main/generated-java" /> + <echo message="Deleting directory target/torque" /> + <delete dir="target/torque" /> + </tasks> + </configuration> + <goals> + <goal>run</goal> + </goals> + </execution> + <execution> + <id>filter-schema</id> + <phase>generate-sources</phase> + <configuration> + <tasks> + <!-- schema files need to be copied to insert idMethod --> + <copy todir="target/torque/test/schema"> + <fileset dir="src/main/schema" /> + <filterset> + <filter token="DATABASE_DEFAULT" value="bookstore" /> + <filter token="DATABASE_ID_METHOD" value="${torque.test.idmethod}" /> + </filterset> + </copy> + <delete dir="target/torque/test/sql" /> + <copy todir="target/torque/test/sql"> + <fileset dir="src/test/sql" /> + </copy> + </tasks> + </configuration> + <goals> + <goal>run</goal> + </goals> + </execution> + </executions> + </plugin> + + <plugin> + <groupId>org.apache.torque</groupId> + <artifactId>torque-maven-plugin</artifactId> + <version>${project.version}</version> + <executions> + <execution> + <id>generate-sources</id> + <phase>generate-sources</phase> + <goals> + <goal>generate</goal> + </goals> + <configuration> + <packaging>classpath</packaging> + <configPackage>org.apache.torque.templates.om</configPackage> + <sourceDir>target/torque/test/schema</sourceDir> + <overrideConfigDir>src/main/torque-gen</overrideConfigDir> + <sourceExcludes> + <sourceExclude>ext*-schema.xml</sourceExclude> + <sourceExclude>included*-schema.xml</sourceExclude> + <sourceExclude>id-table-schema.xml</sourceExclude> + </sourceExcludes> + <optionsFile>torque-gen.properties</optionsFile> + <options> + <torque.om.useManagers>${torque.useManagers}</torque.om.useManagers> + <torque.om.generateBeans>${torque.generateBeans}</torque.om.generateBeans> + <torque.om.complexObjectModel.generateFillers>true</torque.om.complexObjectModel.generateFillers> + <torque.om.generateMapInit>true</torque.om.generateMapInit> + </options> + </configuration> + </execution> + <execution> + <id>generate-sql</id> + <phase>generate-sources</phase> + <goals> + <goal>generate</goal> + </goals> + <configuration> + <packaging>classpath</packaging> + <configPackage>org.apache.torque.templates.sql</configPackage> + <sourceDir>target/torque/test/schema</sourceDir> + <defaultOutputDir>target/generated-sql</defaultOutputDir> + <defaultOutputDirUsage>none</defaultOutputDirUsage> + <loglevel>info</loglevel> + <sourceExcludes> + <sourceExclude>ext*-schema.xml</sourceExclude> + <sourceExclude>included*-schema.xml</sourceExclude> + </sourceExcludes> + <options> + <torque.database>${torque.targetDatabase}</torque.database> + </options> + </configuration> + </execution> + <execution> + <id>generate-createdb-sql</id> + <phase>generate-sources</phase> + <goals> + <goal>generate</goal> + </goals> + <configuration> + <packaging>classpath</packaging> + <configPackage>org.apache.torque.templates.sql.createdb</configPackage> + <sourceDir>target/torque/test/schema</sourceDir> + <defaultOutputDir>target/generated-createdb-sql</defaultOutputDir> + <defaultOutputDirUsage>none</defaultOutputDirUsage> + <loglevel>info</loglevel> + <sourceExcludes> + <sourceExclude>ext*-schema.xml</sourceExclude> + <sourceExclude>included*-schema.xml</sourceExclude> + <sourceExclude>id-table-schema.xml</sourceExclude> + </sourceExcludes> + <options> + <torque.database>${torque.targetDatabase}</torque.database> + </options> + </configuration> + </execution> + <execution> + <id>generate-idtable-sql</id> + <phase>generate-sources</phase> + <goals> + <goal>generate</goal> + </goals> + <configuration> + <packaging>classpath</packaging> + <configPackage>org.apache.torque.templates.idtable</configPackage> + <sourceDir>target/torque/test/schema</sourceDir> + <defaultOutputDir>target/generated-sql</defaultOutputDir> + <defaultOutputDirUsage>none</defaultOutputDirUsage> + <loglevel>info</loglevel> + <options> + <torque.database>${torque.targetDatabase}</torque.database> + </options> + </configuration> + </execution> + <execution> + <id>generate-html-doc</id> + <phase>generate-sources</phase> + <goals> + <goal>generate</goal> + </goals> + <configuration> + <packaging>classpath</packaging> + <configPackage>org.apache.torque.templates.doc.html</configPackage> + <sourceDir>target/torque/test/schema</sourceDir> + <sourceExcludes> + <sourceExclude>ext*-schema.xml</sourceExclude> + <sourceExclude>included*-schema.xml</sourceExclude> + <sourceExclude>id-table-schema.xml</sourceExclude> + </sourceExcludes> + <defaultOutputDir>target/generated-docs</defaultOutputDir> + <defaultOutputDirUsage>none</defaultOutputDirUsage> + <options> + <torque.database>${torque.targetDatabase}</torque.database> + <torque.om.package>org.apache.torque.test</torque.om.package> + </options> + </configuration> + </execution> + <!-- execution> + <id>generate-schema-from-jdbc</id> + <phase>generate-test-sources</phase> + <goals> + <goal>generate</goal> + </goals> + <configuration> + <packaging>classpath</packaging> + <configPackage>org.apache.torque.templates.jdbc2schema</configPackage> + <defaultOutputDir>target/generated-schema</defaultOutputDir> + <defaultOutputDirUsage>none</defaultOutputDirUsage> + <loglevel>info</loglevel> + <options> + <torque.jdbc2schema.driver>${torque.driver}</torque.jdbc2schema.driver> + <torque.jdbc2schema.url>${torque.database.url}</torque.jdbc2schema.url> + <torque.jdbc2schema.user>${torque.database.user}</torque.jdbc2schema.user> + <torque.jdbc2schema.password>${torque.database.password}</torque.jdbc2schema.password> + </options> + </configuration> + </execution--> + <execution> + <id>generate-xdoc</id> + <phase>pre-site</phase> + <goals> + <goal>generate</goal> + </goals> + <configuration> + <packaging>classpath</packaging> + <configPackage>org.apache.torque.templates.doc.xdoc</configPackage> + <sourceDir>target/torque/test/schema</sourceDir> + <sourceExcludes> + <sourceExclude>ext*-schema.xml</sourceExclude> + <sourceExclude>included*-schema.xml</sourceExclude> + <sourceExclude>id-table-schema.xml</sourceExclude> + </sourceExcludes> + <defaultOutputDir>target/generated-xdocs</defaultOutputDir> + <defaultOutputDirUsage>none</defaultOutputDirUsage> + <options> + <torque.database>${torque.targetDatabase}</torque.database> + <torque.om.package>org.apache.torque.test</torque.om.package> + </options> + </configuration> + </execution> + </executions> + <dependencies> + <dependency> + <groupId>org.apache.torque</groupId> + <artifactId>torque-templates</artifactId> + <version>${project.version}</version> + </dependency> + <dependency> + <!-- for jdbc2schema only --> + <groupId>${torque.test.driver.groupId}</groupId> + <artifactId>${torque.test.driver.artifactId}</artifactId> + <version>${torque.test.driver.version}</version> + </dependency> + </dependencies> + </plugin> + + <plugin> + <groupId>org.codehaus.mojo</groupId> + <artifactId>sql-maven-plugin</artifactId> + <version>1.4</version> + <executions> + <execution> + <id>execute-ddl</id> + <phase>process-classes</phase> + <goals> + <goal>execute</goal> + </goals> + <configuration> + <driver>${torque.driver}</driver> + <url>${torque.database.url}</url> + <username>${torque.database.user}</username> + <password>${torque.database.password}</password> + <onError>continue</onError> + <autocommit>true</autocommit> + <orderFile>ascending</orderFile> + <fileset> + <basedir>${basedir}/target/generated-sql</basedir> + <includes> + <include>*.sql</include> + </includes> + <excludes> + <exclude>*idtable-init.sql</exclude> + </excludes> + </fileset> + </configuration> + </execution> + <execution> + <!-- + separate execution to make sure the idtable is filled + after it is created + --> + <id>execute-idtable-sql</id> + <phase>process-classes</phase> + <goals> + <goal>execute</goal> + </goals> + <configuration> + <driver>${torque.driver}</driver> + <url>${torque.database.url}</url> + <username>${torque.database.user}</username> + <password>${torque.database.password}</password> + <onError>continue</onError> + <autocommit>true</autocommit> + <orderFile>ascending</orderFile> + <fileset> + <basedir>${basedir}/target/generated-sql</basedir> + <includes> + <include>*idtable-init.sql</include> + </includes> + </fileset> + </configuration> + </execution> + <execution> + <id>shutdown-db-after-ddl</id> + <phase>process-classes</phase> + <goals> + <goal>execute</goal> + </goals> + <configuration> + <driver>${torque.driver}</driver> + <url>${torque.database.shutdown.url}</url> + <username>${torque.database.user}</username> + <password>${torque.database.password}</password> + <onError>continue</onError> + <autocommit>true</autocommit> + <skip>${torque.database.shutdown.skip}</skip> + <skipOnConnectionError>true</skipOnConnectionError> + </configuration> + </execution> + </executions> + <dependencies> + <dependency> + <groupId>${torque.test.driver.groupId}</groupId> + <artifactId>${torque.test.driver.artifactId}</artifactId> + <version>${torque.test.driver.version}</version> + </dependency> + </dependencies> + </plugin> + + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-surefire-plugin</artifactId> + <configuration> + <includes> + <include>**/*Test.java</include> + <include>**/${torque.test.include.beans}</include> + <include>**/${torque.test.include.managers}</include> + </includes> + <excludes> + <exclude>**/BaseRuntimeTestCase.java</exclude> + </excludes> + <forkMode>pertest</forkMode> + <systemProperties> + <property> + <name>torque.configuration.file</name> + <value>src/test/profile/${torque.test.profileDirectory}/Torque.properties</value> + </property> + </systemProperties> + </configuration> + </plugin> + + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-compiler-plugin</artifactId> + <configuration> + <source>1.5</source> + <target>1.5</target> + <testIncludes> + <include>**/*Test.java</include> + <include>**/*TestCase.java</include> + <include>**/*Tools.java</include> + <include>**/*SchemaData.java</include> + <include>**/InheritanceClassnameTestChild*.java</include> + <include>**/${torque.test.include.beans}</include> + <include>**/${torque.test.include.managers}</include> + </testIncludes> + <!-- TODO: remove testExcludes once SQLToAppDataRuntimeTest works --> + <testExcludes> + <exclude>**/SQLToAppDataRuntimeTest.java</exclude> + </testExcludes> + </configuration> + </plugin> + + <plugin> + <artifactId>maven-site-plugin</artifactId> + <groupId>org.apache.maven.plugins</groupId> + <configuration> + <xdocDirectory>target/generated-xdocs</xdocDirectory> + </configuration> + </plugin> + + <plugin> + <groupId>org.apache.rat</groupId> + <artifactId>apache-rat-plugin</artifactId> + <configuration> + <excludes> + <exclude>velocity.log</exclude> + <exclude>.checkstyle</exclude> + <exclude>checkstyle-cache.ccf</exclude> + <exclude>derby.log</exclude> + <exclude>src/main/generated-java/**/*</exclude> + </excludes> + </configuration> + <executions> + <execution> + <phase>verify</phase> + <goals> + <goal>check</goal> + </goals> + </execution> + </executions> + </plugin> + </plugins> + </build> + + <profiles> + <profile> + <!-- + derby profile with default settings. + To be run from within the test project using "mvn -PderbyEmbedded test". + --> + <id>derbyEmbedded</id> + <activation> + <activeByDefault>false</activeByDefault> + </activation> + <properties> + <torque.test.profileDirectory>derbyEmbedded</torque.test.profileDirectory> + <torque.test.idmethod>native</torque.test.idmethod> + <torque.test.driver.artifactId>derby</torque.test.driver.artifactId> + <torque.test.driver.groupId>org.apache.derby</torque.test.driver.groupId> + <torque.test.driver.version>10.8.2.2</torque.test.driver.version> + <torque.driver>org.apache.derby.jdbc.EmbeddedDriver</torque.driver> + <torque.targetDatabase>derby</torque.targetDatabase> + <torque.database.url>jdbc:derby:target/bookstore;create=true</torque.database.url> + <torque.database.user /> + <torque.database.password /> + <torque.database.shutdown.url>jdbc:derby:target/bookstore;shutdown=true</torque.database.shutdown.url> + <torque.database.shutdown.skip>false</torque.database.shutdown.skip> + </properties> + </profile> + + <profile> + <!-- + hsqldb profile with beans and managers. Can only be run from + parent project with "mvn -Ptest,hsqldb install" because database url + is adjusted to this start location + --> + <id>hsqldb</id> + <activation> + <activeByDefault>false</activeByDefault> + </activation> + <properties> + <torque.test.profileDirectory>hsqldb</torque.test.profileDirectory> + <torque.test.idmethod>idbroker</torque.test.idmethod> + <torque.test.driver.artifactId>hsqldb</torque.test.driver.artifactId> + <torque.test.driver.groupId>org.hsqldb</torque.test.driver.groupId> + <torque.test.driver.version>2.2.6</torque.test.driver.version> + <torque.driver>org.hsqldb.jdbcDriver</torque.driver> + <torque.targetDatabase>hsqldb</torque.targetDatabase> + <torque.database.url>jdbc:hsqldb:torque-test/target/sqltest;shutdown=true</torque.database.url> + <torque.database.user>sa</torque.database.user> + <torque.database.password /> + <torque.database.shutdown.url>none</torque.database.shutdown.url> + <torque.database.shutdown.skip>true</torque.database.shutdown.skip> + </properties> + </profile> + </profiles> +</project>
--------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
