88dad6a679633e6e15ba711ad8443567e32d3e74
[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   </dependencies>
19   <build>
20     <plugins>
21       <plugin>
22         <groupId>org.apache.maven.plugins</groupId>
23         <artifactId>maven-compiler-plugin</artifactId>
24         <version>2.0.2</version>
25         <configuration>
26           <source>1.7</source>
27           <target>1.7</target>
28           <encoding>utf8</encoding>
29           <showWarnings>true</showWarnings>
30         </configuration>
31       </plugin>
32       <!--  Generate database schema files -->
33       <plugin>
34         <groupId>de.juplo</groupId>
35         <artifactId>hibernate4-maven-plugin</artifactId>
36         <version>@project.version@</version>
37         <configuration>
38           <!-- Target of none generates schema only, no DB connection -->
39           <target>none</target>
40           <!-- Generate both CREATE and DROP statements in scripts -->
41           <type>both</type>
42         </configuration>
43         <executions>
44           <execution>
45             <id>create-h2-ddl</id>
46             <goals>
47               <goal>export</goal>
48             </goals>
49             <configuration>
50               <hibernateDialect>org.hibernate.dialect.H2Dialect</hibernateDialect>
51               <outputFile>h2.sql</outputFile>
52             </configuration>
53           </execution>
54           <execution>
55             <id>create-postgres-ddl</id>
56             <goals>
57               <goal>export</goal>
58             </goals>
59             <configuration>
60               <hibernateDialect>org.hibernate.dialect.PostgreSQL82Dialect</hibernateDialect>
61               <outputFile>postgres.sql</outputFile>
62             </configuration>
63           </execution>
64           <execution>
65             <id>create-oracle-ddl</id>
66             <goals>
67               <goal>export</goal>
68             </goals>
69             <configuration>
70               <hibernateDialect>org.hibernate.dialect.Oracle10gDialect</hibernateDialect>
71               <outputFile>oracle.sql</outputFile>
72             </configuration>
73           </execution>
74         </executions>
75       </plugin>
76     </plugins>
77   </build>
78 </project>