Mappings from JPA-mapping-files are considered
[hibernate4-maven-plugin] / src / it / multiple-persistence-units / pom.xml
diff --git a/src/it/multiple-persistence-units/pom.xml b/src/it/multiple-persistence-units/pom.xml
new file mode 100644 (file)
index 0000000..1ceb830
--- /dev/null
@@ -0,0 +1,77 @@
+<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">
+
+  <modelVersion>4.0.0</modelVersion>
+  <groupId>de.juplo</groupId>
+  <artifactId>multiple-persistence-units</artifactId>
+  <name>Hibernate 4 Dependency-Test</name>
+  <version>1.0-SNAPSHOT</version>
+
+  <properties>
+    <hibernate-maven-plugin.version>@project.version@</hibernate-maven-plugin.version>
+  </properties>
+
+  <dependencies>
+    <dependency>
+      <groupId>org.hibernate.javax.persistence</groupId>
+      <artifactId>hibernate-jpa-2.1-api</artifactId>
+      <version>1.0.0.Final</version>
+    </dependency>
+  </dependencies>
+
+  <build>
+    <plugins>
+      <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-compiler-plugin</artifactId>
+        <version>3.3</version>
+        <configuration>
+          <source>1.8</source>
+          <target>1.8</target>
+          <encoding>utf8</encoding>
+          <showWarnings>true</showWarnings>
+        </configuration>
+      </plugin>
+      <plugin>
+        <groupId>de.juplo</groupId>
+        <artifactId>hibernate-maven-plugin</artifactId>
+        <version>${hibernate-maven-plugin.version}</version>
+        <executions>
+          <execution>
+            <id>Create A</id>
+            <goals>
+              <goal>create</goal>
+            </goals>
+            <configuration>
+              <persistenceUnit>A</persistenceUnit>
+              <outputFile>a-create.sql</outputFile>
+            </configuration>
+          </execution>
+          <execution>
+            <id>Drop B</id>
+            <goals>
+              <goal>drop</goal>
+            </goals>
+            <configuration>
+              <persistenceUnit>B</persistenceUnit>
+              <outputFile>b-drop.sql</outputFile>
+            </configuration>
+          </execution>
+          <execution>
+            <id>Create B</id>
+            <goals>
+              <goal>create</goal>
+            </goals>
+            <configuration>
+              <persistenceUnit>B</persistenceUnit>
+              <outputFile>b-create.sql</outputFile>
+            </configuration>
+          </execution>
+        </executions>
+        <configuration>
+          <export>false</export>
+          <format>true</format>
+        </configuration>
+      </plugin>
+    </plugins>
+  </build>
+</project>