<?xml version="1.0"?>
<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>
    <parent>
        <groupId>org.n52.sensorweb.sos</groupId>
        <artifactId>hibernate</artifactId>
        <version>4.4.0-M6</version>
    </parent>
    <artifactId>hibernate-mappings</artifactId>
    <name>52°North SOS - Hibernate Mappings</name>
    <packaging>jar</packaging>
    <profiles>
        <profile>
            <id>hbm2java</id>
            <build>
                <plugins>
                    <plugin>
                        <groupId>org.codehaus.mojo</groupId>
                        <artifactId>hibernate3-maven-plugin</artifactId>
                        <version>3.0</version>
                        <executions>
                            <execution>
                                <id>generate</id>
                                <phase>generate-resources</phase>
                                <configuration>
                                    <hibernatetool destdir="target/classes">
                                        <jdbcconfiguration packagename="it" />
                                        <hbm2java destdir="target/generated-sources/hibernate">
                                            <configuration configurationfile="src/main/resources/sos-hibernate.cfg.xml" />
                                        </hbm2java>
                                    </hibernatetool>
                                </configuration>
                                <goals>
                                    <goal>run</goal>
                                </goals>
                            </execution>
                        </executions>
                        <dependencies>
                            <dependency>
                                <groupId>org.hibernate</groupId>
                                <artifactId>hibernate-core</artifactId>
                                <version>3.3.1.GA</version>
                                <exclusions>
                                    <exclusion>
                                        <groupId>org.slf4j</groupId>
                                        <artifactId>slf4j-api</artifactId>
                                    </exclusion>
                                    <exclusion>
                                        <groupId>org.slf4j</groupId>
                                        <artifactId>slf4j-jdk14</artifactId>
                                    </exclusion>
                                </exclusions>
                            </dependency>
                            <dependency>
                                <groupId>org.slf4j</groupId>
                                <artifactId>slf4j-api</artifactId>
                                <version>1.7.5</version>
                            </dependency>
                        </dependencies>
                    </plugin>
                </plugins>
            </build>
        </profile>
    </profiles>
</project>
