0cbafd1274ffb9d9d16da38eade2147b02b13e9b
[hibernate-maven-plugin] / pom.xml
1 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"\r
2   xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">\r
3   <modelVersion>4.0.0</modelVersion>\r
4 \r
5   <groupId>net.java.examples</groupId>\r
6   <artifactId>hmp-testclasses-annotationscanning</artifactId>\r
7   <version>0.0.1-SNAPSHOT</version>\r
8   \r
9   <packaging>jar</packaging>\r
10 \r
11   <name>Hibernate-Maven-Plugin Scan Testclasses Example</name>\r
12   <description>Sample Maven Project for Testing the Annotation-Scanning from TestClasses</description>\r
13 \r
14   <properties>\r
15     <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>\r
16     <java.source>1.8</java.source>\r
17         <java.target>1.8</java.target>\r
18     \r
19     <plugin.compiler.version>3.3</plugin.compiler.version>\r
20     \r
21     <jboss.spec.version>3.0.2.Final-redhat-15</jboss.spec.version>\r
22     \r
23     <org.apache.openejb.version>4.7.4</org.apache.openejb.version>\r
24     <logback.version>1.1.3</logback.version>\r
25     <slf4j.version>1.7.7</slf4j.version>\r
26     <hibernate.version>4.2.18.Final-redhat-2</hibernate.version>\r
27     <hibernate.validator.version>4.3.2.Final-redhat-2</hibernate.validator.version>\r
28     \r
29   </properties>\r
30 \r
31   <repositories>\r
32     <repository>\r
33       <id>redhat-techpreview-all-repository</id>\r
34       <name>Red Hat Tech Preview repository (all)</name>\r
35       <url>http://maven.repository.redhat.com/techpreview/all/</url>\r
36       <layout>default</layout>\r
37       <releases>\r
38         <enabled>true</enabled>\r
39         <updatePolicy>never</updatePolicy>\r
40       </releases>\r
41       <snapshots>\r
42         <enabled>false</enabled>\r
43         <updatePolicy>never</updatePolicy>\r
44       </snapshots>\r
45     </repository>\r
46   </repositories>\r
47   <pluginRepositories>\r
48     <pluginRepository>\r
49       <id>redhat-techpreview-all-repository</id>\r
50       <name>Red Hat Tech Preview repository (all)</name>\r
51       <url>http://maven.repository.redhat.com/techpreview/all/</url>\r
52       <layout>default</layout>\r
53       <releases>\r
54         <enabled>true</enabled>\r
55         <updatePolicy>never</updatePolicy>\r
56       </releases>\r
57       <snapshots>\r
58         <enabled>false</enabled>\r
59         <updatePolicy>never</updatePolicy>\r
60       </snapshots>\r
61     </pluginRepository>\r
62   </pluginRepositories>\r
63 \r
64   <dependencies>\r
65           \r
66         <!-- Deltspike Dependencies -->\r
67         <dependency>\r
68                 <groupId>org.apache.deltaspike.core</groupId>\r
69                 <artifactId>deltaspike-core-api</artifactId>\r
70                 <version>1.0.1</version>\r
71         </dependency>\r
72         <dependency>\r
73                 <groupId>org.apache.deltaspike.core</groupId>\r
74                 <artifactId>deltaspike-core-impl</artifactId>\r
75                 <version>1.0.1</version>\r
76         </dependency>\r
77         \r
78         <!-- Different Compile Dependencies -->\r
79         <dependency>\r
80                 <groupId>commons-beanutils</groupId>\r
81                 <artifactId>commons-beanutils</artifactId>\r
82                 <version>1.8.3.redhat-6</version>\r
83         </dependency>\r
84         <dependency>\r
85                 <groupId>commons-collections</groupId>\r
86                 <artifactId>commons-collections</artifactId>\r
87                 <version>3.2.1.redhat-3</version>\r
88         </dependency>\r
89         <dependency>\r
90                 <groupId>org.apache.commons</groupId>\r
91                 <artifactId>commons-lang3</artifactId>\r
92                 <version>3.4</version>\r
93         </dependency>\r
94         <dependency>\r
95                 <groupId>com.google.guava</groupId>\r
96                 <artifactId>guava</artifactId>\r
97                 <version>13.0.1.redhat-2</version>\r
98         </dependency>\r
99       \r
100         <!-- SLF4J&Logback Dependencies -->\r
101         <dependency>\r
102                 <groupId>org.slf4j</groupId>\r
103                 <artifactId>slf4j-api</artifactId>\r
104                 <version>${slf4j.version}</version>\r
105                 <scope>provided</scope>\r
106         </dependency>\r
107         <dependency>\r
108                 <groupId>ch.qos.logback</groupId>\r
109                 <artifactId>logback-classic</artifactId>\r
110                 <version>${logback.version}</version>\r
111         </dependency>\r
112         \r
113         <!-- Hibernate Dependencies -->\r
114         <dependency>\r
115                 <groupId>org.hibernate</groupId>\r
116                 <artifactId>hibernate-validator</artifactId>\r
117                 <version>${hibernate.validator.version}</version>\r
118         </dependency>\r
119         <dependency>\r
120                 <groupId>org.hibernate</groupId>\r
121                 <artifactId>hibernate-core</artifactId>\r
122                 <version>${hibernate.version}</version>\r
123         </dependency>\r
124         <dependency>\r
125                 <groupId>org.hibernate</groupId>\r
126                 <artifactId>hibernate-entitymanager</artifactId>\r
127                 <version>${hibernate.version}</version>\r
128                 <scope>test</scope>\r
129         </dependency>\r
130 \r
131     <!-- Arquillian & OpenEJB-Dependencies -->\r
132     <dependency>\r
133                 <groupId>org.apache.openejb</groupId>\r
134                 <artifactId>arquillian-openejb-embedded-4</artifactId>\r
135                 <version>${org.apache.openejb.version}</version>\r
136                 <scope>test</scope>\r
137         </dependency>\r
138         <dependency>\r
139                 <groupId>org.apache.openejb</groupId>\r
140                 <artifactId>openejb-core</artifactId>\r
141                 <version>${org.apache.openejb.version}</version>\r
142                 <scope>test</scope>\r
143                 <exclusions>\r
144                         <exclusion>\r
145                                 <artifactId>slf4j-jdk14</artifactId>\r
146                                 <groupId>org.slf4j</groupId>\r
147                         </exclusion>\r
148                 </exclusions>\r
149         </dependency>\r
150         <dependency>\r
151                 <groupId>org.jboss.arquillian.extension</groupId>\r
152                 <artifactId>arquillian-persistence-impl</artifactId>\r
153                 <version>1.0.0.Alpha6</version>\r
154                 <scope>test</scope>\r
155                 <exclusions>\r
156           <exclusion>\r
157             <artifactId>log4j</artifactId>\r
158             <groupId>log4j</groupId>\r
159           </exclusion>\r
160           <exclusion>\r
161             <artifactId>commons-collections</artifactId>\r
162             <groupId>commons-collections</groupId>\r
163           </exclusion>\r
164         </exclusions>\r
165         </dependency>\r
166         <dependency>\r
167                 <groupId>org.jboss.shrinkwrap.resolver</groupId>\r
168                 <artifactId>shrinkwrap-resolver-impl-maven</artifactId>\r
169                 <version>2.1.0</version>\r
170                 <scope>test</scope>\r
171         </dependency>\r
172         \r
173         <!-- H2 Database -->\r
174         <dependency>\r
175                 <groupId>com.h2database</groupId>\r
176                 <artifactId>h2</artifactId>\r
177                 <version>1.3.168.redhat-4</version>\r
178                 <scope>test</scope>\r
179         </dependency>\r
180         \r
181         <!-- JUnit -->\r
182     <dependency>\r
183       <groupId>junit</groupId>\r
184       <artifactId>junit</artifactId>\r
185       <version>4.12</version>\r
186       <scope>test</scope>\r
187     </dependency>\r
188     \r
189     <!-- AssertJ -->\r
190         <dependency>\r
191                 <groupId>org.assertj</groupId>\r
192                 <artifactId>assertj-core</artifactId>\r
193                 <version>2.0.0</version>\r
194                 <scope>test</scope>\r
195         </dependency>\r
196         \r
197   </dependencies>\r
198   \r
199   <build>\r
200                 <plugins>\r
201                         <plugin>\r
202                                 <groupId>org.apache.maven.plugins</groupId>\r
203                                 <artifactId>maven-compiler-plugin</artifactId>\r
204                                 <version>${plugin.compiler.version}</version>\r
205                                 <configuration>\r
206                                         <source>${java.source}</source>\r
207                                         <target>${java.target}</target>\r
208                                 </configuration>\r
209                         </plugin>\r
210                         <plugin>\r
211                                 <groupId>de.juplo</groupId>\r
212                                 <artifactId>hibernate-maven-plugin</artifactId>\r
213                                 <version>@project.version@</version>\r
214                                 <executions>\r
215                                         <execution>\r
216                                                 <id>Create Drop-Schema</id>\r
217                                                 <phase>test-compile</phase>\r
218                                                 <goals>\r
219                                                         <goal>drop</goal>\r
220                                                 </goals>\r
221                                                 <configuration>\r
222                                                         <outputFile>db-schema/drop-schema.ddl</outputFile>\r
223                                                 </configuration>\r
224                                         </execution>\r
225                                         <execution>\r
226                                                 <id>Create Create-Schema</id>\r
227                                                 <phase>test-compile</phase>\r
228                                                 <goals>\r
229                                                         <goal>create</goal>\r
230                                                 </goals>\r
231                                                 <configuration>\r
232                                                         <outputFile>db-schema/create-schema.ddl</outputFile>\r
233                                                 </configuration>\r
234                                         </execution>\r
235                                 </executions>\r
236                                 <configuration>\r
237                                         <!-- Connection-Properties -->\r
238                                         <dialect>org.hibernate.dialect.H2Dialect</dialect>\r
239                                         <driver>org.h2.Driver</driver>\r
240                                     <url><![CDATA[jdbc:h2:file:${project.build.directory}/db/test]]></url>\r
241                                     <username>sa</username>\r
242                                     <password>sa</password>\r
243 \r
244                                         <!-- Other Properties -->\r
245                                         <format>true</format>\r
246                                         <scanTestClasses>true</scanTestClasses>\r
247                                 </configuration>\r
248                                 <dependencies>\r
249                                         <dependency>\r
250                                                 <groupId>com.h2database</groupId>\r
251                                                 <artifactId>h2</artifactId>\r
252                                                 <version>1.3.168-redhat-2</version>\r
253                                         </dependency>\r
254                                 </dependencies>\r
255                         </plugin>\r
256                 </plugins>\r
257                 \r
258                 <pluginManagement>\r
259                         <plugins>\r
260                                 <!--This plugin's configuration is used to store Eclipse m2e settings\r
261                                         only. It has no influence on the Maven build itself. -->\r
262                                 <plugin>\r
263                                         <groupId>org.eclipse.m2e</groupId>\r
264                                         <artifactId>lifecycle-mapping</artifactId>\r
265                                         <version>1.0.0</version>\r
266                                         <configuration>\r
267                                                 <lifecycleMappingMetadata>\r
268                                                         <pluginExecutions>\r
269                                                                 <pluginExecution>\r
270                                                                         <pluginExecutionFilter>\r
271                                                                                 <groupId>de.juplo</groupId>\r
272                                                                                 <artifactId>hibernate-maven-plugin</artifactId>\r
273                                                                                 <versionRange>[2.0.0,)</versionRange>\r
274                                                                                 <goals>\r
275                                                                                         <goal>drop</goal>\r
276                                                                                         <goal>create</goal>\r
277                                                                                 </goals>\r
278                                                                         </pluginExecutionFilter>\r
279                                                                         <action>\r
280                                                                                 <ignore />\r
281                                                                         </action>\r
282                                                                 </pluginExecution>\r
283                                                         </pluginExecutions>\r
284                                                 </lifecycleMappingMetadata>\r
285                                         </configuration>\r
286                                 </plugin>\r
287                         </plugins>\r
288                 </pluginManagement>\r
289         </build>\r
290   \r
291 </project>\r