Configured the 5.1.17-tutorials as integration-tests for the plugin
[hibernate4-maven-plugin] / src / it / multiple-persistence-units / pom.xml
1 <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">
2
3   <modelVersion>4.0.0</modelVersion>
4   <groupId>de.juplo</groupId>
5   <artifactId>multiple-persistence-units</artifactId>
6   <name>Hibernate 4 Dependency-Test</name>
7   <version>1.0-SNAPSHOT</version>
8
9   <properties>
10     <hibernate-maven-plugin.version>@project.version@</hibernate-maven-plugin.version>
11   </properties>
12
13   <dependencies>
14     <dependency>
15       <groupId>org.hibernate.javax.persistence</groupId>
16       <artifactId>hibernate-jpa-2.1-api</artifactId>
17       <version>1.0.0.Final</version>
18     </dependency>
19   </dependencies>
20
21   <build>
22     <plugins>
23       <plugin>
24         <groupId>org.apache.maven.plugins</groupId>
25         <artifactId>maven-compiler-plugin</artifactId>
26         <version>3.3</version>
27         <configuration>
28           <source>1.8</source>
29           <target>1.8</target>
30           <encoding>utf8</encoding>
31           <showWarnings>true</showWarnings>
32         </configuration>
33       </plugin>
34       <plugin>
35         <groupId>de.juplo</groupId>
36         <artifactId>hibernate-maven-plugin</artifactId>
37         <version>${hibernate-maven-plugin.version}</version>
38         <executions>
39           <execution>
40             <id>Create A</id>
41             <goals>
42               <goal>create</goal>
43             </goals>
44             <configuration>
45               <persistenceUnit>A</persistenceUnit>
46               <outputFile>a-create.sql</outputFile>
47             </configuration>
48           </execution>
49           <execution>
50             <id>Drop B</id>
51             <goals>
52               <goal>drop</goal>
53             </goals>
54             <configuration>
55               <persistenceUnit>B</persistenceUnit>
56               <outputFile>b-drop.sql</outputFile>
57             </configuration>
58           </execution>
59           <execution>
60             <id>Create B</id>
61             <goals>
62               <goal>create</goal>
63             </goals>
64             <configuration>
65               <persistenceUnit>B</persistenceUnit>
66               <outputFile>b-create.sql</outputFile>
67             </configuration>
68           </execution>
69         </executions>
70         <configuration>
71           <execute>false</execute>
72           <format>true</format>
73         </configuration>
74       </plugin>
75     </plugins>
76   </build>
77 </project>