fe46e3212f5b4a73f3c809124be6515a4a5a28dd
[hibernate4-maven-plugin] / src / it / hib-test / pom.xml
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>
9   <properties>
10     <!--hibernate.skip>false</hibernate.skip-->
11   </properties>
12   <dependencies>
13     <dependency>
14       <groupId>org.hibernate</groupId>
15       <artifactId>hibernate-core</artifactId>
16       <version>4.3.0.Final</version>
17     </dependency>
18     <dependency>
19       <groupId>org.jadira.usertype</groupId>
20       <artifactId>usertype.jodatime</artifactId>
21       <version>2.0.1</version>
22     </dependency>
23     <dependency>
24       <groupId>joda-time</groupId>
25       <artifactId>joda-time</artifactId>
26       <version>2.7</version>
27     </dependency>
28   </dependencies>
29   <build>
30     <plugins>
31       <plugin>
32         <groupId>org.apache.maven.plugins</groupId>
33         <artifactId>maven-compiler-plugin</artifactId>
34         <version>2.0.2</version>
35         <configuration>
36           <source>1.7</source>
37           <target>1.7</target>
38           <encoding>utf8</encoding>
39           <showWarnings>true</showWarnings>
40         </configuration>
41       </plugin>
42       <!--  Generate database schema files -->
43       <plugin>
44         <groupId>de.juplo</groupId>
45         <artifactId>hibernate4-maven-plugin</artifactId>
46         <version>@project.version@</version>
47         <configuration>
48           <!-- Target of none generates schema only, no DB connection -->
49           <target>none</target>
50           <!-- Generate both CREATE and DROP statements in scripts -->
51           <type>both</type>
52         </configuration>
53         <executions>
54           <execution>
55             <id>create-h2-ddl</id>
56             <goals>
57               <goal>export</goal>
58             </goals>
59             <configuration>
60               <hibernateDialect>org.hibernate.dialect.H2Dialect</hibernateDialect>
61               <outputFile>h2.sql</outputFile>
62             </configuration>
63           </execution>
64           <execution>
65             <id>create-postgres-ddl</id>
66             <goals>
67               <goal>export</goal>
68             </goals>
69             <configuration>
70               <hibernateDialect>org.hibernate.dialect.PostgreSQL82Dialect</hibernateDialect>
71               <outputFile>postgres.sql</outputFile>
72             </configuration>
73           </execution>
74           <execution>
75             <id>create-oracle-ddl</id>
76             <goals>
77               <goal>export</goal>
78             </goals>
79             <configuration>
80               <hibernateDialect>org.hibernate.dialect.Oracle10gDialect</hibernateDialect>
81               <outputFile>oracle.sql</outputFile>
82             </configuration>
83           </execution>
84         </executions>
85       </plugin>
86     </plugins>
87   </build>
88 </project>