Added the hibernate-maven-plugin to generate the schemata for all pu's
[jpa-converters] / pom.xml
1 <project
2     xmlns="http://maven.apache.org/POM/4.0.0"
3     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4     xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
5
6   <modelVersion>4.0.0</modelVersion>
7
8   <parent>
9     <groupId>org.sonatype.oss</groupId>
10     <artifactId>oss-parent</artifactId>
11     <version>9</version>
12   </parent>
13
14
15   <groupId>de.juplo</groupId>
16   <artifactId>jpa-converters</artifactId>
17   <name>Juplo - JPA converters</name>
18   <description>Collection of usefull converters for JPA</description>
19   <version>1.0-SNAPSHOT</version>
20   <packaging>jar</packaging>
21   <url>http://www.juplo.de/jpa-converters</url>
22
23
24   <prerequisites>
25     <maven>2.0.6</maven>
26   </prerequisites>
27
28
29   <licenses>
30     <license>
31       <name>The Apache Software License, Version 2.0</name>
32       <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
33       <distribution>repo</distribution>
34       <comments>A business-friendly OSS license</comments>
35     </license>
36   </licenses>
37
38   <scm>
39     <connection>scm:git:http://juplo.de/git/jpa-converters</connection>
40     <developerConnection>scm:git:ssh://juplo.de:/var/lib/git/juplo/jpa-converters</developerConnection>
41     <url>http://juplo.de/gitweb/?p=jpa-converters;a=summary</url>
42   </scm>
43
44
45   <developers>
46     <developer>
47       <id>kai</id>
48       <name>Kai Moritz</name>
49       <email>kai@juplo.de</email>
50     </developer>
51   </developers>
52
53   <contributors>
54   </contributors>
55
56
57   <properties>
58
59     <!-- character encoding -->
60     <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
61
62     <!-- used versions -->
63     <h2.version>1.4.190</h2.version>
64     <hibernate.version>5.0.11.Final</hibernate.version>
65     <hibernate-jpa-2.1-api.version>1.0.0.Final</hibernate-jpa-2.1-api.version>
66     <junit.version>4.12</junit.version>
67     <slf4j.version>1.7.22</slf4j.version>
68
69   </properties>
70
71   <dependencies>
72
73     <!-- JPA -->
74     <dependency>
75       <groupId>org.hibernate.javax.persistence</groupId>
76       <artifactId>hibernate-jpa-2.1-api</artifactId>
77       <version>${hibernate-jpa-2.1-api.version}</version>
78     </dependency>
79
80     <!-- Logging -->
81     <dependency>
82       <groupId>org.slf4j</groupId>
83       <artifactId>slf4j-api</artifactId>
84       <version>${slf4j.version}</version>
85     </dependency>
86
87     <!-- Testing -->
88     <dependency>
89       <groupId>junit</groupId>
90       <artifactId>junit</artifactId>
91       <version>${junit.version}</version>
92       <scope>test</scope>
93     </dependency>
94     <dependency>
95       <groupId>org.hibernate</groupId>
96       <artifactId>hibernate-entitymanager</artifactId>
97       <version>${hibernate.version}</version>
98       <scope>test</scope>
99     </dependency>
100     <dependency>
101       <groupId>com.h2database</groupId>
102       <artifactId>h2</artifactId>
103       <version>${h2.version}</version>
104       <scope>test</scope>
105     </dependency>
106     <dependency>
107       <groupId>de.juplo.yourshouter.api</groupId>
108       <artifactId>data-model</artifactId>
109       <version>1.5.1</version>
110       <scope>test</scope>
111     </dependency>
112
113   </dependencies>
114
115
116   <distributionManagement>
117     <site>
118       <id>www.juplo.de</id>
119       <url>scp://juplo.de/var/www/juplo/facebook-utils-${project.version}</url>
120     </site>
121   </distributionManagement>
122
123
124   <build>
125     <plugins>
126       <plugin>
127         <groupId>org.apache.maven.plugins</groupId>
128         <artifactId>maven-compiler-plugin</artifactId>
129         <version>3.3</version>
130         <configuration>
131           <source>1.8</source>
132           <target>1.8</target>
133           <encoding>utf8</encoding>
134           <showWarnings>true</showWarnings>
135         </configuration>
136       </plugin>
137       <plugin>
138         <groupId>org.apache.maven.plugins</groupId>
139         <artifactId>maven-source-plugin</artifactId>
140         <version>2.1.2</version><!-- Should be same version as in oss-parent-7 -->
141         <executions>
142           <execution>
143             <id>attach-sources</id>
144             <phase>verify</phase>
145             <goals>
146               <goal>jar</goal>
147             </goals>
148           </execution>
149         </executions>
150       </plugin>
151       <plugin>
152         <groupId>de.juplo</groupId>
153         <artifactId>hibernate-maven-plugin</artifactId>
154         <version>2.1.0</version>
155         <configuration>
156           <execute>false</execute>
157           <show>true</show>
158           <format>true</format>
159         </configuration>
160         <executions>
161           <execution>
162             <id>Schema for Persistence-Unit annotated</id>
163             <phase>process-test-classes</phase>
164             <goals>
165               <goal>create</goal>
166             </goals>
167             <configuration>
168               <persistenceUnit>annotated</persistenceUnit>
169               <outputFile>schema-annotated.sql</outputFile>
170             </configuration>
171           </execution>
172           <execution>
173             <id>Schema for Persistence-Unit xml</id>
174             <phase>process-test-classes</phase>
175             <goals>
176               <goal>create</goal>
177             </goals>
178             <configuration>
179               <persistenceUnit>xml</persistenceUnit>
180               <outputFile>schema-xml.sql</outputFile>
181             </configuration>
182           </execution>
183           <execution>
184             <id>Schema for Persistence-Unit data-model</id>
185             <phase>process-test-classes</phase>
186             <goals>
187               <goal>create</goal>
188             </goals>
189             <configuration>
190               <persistenceUnit>data-model</persistenceUnit>
191               <outputFile>schema-data-model.sql</outputFile>
192             </configuration>
193           </execution>
194         </executions>
195         <dependencies>
196           <dependency>
197             <groupId>com.h2database</groupId>
198             <artifactId>h2</artifactId>
199             <version>${h2.version}</version>
200           </dependency>
201           <dependency>
202             <groupId>de.juplo.yourshouter.api</groupId>
203             <artifactId>data-model</artifactId>
204             <version>1.5.1</version>
205           </dependency>
206         </dependencies>
207       </plugin>
208     </plugins>
209   </build>
210
211
212   <reporting>
213     <plugins>
214       <plugin>
215         <groupId>org.apache.maven.plugins</groupId>
216         <artifactId>maven-changes-plugin</artifactId>
217         <version>2.11</version>
218       </plugin>
219       <plugin>
220         <groupId>org.apache.maven.plugins</groupId>
221         <artifactId>maven-javadoc-plugin</artifactId>
222         <version>2.10.3</version>
223       </plugin>
224       <plugin>
225         <groupId>org.apache.maven.plugins</groupId>
226         <artifactId>maven-jxr-plugin</artifactId>
227         <version>2.5</version>
228       </plugin>
229       <plugin>
230         <groupId>org.apache.maven.plugins</groupId>
231         <artifactId>maven-surefire-report-plugin</artifactId>
232         <version>2.18.1</version>
233       </plugin>
234       <plugin>
235         <groupId>org.apache.maven.plugins</groupId>
236         <artifactId>maven-scm-plugin</artifactId>
237         <version>1.9.4</version>
238         <configuration>
239           <goals>install</goals>
240         </configuration>
241       </plugin>
242       <plugin>
243         <groupId>org.apache.maven.plugins</groupId>
244         <artifactId>maven-pmd-plugin</artifactId>
245         <version>3.5</version>
246         <configuration>
247           <linkXref>true</linkXref>
248           <targetJdk>1.5</targetJdk>
249         </configuration>
250       </plugin>
251     </plugins>
252   </reporting>
253
254 </project>