<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">
  <modelVersion>4.0.0</modelVersion>

  <parent>
    <groupId>org.codehaus.mojo.hibernate3</groupId>
    <artifactId>maven-hibernate3</artifactId>
    <version>2.1</version>
  </parent>

  <groupId>org.codehaus.mojo</groupId>
  <artifactId>hibernate3-maven-plugin</artifactId>
  <packaging>maven-plugin</packaging>
  <name>Hibernate3 Maven Plugin</name>
  <description>Maven plugin based on the hibernate-tools project.</description>

  <dependencies>

    <dependency>
      <groupId>log4j</groupId>
      <artifactId>log4j</artifactId>
    </dependency>
    <dependency>
      <groupId>org.codehaus.mojo.hibernate3</groupId>
      <artifactId>maven-hibernate3-api</artifactId>
      <version>${project.parent.version}</version>
    </dependency>
    <dependency>
      <groupId>org.apache.maven.reporting</groupId>
      <artifactId>maven-reporting-impl</artifactId>
    </dependency>
    <dependency>
      <groupId>org.apache.maven.shared</groupId>
      <artifactId>maven-plugin-testing-harness</artifactId>
      <scope>test</scope>
    </dependency>
    <dependency>
      <groupId>hsqldb</groupId>
      <artifactId>hsqldb</artifactId>
      <scope>test</scope>
    </dependency>

  </dependencies>

  <build>

    <plugins>

      <plugin>
        <artifactId>maven-compiler-plugin</artifactId>
        <configuration>
          <source>1.4</source>
          <target>1.4</target>
        </configuration>
        <executions>
          <execution>
            <id>compile-tests</id>
            <phase>process-test-sources</phase>
            <goals>
              <goal>testCompile</goal>
            </goals>
            <configuration>
              <source>1.5</source>
              <target>1.5</target>
            </configuration>
          </execution>
        </executions>
      </plugin>
      <plugin>
        <artifactId>maven-plugin-plugin</artifactId>
        <configuration>
          <prefix>hibernate3</prefix>
        </configuration>
      </plugin>

    </plugins>

  </build>

  <profiles>

    <profile>
      <id>jdk14</id>
      <activation>
        <jdk>1.4</jdk>
      </activation>
      <dependencies>

        <dependency>
          <groupId>org.codehaus.mojo.hibernate3</groupId>
          <artifactId>maven-hibernate3-jdk14</artifactId>
          <version>${project.parent.version}</version>
        </dependency>

      </dependencies>
    </profile>
    <profile>
      <id>jdk15</id>
      <activation>
        <jdk>1.5</jdk>
      </activation>
      <dependencies>

        <dependency>
          <groupId>org.codehaus.mojo.hibernate3</groupId>
          <artifactId>maven-hibernate3-jdk14</artifactId>
          <version>${project.parent.version}</version>
        </dependency>
        <dependency>
          <groupId>org.codehaus.mojo.hibernate3</groupId>
          <artifactId>maven-hibernate3-jdk15</artifactId>
          <version>${project.parent.version}</version>
        </dependency>

      </dependencies>
    </profile>
    <profile>
      <id>jdk16</id>
      <activation>
        <jdk>1.6</jdk>
      </activation>
      <dependencies>

        <dependency>
          <groupId>org.codehaus.mojo.hibernate3</groupId>
          <artifactId>maven-hibernate3-jdk14</artifactId>
          <version>${project.parent.version}</version>
        </dependency>
        <dependency>
          <groupId>org.codehaus.mojo.hibernate3</groupId>
          <artifactId>maven-hibernate3-jdk15</artifactId>
          <version>${project.parent.version}</version>
        </dependency>

      </dependencies>
    </profile>

  </profiles>

</project>
