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