1 <?xml version="1.0" encoding="UTF-8"?>
2 <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">
3 <modelVersion>4.0.0</modelVersion>
4 <groupId>de.juplo</groupId>
5 <artifactId>hibernate4-basictest</artifactId>
6 <name>Hibernate 4 Test</name>
7 <version>0.1-SNAPSHOT</version>
8 <packaging>jar</packaging>
10 <!--hibernate.skip>false</hibernate.skip-->
11 <hibernate.exportdir>${project.build.directory}/hibernate4-schema/another/subdir</hibernate.exportdir>
15 <groupId>org.hibernate</groupId>
16 <artifactId>hibernate-core</artifactId>
17 <version>4.3.0.Final</version>
23 <groupId>org.apache.maven.plugins</groupId>
24 <artifactId>maven-compiler-plugin</artifactId>
25 <version>2.0.2</version>
29 <encoding>utf8</encoding>
30 <showWarnings>true</showWarnings>
33 <!-- Generate database schema files -->
35 <groupId>de.juplo</groupId>
36 <artifactId>hibernate4-maven-plugin</artifactId>
37 <version>@project.version@</version>
39 <!-- Target of none generates schema only, no DB connection -->
41 <!-- Generate both CREATE and DROP statements in scripts -->
46 <id>create-h2-ddl</id>
51 <hibernateDialect>org.hibernate.dialect.H2Dialect</hibernateDialect>
52 <outputFile>${hibernate.exportdir}/h2.sql</outputFile>
56 <id>create-postgres-ddl</id>
61 <hibernateDialect>org.hibernate.dialect.PostgreSQL82Dialect</hibernateDialect>
62 <outputFile>${hibernate.exportdir}/postgres.sql</outputFile>
66 <id>create-oracle-ddl</id>
71 <hibernateDialect>org.hibernate.dialect.Oracle10gDialect</hibernateDialect>
72 <outputFile>${hibernate.exportdir}/oracle.sql</outputFile>