pom.xml 3.2 KB
Newer Older
1
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
N
Nico Rehwaldt 已提交
2
         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
3 4 5 6 7 8 9 10
  <modelVersion>4.0.0</modelVersion>

  <name>Activiti DB Clean</name>
  <description>Activiti DB Clean</description>
  <groupId>org.activiti</groupId>
  <artifactId>activiti-dbclean</artifactId>

  <packaging>pom</packaging>
T
Tijs Rademakers 已提交
11
  <version>5.15.1</version>
12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33

  <dependencies>
    <dependency>
      <groupId>com.h2database</groupId>
      <artifactId>h2</artifactId>
      <version>1.2.132</version>
    </dependency>
    <dependency>
      <groupId>com.oracle.jdbc</groupId>
      <artifactId>ojdbc5</artifactId>
      <version>11.2.0.1.0</version>
    </dependency>
    <dependency>
      <groupId>mysql</groupId>
      <artifactId>mysql-connector-java</artifactId>
      <version>5.1.6</version>
    </dependency>
    <dependency>
      <groupId>net.sourceforge.jtds</groupId>
      <artifactId>jtds</artifactId>
      <version>1.2.4</version>
    </dependency>
N
Nico Rehwaldt 已提交
34 35 36 37 38
    <dependency>
      <groupId>postgresql</groupId>
      <artifactId>postgresql</artifactId>
      <version>8.4-701.jdbc4</version>
    </dependency>
39 40 41 42 43 44 45 46 47
    <dependency>
      <groupId>org.activiti</groupId>
      <artifactId>activiti-engine</artifactId>
      <version>${version}</version>
    </dependency>
  </dependencies>

  <repositories>
    <repository>
48 49
      <id>activiti</id>
      <name>Activiti</name>
50
      <url>https://maven.alfresco.com/nexus/content/repositories/activiti/</url>
51 52 53 54 55 56 57 58 59 60 61
    </repository>
  </repositories>

  <pluginRepositories>
    <pluginRepository>
      <id>maven2.java.net</id>
      <name>Java.net Repository for Maven 2</name>
      <url>http://download.java.net/maven/2/</url>
    </pluginRepository>
    <pluginRepository>
      <id>sonatype-snapshot-repo</id>
N
Nico Rehwaldt 已提交
62 63 64
      <snapshots>
        <enabled>true</enabled>
      </snapshots>
65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82
      <url>https://repository.sonatype.org/content/repositories/apache-snapshots</url>
    </pluginRepository>
  </pluginRepositories>

  <build>
    <plugins>
      <plugin>
        <artifactId>maven-antrun-plugin</artifactId>
        <version>1.4</version>
        <executions>
          <execution>
            <id>clean schema</id>
            <phase>initialize</phase>
            <goals>
              <goal>run</goal>
            </goals>
            <configuration>
              <tasks>
83 84
                <echo message="loading properties from ${user.home}/.activiti/${cfgdir}/build.${database}.properties" />
                <property file="${user.home}/.activiti/${cfgdir}/build.${database}.properties" />
85 86 87 88 89 90
                <echo message="cleaning db ${jdbc.url}" />
                <sql driver="${jdbc.driver}" 
                     password="${jdbc.password}" 
                     url="${jdbc.url}" 
                     userid="${jdbc.username}"
                     onerror="continue"
91
                     autocommit="true"
92
                     classpathref="maven.test.classpath" 
93
                     src="scripts/drop.activiti.${database}.sql"/>
94 95 96 97 98 99 100 101
              </tasks>
            </configuration>
          </execution>
        </executions>
      </plugin>
    </plugins>
  </build>
</project>