| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113 |
- <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/xsd/maven-4.0.0.xsd">
- <modelVersion>4.0.0</modelVersion>
- <name>Activiti - Engine</name>
- <artifactId>activiti-engine</artifactId>
- <parent>
- <groupId>org.activiti</groupId>
- <artifactId>activiti-parent</artifactId>
- <version>6.1.0</version>
- <relativePath>../activiti-parent</relativePath>
- </parent>
- <properties>
- <activiti.artifact>
- org.activiti.engine
- </activiti.artifact>
- <activiti.osgi.export.additional>
- org.activiti.db.mapping.entity
- </activiti.osgi.export.additional>
- <activiti.osgi.import.additional>
- junit*;resolution:=optional,
- org.junit*;resolution:=optional,
- com.sun*;resolution:=optional,
- javax.activation*;resolution:=optional,
- javax.persistence*;resolution:=optional,
- org.apache.commons.mail*;resolution:=optional,
- org.activiti.camel;resolution:=optional,
- org.activiti.camel.impl;resolution:=optional,
- org.springframework*;resolution:=optional,
- org.drools*;resolution:=optional,
- com.fasterxml*;resolution:=optional,
- javax.transaction;resolution:=optional,
- javax.enterprise.concurrent;resolution:=optional,
- </activiti.osgi.import.additional>
- </properties>
- <dependencies>
- <dependency>
- <groupId>org.activiti</groupId>
- <artifactId>activiti-bpmn-converter</artifactId>
- </dependency>
- <dependency>
- <groupId>org.activiti</groupId>
- <artifactId>activiti-process-validation</artifactId>
- </dependency>
- <dependency>
- <groupId>org.activiti</groupId>
- <artifactId>activiti-image-generator</artifactId>
- </dependency>
- <dependency>
- <groupId>org.apache.commons</groupId>
- <artifactId>commons-email</artifactId>
- </dependency>
- <dependency>
- <groupId>org.apache.commons</groupId>
- <artifactId>commons-lang3</artifactId>
- </dependency>
- <dependency>
- <groupId>org.mybatis</groupId>
- <artifactId>mybatis</artifactId>
- </dependency>
- <dependency>
- <groupId>org.springframework</groupId>
- <artifactId>spring-beans</artifactId>
- </dependency>
- <dependency>
- <groupId>de.odysseus.juel</groupId>
- <artifactId>juel-api</artifactId>
- </dependency>
- <dependency>
- <groupId>de.odysseus.juel</groupId>
- <artifactId>juel-impl</artifactId>
- </dependency>
- <dependency>
- <groupId>de.odysseus.juel</groupId>
- <artifactId>juel-spi</artifactId>
- </dependency>
- <dependency>
- <groupId>junit</groupId>
- <artifactId>junit</artifactId>
- <scope>provided</scope>
- </dependency>
- <dependency>
- <groupId>org.codehaus.groovy</groupId>
- <artifactId>groovy</artifactId>
- <scope>provided</scope>
- </dependency>
- <dependency>
- <groupId>org.codehaus.groovy</groupId>
- <artifactId>groovy-jsr223</artifactId>
- <scope>provided</scope>
- </dependency>
- <dependency>
- <groupId>org.assertj</groupId>
- <artifactId>assertj-core</artifactId>
- <scope>provided</scope>
- </dependency>
- <dependency>
- <groupId>org.drools</groupId>
- <artifactId>drools-core</artifactId>
- <scope>provided</scope>
- </dependency>
- <dependency>
- <groupId>org.drools</groupId>
- <artifactId>drools-compiler</artifactId>
- <scope>provided</scope>
- </dependency>
-
- <dependency>
- <groupId>com.microsoft.sqlserver</groupId>
- <artifactId>sqljdbc4</artifactId>
- <scope>provided</scope>
- </dependency>
-
- <dependency>
- <groupId>org.drools</groupId>
- <artifactId>drools-mvel</artifactId>
- <scope>provided</scope>
- </dependency>
-
- <dependency>
- <groupId>javax.persistence</groupId>
- <artifactId>javax.persistence-api</artifactId>
- <scope>provided</scope>
- </dependency>
- <dependency>
- <groupId>org.apache.geronimo.specs</groupId>
- <artifactId>geronimo-jta_1.1_spec</artifactId>
- <scope>provided</scope>
- </dependency>
- <dependency>
- <groupId>javax.enterprise.concurrent</groupId>
- <artifactId>javax.enterprise.concurrent-api</artifactId>
- <scope>provided</scope>
- </dependency>
- <dependency>
- <groupId>com.h2database</groupId>
- <artifactId>h2</artifactId>
- <scope>test</scope>
- </dependency>
- <dependency>
- <groupId>org.mockito</groupId>
- <artifactId>mockito-core</artifactId>
- <scope>test</scope>
- </dependency>
-
- <dependency>
- <groupId>org.hibernate</groupId>
- <artifactId>hibernate-core</artifactId>
- <scope>test</scope>
- </dependency>
-
- <dependency>
- <groupId>org.hibernate</groupId>
- <artifactId>hibernate-entitymanager</artifactId>
- <scope>test</scope>
- </dependency>
-
- <dependency>
- <groupId>org.subethamail</groupId>
- <artifactId>subethasmtp-wiser</artifactId>
- <scope>test</scope>
- </dependency>
- <dependency>
- <groupId>mysql</groupId>
- <artifactId>mysql-connector-java</artifactId>
- <scope>test</scope>
- </dependency>
- <dependency>
- <groupId>org.postgresql</groupId>
- <artifactId>postgresql</artifactId>
- <scope>test</scope>
- </dependency>
- <dependency>
- <groupId>net.sourceforge.jtds</groupId>
- <artifactId>jtds</artifactId>
- <scope>test</scope>
- </dependency>
- <dependency>
- <groupId>com.fasterxml.uuid</groupId>
- <artifactId>java-uuid-generator</artifactId>
- <scope>provided</scope>
- </dependency>
- <dependency>
- <groupId>commons-io</groupId>
- <artifactId>commons-io</artifactId>
- <scope>test</scope>
- </dependency>
- <dependency>
- <groupId>joda-time</groupId>
- <artifactId>joda-time</artifactId>
- </dependency>
- <dependency>
- <groupId>org.slf4j</groupId>
- <artifactId>slf4j-api</artifactId>
- </dependency>
- <dependency>
- <groupId>org.slf4j</groupId>
- <artifactId>jcl-over-slf4j</artifactId>
- </dependency>
- <dependency>
- <groupId>ch.qos.logback</groupId>
- <artifactId>logback-classic</artifactId>
- <scope>test</scope>
- </dependency>
- <!-- Required for testing JTA -->
- <dependency>
- <groupId>org.codehaus.btm</groupId>
- <artifactId>btm</artifactId>
- <scope>test</scope>
- </dependency>
- </dependencies>
- <build>
- <plugins>
- <plugin>
- <artifactId>maven-surefire-plugin</artifactId>
- <configuration>
- <excludes>
- <exclude>**/*TestCase.java</exclude>
- <exclude>**/RepeatingServiceTaskTest.java</exclude>
- </excludes>
- <runOrder>alphabetical</runOrder>
- </configuration>
- </plugin>
- <plugin>
- <artifactId>maven-jar-plugin</artifactId>
- <configuration>
- <archive>
- <manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile>
- </archive>
- </configuration>
- </plugin>
- <plugin>
- <groupId>org.apache.felix</groupId>
- <artifactId>maven-bundle-plugin</artifactId>
- <executions>
- <execution>
- <phase>generate-sources</phase>
- <goals>
- <goal>cleanVersions</goal>
- </goals>
- </execution>
- <execution>
- <id>bundle-manifest</id>
- <phase>process-classes</phase>
- <goals>
- <goal>manifest</goal>
- </goals>
- </execution>
- </executions>
- </plugin>
- </plugins>
- <pluginManagement>
- <plugins>
- <!--This plugin's configuration is used to store Eclipse m2e settings
- only. It has no influence on the Maven build itself. -->
- <plugin>
- <groupId>org.eclipse.m2e</groupId>
- <artifactId>lifecycle-mapping</artifactId>
- <version>1.0.0</version>
- <configuration>
- <lifecycleMappingMetadata>
- <pluginExecutions>
- <pluginExecution>
- <pluginExecutionFilter>
- <groupId>org.apache.felix</groupId>
- <artifactId>
- maven-bundle-plugin
- </artifactId>
- <versionRange>
- [2.1.0,)
- </versionRange>
- <goals>
- <goal>cleanVersions</goal>
- <goal>manifest</goal>
- </goals>
- </pluginExecutionFilter>
- <action>
- <ignore></ignore>
- </action>
- </pluginExecution>
- </pluginExecutions>
- </lifecycleMappingMetadata>
- </configuration>
- </plugin>
- </plugins>
- </pluginManagement>
- </build>
- <profiles>
- <profile>
- <id>checkspring</id>
- <properties>
- <skipTests>true</skipTests>
- </properties>
- </profile>
- <profile>
- <id>create-test-jar</id>
- <build>
- <plugins>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-jar-plugin</artifactId>
- <version>2.2</version>
- <executions>
- <execution>
- <goals>
- <goal>test-jar</goal>
- </goals>
- </execution>
- </executions>
- </plugin>
- </plugins>
- </build>
- </profile>
- <profile>
- <id>upgradeDatabase</id>
- <activation>
- <property>
- <name>upgradeDatabase</name>
- </property>
- </activation>
- <properties>
- <skipTests>true</skipTests>
- </properties>
- </profile>
- <profile>
- <id>distro</id>
- <build>
- <plugins>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-source-plugin</artifactId>
- <executions>
- <execution>
- <id>attach-sources</id>
- <phase>package</phase>
- <goals>
- <goal>jar-no-fork</goal>
- </goals>
- </execution>
- </executions>
- </plugin>
- </plugins>
- </build>
- </profile>
- <!-- database qa profile -->
- <profile>
- <id>database</id>
- <activation>
- <property>
- <name>database</name>
- </property>
- </activation>
- <build>
- <plugins>
- <plugin>
- <artifactId>maven-antrun-plugin</artifactId>
- <!-- only worked with this version, there might be a bug with antrun
- see http://jira.codehaus.org/browse/MANTRUN-109 -->
- <version>1.4</version>
- <executions>
- <execution>
- <id>database-test-create-schema</id>
- <phase>process-test-classes</phase>
- <goals>
- <goal>run</goal>
- </goals>
- <configuration>
- <tasks>
- <echo message="updating activiti configuration to db ${database}" />
- <copy file="${basedir}/../../qa/db/activiti.cfg.xml"
- todir="target/test-classes" overwrite="true">
- <filterset
- filtersfile="${user.home}/.activiti/jdbc/build.activiti6.${database}.properties" />
- </copy>
- </tasks>
- </configuration>
- </execution>
- <execution>
- <id>database-test-drop-schema</id>
- <phase>prepare-package</phase>
- <goals>
- <goal>run</goal>
- </goals>
- <configuration>
- <tasks>
- <echo message="dropping schema in ${database}" />
- <java classname="org.activiti.engine.impl.db.DbSchemaDrop"
- classpathref="maven.test.classpath" />
- </tasks>
- </configuration>
- </execution>
- </executions>
- </plugin>
- </plugins>
- </build>
- </profile>
- <profile>
- <id>databasewithschema</id>
- <activation>
- <property>
- <name>databasewithschema</name>
- </property>
- </activation>
- <build>
- <plugins>
- <plugin>
- <artifactId>maven-antrun-plugin</artifactId>
- <!-- only worked with this version, there might be a bug with antrun
- see http://jira.codehaus.org/browse/MANTRUN-109 -->
- <version>1.4</version>
- <executions>
- <execution>
- <id>database-test-create-schema</id>
- <phase>process-test-classes</phase>
- <goals>
- <goal>run</goal>
- </goals>
- <configuration>
- <tasks>
- <echo
- message="updating activiti configuration to db ${databasewithschema}" />
- <copy file="${basedir}/../../qa/db/schema/activiti.cfg.xml"
- todir="target/test-classes" overwrite="true">
- <filterset
- filtersfile="${user.home}/.activiti/jdbc/build.activiti6.${databasewithschema}.properties" />
- </copy>
- </tasks>
- </configuration>
- </execution>
- <execution>
- <id>database-test-drop-schema</id>
- <phase>prepare-package</phase>
- <goals>
- <goal>run</goal>
- </goals>
- <configuration>
- <tasks>
- <echo message="dropping schema in ${databasewithschema}" />
- <java classname="org.activiti.engine.impl.db.DbSchemaDrop"
- classpathref="maven.test.classpath" />
- </tasks>
- </configuration>
- </execution>
- </executions>
- </plugin>
- </plugins>
- </build>
- </profile>
- <profile>
- <id>databasemssql</id>
- <activation>
- <property>
- <name>databasemssql</name>
- </property>
- </activation>
- <build>
- <plugins>
- <plugin>
- <artifactId>maven-antrun-plugin</artifactId>
- <!-- only worked with this version, there might be a bug with antrun
- see http://jira.codehaus.org/browse/MANTRUN-109 -->
- <version>1.4</version>
- <executions>
- <execution>
- <id>database-test-create-schema</id>
- <phase>process-test-classes</phase>
- <goals>
- <goal>run</goal>
- </goals>
- <configuration>
- <tasks>
- <echo message="updating activiti configuration to db ${databasemssql}" />
- <copy file="${basedir}/../../qa/db/mssql/activiti.cfg.xml"
- todir="target/test-classes" overwrite="true">
- <filterset
- filtersfile="${user.home}/.activiti/jdbc/build.activiti6.${databasemssql}.properties" />
- </copy>
- </tasks>
- </configuration>
- </execution>
- </executions>
- </plugin>
- </plugins>
- </build>
- </profile>
- <!-- Config qa profile -->
- <profile>
- <id>configSpring</id>
- <build>
- <plugins>
- <plugin>
- <artifactId>maven-antrun-plugin</artifactId>
- <!-- only worked with this version, there might be a bug with antrun
- see http://jira.codehaus.org/browse/MANTRUN-109 -->
- <version>1.4</version>
- <executions>
- <execution>
- <id>configExecution</id>
- <phase>process-test-classes</phase>
- <goals>
- <goal>run</goal>
- </goals>
- <configuration>
- <tasks>
- <echo
- message="updating activiti configuration config to db ${database}" />
- <copy
- file="${basedir}/../../qa/spring/${database}/activiti.cfg.xml"
- todir="target/test-classes" overwrite="true">
- <filterset
- filtersfile="${user.home}/.activiti/jdbc/build.${database}.properties" />
- </copy>
- </tasks>
- </configuration>
- </execution>
- <execution>
- <id>database-test-drop-schema</id>
- <phase>prepare-package</phase>
- <goals>
- <goal>run</goal>
- </goals>
- <configuration>
- <tasks>
- <echo message="dropping schema in ${database}" />
- <java classname="org.activiti.engine.impl.db.DbSchemaDrop"
- classpathref="maven.test.classpath" />
- </tasks>
- </configuration>
- </execution>
- </executions>
- </plugin>
- <plugin>
- <artifactId>maven-surefire-plugin</artifactId>
- <configuration>
- <excludes>
- <exclude>**/*TestCase.java</exclude>
- <!-- Disabling tests that run exclusively using standalone config -->
- <exclude>**/ProcessDiagramRetrievalTest.java</exclude>
- <exclude>org/activiti/standalone/**</exclude>
- </excludes>
- <runOrder>alphabetical</runOrder>
- </configuration>
- </plugin>
- </plugins>
- </build>
- <dependencies>
- <dependency>
- <groupId>org.activiti</groupId>
- <artifactId>activiti-spring</artifactId>
- <scope>test</scope>
- </dependency>
- </dependencies>
- </profile>
- <profile>
- <id>configJta</id>
- <build>
- <plugins>
- <plugin>
- <artifactId>maven-antrun-plugin</artifactId>
- <!-- only worked with this version, there might be a bug with antrun
- see http://jira.codehaus.org/browse/MANTRUN-109 -->
- <version>1.4</version>
- <executions>
- <execution>
- <id>configExecution</id>
- <phase>process-test-classes</phase>
- <goals>
- <goal>run</goal>
- </goals>
- <configuration>
- <tasks>
- <echo
- message="Copying jta enabled Activiti configuration file to target/test-classes" />
- <echo
- message="Updating activiti configuration config to db ${database}" />
- <copy file="${basedir}/../../qa/jta/${database}/activiti.cfg.xml"
- todir="target/test-classes" overwrite="true">
- <filterset
- filtersfile="${user.home}/.activiti/jdbc/build.${database}.properties" />
- </copy>
- </tasks>
- </configuration>
- </execution>
- <execution>
- <id>database-test-drop-schema</id>
- <phase>prepare-package</phase>
- <goals>
- <goal>run</goal>
- </goals>
- <configuration>
- <tasks>
- <echo message="dropping schema in ${database}" />
- <java classname="org.activiti.engine.impl.db.DbSchemaDrop"
- classpathref="maven.test.classpath" />
- </tasks>
- </configuration>
- </execution>
- </executions>
- </plugin>
- <plugin>
- <artifactId>maven-surefire-plugin</artifactId>
- <configuration>
- <excludes>
- <exclude>**/*TestCase.java</exclude>
- <!-- Disabling tests that run exclusively using standalone config -->
- <exclude>**/ProcessDiagramRetrievalTest.java</exclude>
- <exclude>org/activiti/standalone/**</exclude>
- </excludes>
- <runOrder>alphabetical</runOrder>
- </configuration>
- </plugin>
- </plugins>
- </build>
- <dependencies>
- <dependency>
- <groupId>org.slf4j</groupId>
- <artifactId>slf4j-jdk14</artifactId>
- <version>1.7.6</version>
- <scope>test</scope>
- </dependency>
- </dependencies>
- </profile>
- <!-- check history full -->
- <profile>
- <id>cfghistoryfull</id>
- <build>
- <plugins>
- <plugin>
- <artifactId>maven-antrun-plugin</artifactId>
- <version>1.4</version>
- <executions>
- <execution>
- <id>database-test-create-schema</id>
- <phase>process-test-classes</phase>
- <goals>
- <goal>run</goal>
- </goals>
- <configuration>
- <tasks>
- <echo
- message="updating activiti configuration to qa/cfg/historyfull.activiti.cfg.xml" />
- <copy file="${basedir}/../../qa/cfg/historyfull.activiti.cfg.xml"
- tofile="target/test-classes/activiti.cfg.xml" overwrite="true" />
- </tasks>
- </configuration>
- </execution>
- </executions>
- </plugin>
- <plugin>
- <artifactId>maven-surefire-plugin</artifactId>
- <configuration>
- <excludes>
- <exclude>**/*TestCase.java</exclude>
- <exclude>**/CompetingJobAcquisitionTest.java</exclude> <!-- http://jira.codehaus.org/browse/ACT-234 -->
- <exclude>**/WSDLImporterTest.java</exclude> <!-- http://jira.codehaus.org/browse/ACT-315 -->
- <exclude>**/JobExecutorTest.java</exclude> <!-- http://jira.codehaus.org/browse/ACT-427 -->
- <exclude>**/HistoricTaskInstanceUpdateTest.java</exclude> <!-- http://jira.codehaus.org/browse/ACT-485 -->
- <exclude>**/RepeatingServiceTaskTest.java</exclude>
- <exclude>org/activiti/standalone/**</exclude>
- </excludes>
- <runOrder>alphabetical</runOrder>
- </configuration>
- </plugin>
- </plugins>
- </build>
- </profile>
- <profile>
- <id>databasehistoryfull</id>
- <build>
- <plugins>
- <plugin>
- <artifactId>maven-antrun-plugin</artifactId>
- <!-- only worked with this version, there might be a bug with antrun
- see http://jira.codehaus.org/browse/MANTRUN-109 -->
- <version>1.4</version>
- <executions>
- <execution>
- <id>database-test-create-schema</id>
- <phase>process-test-classes</phase>
- <goals>
- <goal>run</goal>
- </goals>
- <configuration>
- <tasks>
- <echo
- message="updating activiti configuration to db ${database}, using FULL history" />
- <copy file="${basedir}/../../qa/db/historyfull.activiti.cfg.xml"
- todir="target/test-classes" overwrite="true">
- <filterset
- filtersfile="${user.home}/.activiti/jdbc/build.${database}.properties" />
- </copy>
- <rename src="target/test-classes/historyfull.activiti.cfg.xml"
- dest="target/test-classes/activiti.cfg.xml" />
- </tasks>
- </configuration>
- </execution>
- <execution>
- <id>database-test-drop-schema-before</id>
- <phase>process-test-classes</phase>
- <goals>
- <goal>run</goal>
- </goals>
- <configuration>
- <tasks>
- <echo message="dropping schema in ${database}" />
- <java classname="org.activiti.engine.impl.db.DbSchemaDrop"
- classpathref="maven.test.classpath" />
- </tasks>
- </configuration>
- </execution>
- <execution>
- <id>database-test-drop-schema-after</id>
- <phase>prepare-package</phase>
- <goals>
- <goal>run</goal>
- </goals>
- <configuration>
- <tasks>
- <echo message="dropping schema in ${database}" />
- <java classname="org.activiti.engine.impl.db.DbSchemaDrop"
- classpathref="maven.test.classpath" />
- </tasks>
- </configuration>
- </execution>
- </executions>
- </plugin>
- </plugins>
- </build>
- </profile>
- <!-- Same as databasehistoryfull, but for databases that need a schema
- in the config -->
- <profile>
- <id>databasehistoryfullwithschema</id>
- <build>
- <plugins>
- <plugin>
- <artifactId>maven-antrun-plugin</artifactId>
- <!-- only worked with this version, there might be a bug with antrun
- see http://jira.codehaus.org/browse/MANTRUN-109 -->
- <version>1.4</version>
- <executions>
- <execution>
- <id>database-test-create-schema</id>
- <phase>process-test-classes</phase>
- <goals>
- <goal>run</goal>
- </goals>
- <configuration>
- <tasks>
- <echo
- message="updating activiti configuration to db ${database}, using FULL history" />
- <copy
- file="${basedir}/../../qa/db/historyfull-with-schema.activiti.cfg.xml"
- todir="target/test-classes" overwrite="true">
- <filterset
- filtersfile="${user.home}/.activiti/jdbc/build.${databasewithschema}.properties" />
- </copy>
- <rename
- src="target/test-classes/historyfull-with-schema.activiti.cfg.xml"
- dest="target/test-classes/activiti.cfg.xml" />
- </tasks>
- </configuration>
- </execution>
- <execution>
- <id>database-test-drop-schema-before</id>
- <phase>process-test-classes</phase>
- <goals>
- <goal>run</goal>
- </goals>
- <configuration>
- <tasks>
- <echo message="dropping schema in ${databasewithschema}" />
- <java classname="org.activiti.engine.impl.db.DbSchemaDrop"
- classpathref="maven.test.classpath" />
- </tasks>
- </configuration>
- </execution>
- <execution>
- <id>database-test-drop-schema-after</id>
- <phase>prepare-package</phase>
- <goals>
- <goal>run</goal>
- </goals>
- <configuration>
- <tasks>
- <echo message="dropping schema in ${databasewithschema}" />
- <java classname="org.activiti.engine.impl.db.DbSchemaDrop"
- classpathref="maven.test.classpath" />
- </tasks>
- </configuration>
- </execution>
- </executions>
- </plugin>
- </plugins>
- </build>
- </profile>
- <!-- check history full -->
- <profile>
- <id>cfghistoryaudit</id>
- <build>
- <plugins>
- <plugin>
- <artifactId>maven-antrun-plugin</artifactId>
- <version>1.4</version>
- <executions>
- <execution>
- <id>database-test-create-schema</id>
- <phase>process-test-classes</phase>
- <goals>
- <goal>run</goal>
- </goals>
- <configuration>
- <tasks>
- <echo
- message="updating activiti configuration to qa/cfg/historyaudit.activiti.cfg.xml" />
- <copy file="${basedir}/../../qa/cfg/historyaudit.activiti.cfg.xml"
- tofile="target/test-classes/activiti.cfg.xml" overwrite="true" />
- </tasks>
- </configuration>
- </execution>
- </executions>
- </plugin>
- <plugin>
- <artifactId>maven-surefire-plugin</artifactId>
- <configuration>
- <excludes>
- <exclude>**/*TestCase.java</exclude>
- <exclude>**/CompetingJobAcquisitionTest.java</exclude> <!-- http://jira.codehaus.org/browse/ACT-234 -->
- <exclude>**/WSDLImporterTest.java</exclude> <!-- http://jira.codehaus.org/browse/ACT-315 -->
- <exclude>**/JobExecutorTest.java</exclude> <!-- http://jira.codehaus.org/browse/ACT-427 -->
- <exclude>**/HistoricTaskInstanceUpdateTest.java</exclude> <!-- http://jira.codehaus.org/browse/ACT-485 -->
- <exclude>**/RepeatingServiceTaskTest.java</exclude>
- <exclude>org/activiti/standalone/**</exclude>
- </excludes>
- <runOrder>alphabetical</runOrder>
- </configuration>
- </plugin>
- </plugins>
- </build>
- </profile>
- <!-- check history none -->
- <profile>
- <id>cfghistorynone</id>
- <build>
- <plugins>
- <plugin>
- <artifactId>maven-antrun-plugin</artifactId>
- <version>1.4</version>
- <executions>
- <execution>
- <id>database-test-create-schema</id>
- <phase>process-test-classes</phase>
- <goals>
- <goal>run</goal>
- </goals>
- <configuration>
- <tasks>
- <echo
- message="updating activiti configuration to qa/cfg/historynone.activiti.cfg.xml" />
- <copy file="${basedir}/../../qa/cfg/historynone.activiti.cfg.xml"
- tofile="target/test-classes/activiti.cfg.xml" overwrite="true" />
- </tasks>
- </configuration>
- </execution>
- </executions>
- </plugin>
- <plugin>
- <artifactId>maven-surefire-plugin</artifactId>
- <configuration>
- <excludes>
- <exclude>**/*TestCase.java</exclude>
- <exclude>**/CompetingJobAcquisitionTest.java</exclude> <!-- http://jira.codehaus.org/browse/ACT-234 -->
- <exclude>**/WSDLImporterTest.java</exclude> <!-- http://jira.codehaus.org/browse/ACT-315 -->
- <exclude>**/JobExecutorTest.java</exclude> <!-- http://jira.codehaus.org/browse/ACT-427 -->
- <exclude>**/HistoricTaskInstanceUpdateTest.java</exclude> <!-- http://jira.codehaus.org/browse/ACT-485 -->
- <exclude>**/Historic*InstanceTest.java</exclude>
- <exclude>**/HistoryServiceTest.java</exclude>
- <exclude>**/RepeatingServiceTaskTest.java</exclude>
- <exclude>**/ProcessInstanceLogQueryTest.java</exclude>
- <exclude>org/activiti/standalone/**</exclude>
- <exclude>**/HistoricProcessInstanceQueryVersionTest.java</exclude>
- <exclude>**/NonCascadeDeleteTest.java</exclude>
- <exclude>**/HistoricProcessInstanceQueryAndWithExceptionTest.java</exclude>
- <exclude>**/HistoricJPAVariableTest.java</exclude>
- <exclude>**/VerifyDatabaseOperationsTest.java</exclude>
- </excludes>
- <runOrder>alphabetical</runOrder>
- </configuration>
- </plugin>
- </plugins>
- </build>
- </profile>
- <profile>
- <id>testSchemaMetaData</id>
- <activation>
- <property>
- <name>metadatabase</name>
- </property>
- </activation>
- <build>
- <plugins>
- <plugin>
- <artifactId>maven-surefire-plugin</artifactId>
- <configuration>
- <includes>
- <include>**/JdbcMetaDataTest.java</include>
- </includes>
- <excludes />
- <runOrder>alphabetical</runOrder>
- </configuration>
- </plugin>
- <plugin>
- <artifactId>maven-antrun-plugin</artifactId>
- <version>1.4</version>
- <executions>
- <execution>
- <id>database-test-create-schema</id>
- <phase>process-test-classes</phase>
- <goals>
- <goal>run</goal>
- </goals>
- <configuration>
- <tasks>
- <echo message="creating db schema in ${metadatabase}" />
- <ant antfile="${basedir}/../../qa/db/build.xml" target="create.db.schema">
- <property name="test_classpath" refid="maven.test.classpath" />
- <property name="database" value="${metadatabase}" />
- </ant>
- <echo message="updating activiti cfg to ${metadatabase}" />
- <ant antfile="${basedir}/../../qa/db/build.xml" target="create.activiti.cfg">
- <property name="database" value="${metadatabase}" />
- </ant>
- </tasks>
- </configuration>
- </execution>
- <execution>
- <id>database-test-drop-schema</id>
- <phase>prepare-package</phase>
- <goals>
- <goal>run</goal>
- </goals>
- <configuration>
- <tasks>
- <echo message="dropping schema in ${metadatabase}" />
- <ant antfile="${basedir}/../../qa/db/build.xml" target="drop.db.schema"
- inheritAll="false">
- <property name="test_classpath" refid="maven.test.classpath" />
- <property name="database" value="${metadatabase}" />
- </ant>
- </tasks>
- </configuration>
- </execution>
- </executions>
- </plugin>
- </plugins>
- </build>
- </profile>
- <!-- check with optimization flags set -->
- <profile>
- <id>cfgOptimizations</id>
- <build>
- <plugins>
- <plugin>
- <artifactId>maven-antrun-plugin</artifactId>
- <version>1.4</version>
- <executions>
- <execution>
- <id>database-test-create-schema</id>
- <phase>process-test-classes</phase>
- <goals>
- <goal>run</goal>
- </goals>
- <configuration>
- <tasks>
- <echo message="updating activiti configuration to qa/cfg/optimizations.activiti.cfg.xml" />
- <copy file="${basedir}/../../qa/cfg/optimizations.activiti.cfg.xml" tofile="target/test-classes/activiti.cfg.xml" overwrite="true" />
- </tasks>
- </configuration>
- </execution>
- </executions>
- </plugin>
- </plugins>
- </build>
- </profile>
- <profile>
- <id>oracle</id>
- <activation>
- <property>
- <name>database</name>
- <value>oracle</value>
- </property>
- </activation>
- <dependencies>
- <dependency>
- <groupId>com.oracle.jdbc</groupId>
- <artifactId>ojdbc7</artifactId>
- <scope>test</scope>
- </dependency>
- </dependencies>
- </profile>
- <profile>
- <id>oraclewithschema</id>
- <activation>
- <property>
- <name>databasewithschema</name>
- <value>oracle</value>
- </property>
- </activation>
- <dependencies>
- <dependency>
- <groupId>com.oracle.jdbc</groupId>
- <artifactId>ojdbc7</artifactId>
- <scope>test</scope>
- </dependency>
- </dependencies>
- </profile>
- <profile>
- <id>db2</id>
- <activation>
- <property>
- <name>database</name>
- <value>db2</value>
- </property>
- </activation>
- <dependencies>
- <dependency>
- <groupId>com.ibm.db2.jcc</groupId>
- <artifactId>db2jcc4</artifactId>
- <scope>test</scope>
- </dependency>
- </dependencies>
- </profile>
- <profile>
- <id>mssql</id>
- <activation>
- <property>
- <name>databasemssql</name>
- <value>mssql</value>
- </property>
- </activation>
- <dependencies>
- <dependency>
- <groupId>net.sourceforge.jtds</groupId>
- <artifactId>jtds</artifactId>
- <scope>test</scope>
- </dependency>
- </dependencies>
- </profile>
- <profile>
- <id>mysql</id>
- <activation>
- <property>
- <name>database</name>
- <value>mysql</value>
- </property>
- </activation>
- <dependencies>
- <dependency>
- <groupId>mysql</groupId>
- <artifactId>mysql-connector-java</artifactId>
- <scope>test</scope>
- </dependency>
- </dependencies>
- </profile>
- <profile>
- <id>hsql</id>
- <activation>
- <property>
- <name>database</name>
- <value>hsql</value>
- </property>
- </activation>
- <dependencies>
- <dependency>
- <groupId>org.hsqldb</groupId>
- <artifactId>hsqldb</artifactId>
- <scope>test</scope>
- </dependency>
- </dependencies>
- </profile>
- </profiles>
- </project>
|