activiti-engine-6.1.1.pom 38 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113
  1. <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  2. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  3. <modelVersion>4.0.0</modelVersion>
  4. <name>Activiti - Engine</name>
  5. <artifactId>activiti-engine</artifactId>
  6. <parent>
  7. <groupId>org.activiti</groupId>
  8. <artifactId>activiti-parent</artifactId>
  9. <version>6.1.1</version>
  10. <relativePath>../activiti-parent</relativePath>
  11. </parent>
  12. <properties>
  13. <activiti.artifact>
  14. org.activiti.engine
  15. </activiti.artifact>
  16. <activiti.osgi.export.additional>
  17. org.activiti.db.mapping.entity
  18. </activiti.osgi.export.additional>
  19. <activiti.osgi.import.additional>
  20. junit*;resolution:=optional,
  21. org.junit*;resolution:=optional,
  22. com.sun*;resolution:=optional,
  23. javax.activation*;resolution:=optional,
  24. javax.persistence*;resolution:=optional,
  25. org.apache.commons.mail*;resolution:=optional,
  26. org.activiti.camel;resolution:=optional,
  27. org.activiti.camel.impl;resolution:=optional,
  28. org.springframework*;resolution:=optional,
  29. org.drools*;resolution:=optional,
  30. com.fasterxml*;resolution:=optional,
  31. javax.transaction;resolution:=optional,
  32. javax.enterprise.concurrent;resolution:=optional,
  33. </activiti.osgi.import.additional>
  34. </properties>
  35. <dependencies>
  36. <dependency>
  37. <groupId>org.activiti</groupId>
  38. <artifactId>activiti-bpmn-converter</artifactId>
  39. </dependency>
  40. <dependency>
  41. <groupId>org.activiti</groupId>
  42. <artifactId>activiti-process-validation</artifactId>
  43. </dependency>
  44. <dependency>
  45. <groupId>org.activiti</groupId>
  46. <artifactId>activiti-image-generator</artifactId>
  47. </dependency>
  48. <dependency>
  49. <groupId>org.apache.commons</groupId>
  50. <artifactId>commons-email</artifactId>
  51. </dependency>
  52. <dependency>
  53. <groupId>org.apache.commons</groupId>
  54. <artifactId>commons-lang3</artifactId>
  55. </dependency>
  56. <dependency>
  57. <groupId>org.mybatis</groupId>
  58. <artifactId>mybatis</artifactId>
  59. </dependency>
  60. <dependency>
  61. <groupId>org.springframework</groupId>
  62. <artifactId>spring-beans</artifactId>
  63. </dependency>
  64. <dependency>
  65. <groupId>de.odysseus.juel</groupId>
  66. <artifactId>juel-api</artifactId>
  67. </dependency>
  68. <dependency>
  69. <groupId>de.odysseus.juel</groupId>
  70. <artifactId>juel-impl</artifactId>
  71. </dependency>
  72. <dependency>
  73. <groupId>de.odysseus.juel</groupId>
  74. <artifactId>juel-spi</artifactId>
  75. </dependency>
  76. <dependency>
  77. <groupId>junit</groupId>
  78. <artifactId>junit</artifactId>
  79. <scope>provided</scope>
  80. </dependency>
  81. <dependency>
  82. <groupId>org.codehaus.groovy</groupId>
  83. <artifactId>groovy</artifactId>
  84. <scope>provided</scope>
  85. </dependency>
  86. <dependency>
  87. <groupId>org.codehaus.groovy</groupId>
  88. <artifactId>groovy-jsr223</artifactId>
  89. <scope>provided</scope>
  90. </dependency>
  91. <dependency>
  92. <groupId>org.assertj</groupId>
  93. <artifactId>assertj-core</artifactId>
  94. <scope>provided</scope>
  95. </dependency>
  96. <dependency>
  97. <groupId>org.drools</groupId>
  98. <artifactId>drools-core</artifactId>
  99. <scope>provided</scope>
  100. </dependency>
  101. <dependency>
  102. <groupId>org.drools</groupId>
  103. <artifactId>drools-compiler</artifactId>
  104. <scope>provided</scope>
  105. </dependency>
  106. <dependency>
  107. <groupId>com.microsoft.sqlserver</groupId>
  108. <artifactId>sqljdbc4</artifactId>
  109. <scope>provided</scope>
  110. </dependency>
  111. <dependency>
  112. <groupId>org.drools</groupId>
  113. <artifactId>drools-mvel</artifactId>
  114. <scope>provided</scope>
  115. </dependency>
  116. <dependency>
  117. <groupId>javax.persistence</groupId>
  118. <artifactId>javax.persistence-api</artifactId>
  119. <scope>provided</scope>
  120. </dependency>
  121. <dependency>
  122. <groupId>org.apache.geronimo.specs</groupId>
  123. <artifactId>geronimo-jta_1.1_spec</artifactId>
  124. <scope>provided</scope>
  125. </dependency>
  126. <dependency>
  127. <groupId>javax.enterprise.concurrent</groupId>
  128. <artifactId>javax.enterprise.concurrent-api</artifactId>
  129. <scope>provided</scope>
  130. </dependency>
  131. <dependency>
  132. <groupId>com.h2database</groupId>
  133. <artifactId>h2</artifactId>
  134. <scope>test</scope>
  135. </dependency>
  136. <dependency>
  137. <groupId>org.mockito</groupId>
  138. <artifactId>mockito-core</artifactId>
  139. <scope>test</scope>
  140. </dependency>
  141. <dependency>
  142. <groupId>org.hibernate</groupId>
  143. <artifactId>hibernate-core</artifactId>
  144. <scope>test</scope>
  145. </dependency>
  146. <dependency>
  147. <groupId>org.hibernate</groupId>
  148. <artifactId>hibernate-entitymanager</artifactId>
  149. <scope>test</scope>
  150. </dependency>
  151. <dependency>
  152. <groupId>org.subethamail</groupId>
  153. <artifactId>subethasmtp-wiser</artifactId>
  154. <scope>test</scope>
  155. </dependency>
  156. <dependency>
  157. <groupId>mysql</groupId>
  158. <artifactId>mysql-connector-java</artifactId>
  159. <scope>test</scope>
  160. </dependency>
  161. <dependency>
  162. <groupId>org.postgresql</groupId>
  163. <artifactId>postgresql</artifactId>
  164. <scope>test</scope>
  165. </dependency>
  166. <dependency>
  167. <groupId>net.sourceforge.jtds</groupId>
  168. <artifactId>jtds</artifactId>
  169. <scope>test</scope>
  170. </dependency>
  171. <dependency>
  172. <groupId>com.fasterxml.uuid</groupId>
  173. <artifactId>java-uuid-generator</artifactId>
  174. <scope>provided</scope>
  175. </dependency>
  176. <dependency>
  177. <groupId>commons-io</groupId>
  178. <artifactId>commons-io</artifactId>
  179. <scope>test</scope>
  180. </dependency>
  181. <dependency>
  182. <groupId>joda-time</groupId>
  183. <artifactId>joda-time</artifactId>
  184. </dependency>
  185. <dependency>
  186. <groupId>org.slf4j</groupId>
  187. <artifactId>slf4j-api</artifactId>
  188. </dependency>
  189. <dependency>
  190. <groupId>org.slf4j</groupId>
  191. <artifactId>jcl-over-slf4j</artifactId>
  192. </dependency>
  193. <dependency>
  194. <groupId>ch.qos.logback</groupId>
  195. <artifactId>logback-classic</artifactId>
  196. <scope>test</scope>
  197. </dependency>
  198. <!-- Required for testing JTA -->
  199. <dependency>
  200. <groupId>org.codehaus.btm</groupId>
  201. <artifactId>btm</artifactId>
  202. <scope>test</scope>
  203. </dependency>
  204. </dependencies>
  205. <build>
  206. <plugins>
  207. <plugin>
  208. <artifactId>maven-surefire-plugin</artifactId>
  209. <configuration>
  210. <excludes>
  211. <exclude>**/*TestCase.java</exclude>
  212. <exclude>**/RepeatingServiceTaskTest.java</exclude>
  213. </excludes>
  214. <runOrder>alphabetical</runOrder>
  215. </configuration>
  216. </plugin>
  217. <plugin>
  218. <artifactId>maven-jar-plugin</artifactId>
  219. <configuration>
  220. <archive>
  221. <manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile>
  222. </archive>
  223. </configuration>
  224. </plugin>
  225. <plugin>
  226. <groupId>org.apache.felix</groupId>
  227. <artifactId>maven-bundle-plugin</artifactId>
  228. <executions>
  229. <execution>
  230. <phase>generate-sources</phase>
  231. <goals>
  232. <goal>cleanVersions</goal>
  233. </goals>
  234. </execution>
  235. <execution>
  236. <id>bundle-manifest</id>
  237. <phase>process-classes</phase>
  238. <goals>
  239. <goal>manifest</goal>
  240. </goals>
  241. </execution>
  242. </executions>
  243. </plugin>
  244. </plugins>
  245. <pluginManagement>
  246. <plugins>
  247. <!--This plugin's configuration is used to store Eclipse m2e settings
  248. only. It has no influence on the Maven build itself. -->
  249. <plugin>
  250. <groupId>org.eclipse.m2e</groupId>
  251. <artifactId>lifecycle-mapping</artifactId>
  252. <version>1.0.0</version>
  253. <configuration>
  254. <lifecycleMappingMetadata>
  255. <pluginExecutions>
  256. <pluginExecution>
  257. <pluginExecutionFilter>
  258. <groupId>org.apache.felix</groupId>
  259. <artifactId>
  260. maven-bundle-plugin
  261. </artifactId>
  262. <versionRange>
  263. [2.1.0,)
  264. </versionRange>
  265. <goals>
  266. <goal>cleanVersions</goal>
  267. <goal>manifest</goal>
  268. </goals>
  269. </pluginExecutionFilter>
  270. <action>
  271. <ignore></ignore>
  272. </action>
  273. </pluginExecution>
  274. </pluginExecutions>
  275. </lifecycleMappingMetadata>
  276. </configuration>
  277. </plugin>
  278. </plugins>
  279. </pluginManagement>
  280. </build>
  281. <profiles>
  282. <profile>
  283. <id>checkspring</id>
  284. <properties>
  285. <skipTests>true</skipTests>
  286. </properties>
  287. </profile>
  288. <profile>
  289. <id>create-test-jar</id>
  290. <build>
  291. <plugins>
  292. <plugin>
  293. <groupId>org.apache.maven.plugins</groupId>
  294. <artifactId>maven-jar-plugin</artifactId>
  295. <version>2.2</version>
  296. <executions>
  297. <execution>
  298. <goals>
  299. <goal>test-jar</goal>
  300. </goals>
  301. </execution>
  302. </executions>
  303. </plugin>
  304. </plugins>
  305. </build>
  306. </profile>
  307. <profile>
  308. <id>upgradeDatabase</id>
  309. <activation>
  310. <property>
  311. <name>upgradeDatabase</name>
  312. </property>
  313. </activation>
  314. <properties>
  315. <skipTests>true</skipTests>
  316. </properties>
  317. </profile>
  318. <profile>
  319. <id>distro</id>
  320. <build>
  321. <plugins>
  322. <plugin>
  323. <groupId>org.apache.maven.plugins</groupId>
  324. <artifactId>maven-source-plugin</artifactId>
  325. <executions>
  326. <execution>
  327. <id>attach-sources</id>
  328. <phase>package</phase>
  329. <goals>
  330. <goal>jar-no-fork</goal>
  331. </goals>
  332. </execution>
  333. </executions>
  334. </plugin>
  335. </plugins>
  336. </build>
  337. </profile>
  338. <!-- database qa profile -->
  339. <profile>
  340. <id>database</id>
  341. <activation>
  342. <property>
  343. <name>database</name>
  344. </property>
  345. </activation>
  346. <build>
  347. <plugins>
  348. <plugin>
  349. <artifactId>maven-antrun-plugin</artifactId>
  350. <!-- only worked with this version, there might be a bug with antrun
  351. see http://jira.codehaus.org/browse/MANTRUN-109 -->
  352. <version>1.4</version>
  353. <executions>
  354. <execution>
  355. <id>database-test-create-schema</id>
  356. <phase>process-test-classes</phase>
  357. <goals>
  358. <goal>run</goal>
  359. </goals>
  360. <configuration>
  361. <tasks>
  362. <echo message="updating activiti configuration to db ${database}" />
  363. <copy file="${basedir}/../../qa/db/activiti.cfg.xml"
  364. todir="target/test-classes" overwrite="true">
  365. <filterset
  366. filtersfile="${user.home}/.activiti/jdbc/build.activiti6.${database}.properties" />
  367. </copy>
  368. </tasks>
  369. </configuration>
  370. </execution>
  371. <execution>
  372. <id>database-test-drop-schema</id>
  373. <phase>prepare-package</phase>
  374. <goals>
  375. <goal>run</goal>
  376. </goals>
  377. <configuration>
  378. <tasks>
  379. <echo message="dropping schema in ${database}" />
  380. <java classname="org.activiti.engine.impl.db.DbSchemaDrop"
  381. classpathref="maven.test.classpath" />
  382. </tasks>
  383. </configuration>
  384. </execution>
  385. </executions>
  386. </plugin>
  387. </plugins>
  388. </build>
  389. </profile>
  390. <profile>
  391. <id>databasewithschema</id>
  392. <activation>
  393. <property>
  394. <name>databasewithschema</name>
  395. </property>
  396. </activation>
  397. <build>
  398. <plugins>
  399. <plugin>
  400. <artifactId>maven-antrun-plugin</artifactId>
  401. <!-- only worked with this version, there might be a bug with antrun
  402. see http://jira.codehaus.org/browse/MANTRUN-109 -->
  403. <version>1.4</version>
  404. <executions>
  405. <execution>
  406. <id>database-test-create-schema</id>
  407. <phase>process-test-classes</phase>
  408. <goals>
  409. <goal>run</goal>
  410. </goals>
  411. <configuration>
  412. <tasks>
  413. <echo
  414. message="updating activiti configuration to db ${databasewithschema}" />
  415. <copy file="${basedir}/../../qa/db/schema/activiti.cfg.xml"
  416. todir="target/test-classes" overwrite="true">
  417. <filterset
  418. filtersfile="${user.home}/.activiti/jdbc/build.activiti6.${databasewithschema}.properties" />
  419. </copy>
  420. </tasks>
  421. </configuration>
  422. </execution>
  423. <execution>
  424. <id>database-test-drop-schema</id>
  425. <phase>prepare-package</phase>
  426. <goals>
  427. <goal>run</goal>
  428. </goals>
  429. <configuration>
  430. <tasks>
  431. <echo message="dropping schema in ${databasewithschema}" />
  432. <java classname="org.activiti.engine.impl.db.DbSchemaDrop"
  433. classpathref="maven.test.classpath" />
  434. </tasks>
  435. </configuration>
  436. </execution>
  437. </executions>
  438. </plugin>
  439. </plugins>
  440. </build>
  441. </profile>
  442. <profile>
  443. <id>databasemssql</id>
  444. <activation>
  445. <property>
  446. <name>databasemssql</name>
  447. </property>
  448. </activation>
  449. <build>
  450. <plugins>
  451. <plugin>
  452. <artifactId>maven-antrun-plugin</artifactId>
  453. <!-- only worked with this version, there might be a bug with antrun
  454. see http://jira.codehaus.org/browse/MANTRUN-109 -->
  455. <version>1.4</version>
  456. <executions>
  457. <execution>
  458. <id>database-test-create-schema</id>
  459. <phase>process-test-classes</phase>
  460. <goals>
  461. <goal>run</goal>
  462. </goals>
  463. <configuration>
  464. <tasks>
  465. <echo message="updating activiti configuration to db ${databasemssql}" />
  466. <copy file="${basedir}/../../qa/db/mssql/activiti.cfg.xml"
  467. todir="target/test-classes" overwrite="true">
  468. <filterset
  469. filtersfile="${user.home}/.activiti/jdbc/build.activiti6.${databasemssql}.properties" />
  470. </copy>
  471. </tasks>
  472. </configuration>
  473. </execution>
  474. </executions>
  475. </plugin>
  476. </plugins>
  477. </build>
  478. </profile>
  479. <!-- Config qa profile -->
  480. <profile>
  481. <id>configSpring</id>
  482. <build>
  483. <plugins>
  484. <plugin>
  485. <artifactId>maven-antrun-plugin</artifactId>
  486. <!-- only worked with this version, there might be a bug with antrun
  487. see http://jira.codehaus.org/browse/MANTRUN-109 -->
  488. <version>1.4</version>
  489. <executions>
  490. <execution>
  491. <id>configExecution</id>
  492. <phase>process-test-classes</phase>
  493. <goals>
  494. <goal>run</goal>
  495. </goals>
  496. <configuration>
  497. <tasks>
  498. <echo
  499. message="updating activiti configuration config to db ${database}" />
  500. <copy
  501. file="${basedir}/../../qa/spring/${database}/activiti.cfg.xml"
  502. todir="target/test-classes" overwrite="true">
  503. <filterset
  504. filtersfile="${user.home}/.activiti/jdbc/build.${database}.properties" />
  505. </copy>
  506. </tasks>
  507. </configuration>
  508. </execution>
  509. <execution>
  510. <id>database-test-drop-schema</id>
  511. <phase>prepare-package</phase>
  512. <goals>
  513. <goal>run</goal>
  514. </goals>
  515. <configuration>
  516. <tasks>
  517. <echo message="dropping schema in ${database}" />
  518. <java classname="org.activiti.engine.impl.db.DbSchemaDrop"
  519. classpathref="maven.test.classpath" />
  520. </tasks>
  521. </configuration>
  522. </execution>
  523. </executions>
  524. </plugin>
  525. <plugin>
  526. <artifactId>maven-surefire-plugin</artifactId>
  527. <configuration>
  528. <excludes>
  529. <exclude>**/*TestCase.java</exclude>
  530. <!-- Disabling tests that run exclusively using standalone config -->
  531. <exclude>**/ProcessDiagramRetrievalTest.java</exclude>
  532. <exclude>org/activiti/standalone/**</exclude>
  533. </excludes>
  534. <runOrder>alphabetical</runOrder>
  535. </configuration>
  536. </plugin>
  537. </plugins>
  538. </build>
  539. <dependencies>
  540. <dependency>
  541. <groupId>org.activiti</groupId>
  542. <artifactId>activiti-spring</artifactId>
  543. <scope>test</scope>
  544. </dependency>
  545. </dependencies>
  546. </profile>
  547. <profile>
  548. <id>configJta</id>
  549. <build>
  550. <plugins>
  551. <plugin>
  552. <artifactId>maven-antrun-plugin</artifactId>
  553. <!-- only worked with this version, there might be a bug with antrun
  554. see http://jira.codehaus.org/browse/MANTRUN-109 -->
  555. <version>1.4</version>
  556. <executions>
  557. <execution>
  558. <id>configExecution</id>
  559. <phase>process-test-classes</phase>
  560. <goals>
  561. <goal>run</goal>
  562. </goals>
  563. <configuration>
  564. <tasks>
  565. <echo
  566. message="Copying jta enabled Activiti configuration file to target/test-classes" />
  567. <echo
  568. message="Updating activiti configuration config to db ${database}" />
  569. <copy file="${basedir}/../../qa/jta/${database}/activiti.cfg.xml"
  570. todir="target/test-classes" overwrite="true">
  571. <filterset
  572. filtersfile="${user.home}/.activiti/jdbc/build.${database}.properties" />
  573. </copy>
  574. </tasks>
  575. </configuration>
  576. </execution>
  577. <execution>
  578. <id>database-test-drop-schema</id>
  579. <phase>prepare-package</phase>
  580. <goals>
  581. <goal>run</goal>
  582. </goals>
  583. <configuration>
  584. <tasks>
  585. <echo message="dropping schema in ${database}" />
  586. <java classname="org.activiti.engine.impl.db.DbSchemaDrop"
  587. classpathref="maven.test.classpath" />
  588. </tasks>
  589. </configuration>
  590. </execution>
  591. </executions>
  592. </plugin>
  593. <plugin>
  594. <artifactId>maven-surefire-plugin</artifactId>
  595. <configuration>
  596. <excludes>
  597. <exclude>**/*TestCase.java</exclude>
  598. <!-- Disabling tests that run exclusively using standalone config -->
  599. <exclude>**/ProcessDiagramRetrievalTest.java</exclude>
  600. <exclude>org/activiti/standalone/**</exclude>
  601. </excludes>
  602. <runOrder>alphabetical</runOrder>
  603. </configuration>
  604. </plugin>
  605. </plugins>
  606. </build>
  607. <dependencies>
  608. <dependency>
  609. <groupId>org.slf4j</groupId>
  610. <artifactId>slf4j-jdk14</artifactId>
  611. <version>1.7.6</version>
  612. <scope>test</scope>
  613. </dependency>
  614. </dependencies>
  615. </profile>
  616. <!-- check history full -->
  617. <profile>
  618. <id>cfghistoryfull</id>
  619. <build>
  620. <plugins>
  621. <plugin>
  622. <artifactId>maven-antrun-plugin</artifactId>
  623. <version>1.4</version>
  624. <executions>
  625. <execution>
  626. <id>database-test-create-schema</id>
  627. <phase>process-test-classes</phase>
  628. <goals>
  629. <goal>run</goal>
  630. </goals>
  631. <configuration>
  632. <tasks>
  633. <echo
  634. message="updating activiti configuration to qa/cfg/historyfull.activiti.cfg.xml" />
  635. <copy file="${basedir}/../../qa/cfg/historyfull.activiti.cfg.xml"
  636. tofile="target/test-classes/activiti.cfg.xml" overwrite="true" />
  637. </tasks>
  638. </configuration>
  639. </execution>
  640. </executions>
  641. </plugin>
  642. <plugin>
  643. <artifactId>maven-surefire-plugin</artifactId>
  644. <configuration>
  645. <excludes>
  646. <exclude>**/*TestCase.java</exclude>
  647. <exclude>**/CompetingJobAcquisitionTest.java</exclude> <!-- http://jira.codehaus.org/browse/ACT-234 -->
  648. <exclude>**/WSDLImporterTest.java</exclude> <!-- http://jira.codehaus.org/browse/ACT-315 -->
  649. <exclude>**/JobExecutorTest.java</exclude> <!-- http://jira.codehaus.org/browse/ACT-427 -->
  650. <exclude>**/HistoricTaskInstanceUpdateTest.java</exclude> <!-- http://jira.codehaus.org/browse/ACT-485 -->
  651. <exclude>**/RepeatingServiceTaskTest.java</exclude>
  652. <exclude>org/activiti/standalone/**</exclude>
  653. </excludes>
  654. <runOrder>alphabetical</runOrder>
  655. </configuration>
  656. </plugin>
  657. </plugins>
  658. </build>
  659. </profile>
  660. <profile>
  661. <id>databasehistoryfull</id>
  662. <build>
  663. <plugins>
  664. <plugin>
  665. <artifactId>maven-antrun-plugin</artifactId>
  666. <!-- only worked with this version, there might be a bug with antrun
  667. see http://jira.codehaus.org/browse/MANTRUN-109 -->
  668. <version>1.4</version>
  669. <executions>
  670. <execution>
  671. <id>database-test-create-schema</id>
  672. <phase>process-test-classes</phase>
  673. <goals>
  674. <goal>run</goal>
  675. </goals>
  676. <configuration>
  677. <tasks>
  678. <echo
  679. message="updating activiti configuration to db ${database}, using FULL history" />
  680. <copy file="${basedir}/../../qa/db/historyfull.activiti.cfg.xml"
  681. todir="target/test-classes" overwrite="true">
  682. <filterset
  683. filtersfile="${user.home}/.activiti/jdbc/build.${database}.properties" />
  684. </copy>
  685. <rename src="target/test-classes/historyfull.activiti.cfg.xml"
  686. dest="target/test-classes/activiti.cfg.xml" />
  687. </tasks>
  688. </configuration>
  689. </execution>
  690. <execution>
  691. <id>database-test-drop-schema-before</id>
  692. <phase>process-test-classes</phase>
  693. <goals>
  694. <goal>run</goal>
  695. </goals>
  696. <configuration>
  697. <tasks>
  698. <echo message="dropping schema in ${database}" />
  699. <java classname="org.activiti.engine.impl.db.DbSchemaDrop"
  700. classpathref="maven.test.classpath" />
  701. </tasks>
  702. </configuration>
  703. </execution>
  704. <execution>
  705. <id>database-test-drop-schema-after</id>
  706. <phase>prepare-package</phase>
  707. <goals>
  708. <goal>run</goal>
  709. </goals>
  710. <configuration>
  711. <tasks>
  712. <echo message="dropping schema in ${database}" />
  713. <java classname="org.activiti.engine.impl.db.DbSchemaDrop"
  714. classpathref="maven.test.classpath" />
  715. </tasks>
  716. </configuration>
  717. </execution>
  718. </executions>
  719. </plugin>
  720. </plugins>
  721. </build>
  722. </profile>
  723. <!-- Same as databasehistoryfull, but for databases that need a schema
  724. in the config -->
  725. <profile>
  726. <id>databasehistoryfullwithschema</id>
  727. <build>
  728. <plugins>
  729. <plugin>
  730. <artifactId>maven-antrun-plugin</artifactId>
  731. <!-- only worked with this version, there might be a bug with antrun
  732. see http://jira.codehaus.org/browse/MANTRUN-109 -->
  733. <version>1.4</version>
  734. <executions>
  735. <execution>
  736. <id>database-test-create-schema</id>
  737. <phase>process-test-classes</phase>
  738. <goals>
  739. <goal>run</goal>
  740. </goals>
  741. <configuration>
  742. <tasks>
  743. <echo
  744. message="updating activiti configuration to db ${database}, using FULL history" />
  745. <copy
  746. file="${basedir}/../../qa/db/historyfull-with-schema.activiti.cfg.xml"
  747. todir="target/test-classes" overwrite="true">
  748. <filterset
  749. filtersfile="${user.home}/.activiti/jdbc/build.${databasewithschema}.properties" />
  750. </copy>
  751. <rename
  752. src="target/test-classes/historyfull-with-schema.activiti.cfg.xml"
  753. dest="target/test-classes/activiti.cfg.xml" />
  754. </tasks>
  755. </configuration>
  756. </execution>
  757. <execution>
  758. <id>database-test-drop-schema-before</id>
  759. <phase>process-test-classes</phase>
  760. <goals>
  761. <goal>run</goal>
  762. </goals>
  763. <configuration>
  764. <tasks>
  765. <echo message="dropping schema in ${databasewithschema}" />
  766. <java classname="org.activiti.engine.impl.db.DbSchemaDrop"
  767. classpathref="maven.test.classpath" />
  768. </tasks>
  769. </configuration>
  770. </execution>
  771. <execution>
  772. <id>database-test-drop-schema-after</id>
  773. <phase>prepare-package</phase>
  774. <goals>
  775. <goal>run</goal>
  776. </goals>
  777. <configuration>
  778. <tasks>
  779. <echo message="dropping schema in ${databasewithschema}" />
  780. <java classname="org.activiti.engine.impl.db.DbSchemaDrop"
  781. classpathref="maven.test.classpath" />
  782. </tasks>
  783. </configuration>
  784. </execution>
  785. </executions>
  786. </plugin>
  787. </plugins>
  788. </build>
  789. </profile>
  790. <!-- check history full -->
  791. <profile>
  792. <id>cfghistoryaudit</id>
  793. <build>
  794. <plugins>
  795. <plugin>
  796. <artifactId>maven-antrun-plugin</artifactId>
  797. <version>1.4</version>
  798. <executions>
  799. <execution>
  800. <id>database-test-create-schema</id>
  801. <phase>process-test-classes</phase>
  802. <goals>
  803. <goal>run</goal>
  804. </goals>
  805. <configuration>
  806. <tasks>
  807. <echo
  808. message="updating activiti configuration to qa/cfg/historyaudit.activiti.cfg.xml" />
  809. <copy file="${basedir}/../../qa/cfg/historyaudit.activiti.cfg.xml"
  810. tofile="target/test-classes/activiti.cfg.xml" overwrite="true" />
  811. </tasks>
  812. </configuration>
  813. </execution>
  814. </executions>
  815. </plugin>
  816. <plugin>
  817. <artifactId>maven-surefire-plugin</artifactId>
  818. <configuration>
  819. <excludes>
  820. <exclude>**/*TestCase.java</exclude>
  821. <exclude>**/CompetingJobAcquisitionTest.java</exclude> <!-- http://jira.codehaus.org/browse/ACT-234 -->
  822. <exclude>**/WSDLImporterTest.java</exclude> <!-- http://jira.codehaus.org/browse/ACT-315 -->
  823. <exclude>**/JobExecutorTest.java</exclude> <!-- http://jira.codehaus.org/browse/ACT-427 -->
  824. <exclude>**/HistoricTaskInstanceUpdateTest.java</exclude> <!-- http://jira.codehaus.org/browse/ACT-485 -->
  825. <exclude>**/RepeatingServiceTaskTest.java</exclude>
  826. <exclude>org/activiti/standalone/**</exclude>
  827. </excludes>
  828. <runOrder>alphabetical</runOrder>
  829. </configuration>
  830. </plugin>
  831. </plugins>
  832. </build>
  833. </profile>
  834. <!-- check history none -->
  835. <profile>
  836. <id>cfghistorynone</id>
  837. <build>
  838. <plugins>
  839. <plugin>
  840. <artifactId>maven-antrun-plugin</artifactId>
  841. <version>1.4</version>
  842. <executions>
  843. <execution>
  844. <id>database-test-create-schema</id>
  845. <phase>process-test-classes</phase>
  846. <goals>
  847. <goal>run</goal>
  848. </goals>
  849. <configuration>
  850. <tasks>
  851. <echo
  852. message="updating activiti configuration to qa/cfg/historynone.activiti.cfg.xml" />
  853. <copy file="${basedir}/../../qa/cfg/historynone.activiti.cfg.xml"
  854. tofile="target/test-classes/activiti.cfg.xml" overwrite="true" />
  855. </tasks>
  856. </configuration>
  857. </execution>
  858. </executions>
  859. </plugin>
  860. <plugin>
  861. <artifactId>maven-surefire-plugin</artifactId>
  862. <configuration>
  863. <excludes>
  864. <exclude>**/*TestCase.java</exclude>
  865. <exclude>**/CompetingJobAcquisitionTest.java</exclude> <!-- http://jira.codehaus.org/browse/ACT-234 -->
  866. <exclude>**/WSDLImporterTest.java</exclude> <!-- http://jira.codehaus.org/browse/ACT-315 -->
  867. <exclude>**/JobExecutorTest.java</exclude> <!-- http://jira.codehaus.org/browse/ACT-427 -->
  868. <exclude>**/HistoricTaskInstanceUpdateTest.java</exclude> <!-- http://jira.codehaus.org/browse/ACT-485 -->
  869. <exclude>**/Historic*InstanceTest.java</exclude>
  870. <exclude>**/HistoryServiceTest.java</exclude>
  871. <exclude>**/RepeatingServiceTaskTest.java</exclude>
  872. <exclude>**/ProcessInstanceLogQueryTest.java</exclude>
  873. <exclude>org/activiti/standalone/**</exclude>
  874. <exclude>**/HistoricProcessInstanceQueryVersionTest.java</exclude>
  875. <exclude>**/NonCascadeDeleteTest.java</exclude>
  876. <exclude>**/HistoricProcessInstanceQueryAndWithExceptionTest.java</exclude>
  877. <exclude>**/HistoricJPAVariableTest.java</exclude>
  878. <exclude>**/VerifyDatabaseOperationsTest.java</exclude>
  879. </excludes>
  880. <runOrder>alphabetical</runOrder>
  881. </configuration>
  882. </plugin>
  883. </plugins>
  884. </build>
  885. </profile>
  886. <profile>
  887. <id>testSchemaMetaData</id>
  888. <activation>
  889. <property>
  890. <name>metadatabase</name>
  891. </property>
  892. </activation>
  893. <build>
  894. <plugins>
  895. <plugin>
  896. <artifactId>maven-surefire-plugin</artifactId>
  897. <configuration>
  898. <includes>
  899. <include>**/JdbcMetaDataTest.java</include>
  900. </includes>
  901. <excludes />
  902. <runOrder>alphabetical</runOrder>
  903. </configuration>
  904. </plugin>
  905. <plugin>
  906. <artifactId>maven-antrun-plugin</artifactId>
  907. <version>1.4</version>
  908. <executions>
  909. <execution>
  910. <id>database-test-create-schema</id>
  911. <phase>process-test-classes</phase>
  912. <goals>
  913. <goal>run</goal>
  914. </goals>
  915. <configuration>
  916. <tasks>
  917. <echo message="creating db schema in ${metadatabase}" />
  918. <ant antfile="${basedir}/../../qa/db/build.xml" target="create.db.schema">
  919. <property name="test_classpath" refid="maven.test.classpath" />
  920. <property name="database" value="${metadatabase}" />
  921. </ant>
  922. <echo message="updating activiti cfg to ${metadatabase}" />
  923. <ant antfile="${basedir}/../../qa/db/build.xml" target="create.activiti.cfg">
  924. <property name="database" value="${metadatabase}" />
  925. </ant>
  926. </tasks>
  927. </configuration>
  928. </execution>
  929. <execution>
  930. <id>database-test-drop-schema</id>
  931. <phase>prepare-package</phase>
  932. <goals>
  933. <goal>run</goal>
  934. </goals>
  935. <configuration>
  936. <tasks>
  937. <echo message="dropping schema in ${metadatabase}" />
  938. <ant antfile="${basedir}/../../qa/db/build.xml" target="drop.db.schema"
  939. inheritAll="false">
  940. <property name="test_classpath" refid="maven.test.classpath" />
  941. <property name="database" value="${metadatabase}" />
  942. </ant>
  943. </tasks>
  944. </configuration>
  945. </execution>
  946. </executions>
  947. </plugin>
  948. </plugins>
  949. </build>
  950. </profile>
  951. <!-- check with optimization flags set -->
  952. <profile>
  953. <id>cfgOptimizations</id>
  954. <build>
  955. <plugins>
  956. <plugin>
  957. <artifactId>maven-antrun-plugin</artifactId>
  958. <version>1.4</version>
  959. <executions>
  960. <execution>
  961. <id>database-test-create-schema</id>
  962. <phase>process-test-classes</phase>
  963. <goals>
  964. <goal>run</goal>
  965. </goals>
  966. <configuration>
  967. <tasks>
  968. <echo message="updating activiti configuration to qa/cfg/optimizations.activiti.cfg.xml" />
  969. <copy file="${basedir}/../../qa/cfg/optimizations.activiti.cfg.xml" tofile="target/test-classes/activiti.cfg.xml" overwrite="true" />
  970. </tasks>
  971. </configuration>
  972. </execution>
  973. </executions>
  974. </plugin>
  975. </plugins>
  976. </build>
  977. </profile>
  978. <profile>
  979. <id>oracle</id>
  980. <activation>
  981. <property>
  982. <name>database</name>
  983. <value>oracle</value>
  984. </property>
  985. </activation>
  986. <dependencies>
  987. <dependency>
  988. <groupId>com.oracle.jdbc</groupId>
  989. <artifactId>ojdbc7</artifactId>
  990. <scope>test</scope>
  991. </dependency>
  992. </dependencies>
  993. </profile>
  994. <profile>
  995. <id>oraclewithschema</id>
  996. <activation>
  997. <property>
  998. <name>databasewithschema</name>
  999. <value>oracle</value>
  1000. </property>
  1001. </activation>
  1002. <dependencies>
  1003. <dependency>
  1004. <groupId>com.oracle.jdbc</groupId>
  1005. <artifactId>ojdbc7</artifactId>
  1006. <scope>test</scope>
  1007. </dependency>
  1008. </dependencies>
  1009. </profile>
  1010. <profile>
  1011. <id>db2</id>
  1012. <activation>
  1013. <property>
  1014. <name>database</name>
  1015. <value>db2</value>
  1016. </property>
  1017. </activation>
  1018. <dependencies>
  1019. <dependency>
  1020. <groupId>com.ibm.db2.jcc</groupId>
  1021. <artifactId>db2jcc4</artifactId>
  1022. <scope>test</scope>
  1023. </dependency>
  1024. </dependencies>
  1025. </profile>
  1026. <profile>
  1027. <id>mssql</id>
  1028. <activation>
  1029. <property>
  1030. <name>databasemssql</name>
  1031. <value>mssql</value>
  1032. </property>
  1033. </activation>
  1034. <dependencies>
  1035. <dependency>
  1036. <groupId>net.sourceforge.jtds</groupId>
  1037. <artifactId>jtds</artifactId>
  1038. <scope>test</scope>
  1039. </dependency>
  1040. </dependencies>
  1041. </profile>
  1042. <profile>
  1043. <id>mysql</id>
  1044. <activation>
  1045. <property>
  1046. <name>database</name>
  1047. <value>mysql</value>
  1048. </property>
  1049. </activation>
  1050. <dependencies>
  1051. <dependency>
  1052. <groupId>mysql</groupId>
  1053. <artifactId>mysql-connector-java</artifactId>
  1054. <scope>test</scope>
  1055. </dependency>
  1056. </dependencies>
  1057. </profile>
  1058. <profile>
  1059. <id>hsql</id>
  1060. <activation>
  1061. <property>
  1062. <name>database</name>
  1063. <value>hsql</value>
  1064. </property>
  1065. </activation>
  1066. <dependencies>
  1067. <dependency>
  1068. <groupId>org.hsqldb</groupId>
  1069. <artifactId>hsqldb</artifactId>
  1070. <scope>test</scope>
  1071. </dependency>
  1072. </dependencies>
  1073. </profile>
  1074. </profiles>
  1075. </project>