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
5 <groupId>net.java.examples</groupId>
\r
6 <artifactId>hmp-testclasses-annotationscanning</artifactId>
\r
7 <version>0.0.1-SNAPSHOT</version>
\r
9 <packaging>jar</packaging>
\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
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
19 <plugin.compiler.version>3.3</plugin.compiler.version>
\r
21 <jboss.spec.version>3.0.2.Final-redhat-15</jboss.spec.version>
\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
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
38 <enabled>true</enabled>
\r
39 <updatePolicy>never</updatePolicy>
\r
42 <enabled>false</enabled>
\r
43 <updatePolicy>never</updatePolicy>
\r
47 <pluginRepositories>
\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
54 <enabled>true</enabled>
\r
55 <updatePolicy>never</updatePolicy>
\r
58 <enabled>false</enabled>
\r
59 <updatePolicy>never</updatePolicy>
\r
62 </pluginRepositories>
\r
66 <!-- Deltspike Dependencies -->
\r
68 <groupId>org.apache.deltaspike.core</groupId>
\r
69 <artifactId>deltaspike-core-api</artifactId>
\r
70 <version>1.0.1</version>
\r
73 <groupId>org.apache.deltaspike.core</groupId>
\r
74 <artifactId>deltaspike-core-impl</artifactId>
\r
75 <version>1.0.1</version>
\r
78 <!-- Different Compile Dependencies -->
\r
80 <groupId>commons-beanutils</groupId>
\r
81 <artifactId>commons-beanutils</artifactId>
\r
82 <version>1.8.3.redhat-6</version>
\r
85 <groupId>commons-collections</groupId>
\r
86 <artifactId>commons-collections</artifactId>
\r
87 <version>3.2.1.redhat-3</version>
\r
90 <groupId>org.apache.commons</groupId>
\r
91 <artifactId>commons-lang3</artifactId>
\r
92 <version>3.4</version>
\r
95 <groupId>com.google.guava</groupId>
\r
96 <artifactId>guava</artifactId>
\r
97 <version>13.0.1.redhat-2</version>
\r
100 <!-- SLF4J&Logback Dependencies -->
\r
102 <groupId>org.slf4j</groupId>
\r
103 <artifactId>slf4j-api</artifactId>
\r
104 <version>${slf4j.version}</version>
\r
105 <scope>provided</scope>
\r
108 <groupId>ch.qos.logback</groupId>
\r
109 <artifactId>logback-classic</artifactId>
\r
110 <version>${logback.version}</version>
\r
113 <!-- Hibernate Dependencies -->
\r
115 <groupId>org.hibernate</groupId>
\r
116 <artifactId>hibernate-validator</artifactId>
\r
117 <version>${hibernate.validator.version}</version>
\r
120 <groupId>org.hibernate</groupId>
\r
121 <artifactId>hibernate-core</artifactId>
\r
122 <version>${hibernate.version}</version>
\r
125 <groupId>org.hibernate</groupId>
\r
126 <artifactId>hibernate-entitymanager</artifactId>
\r
127 <version>${hibernate.version}</version>
\r
128 <scope>test</scope>
\r
131 <!-- Arquillian & OpenEJB-Dependencies -->
\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
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
145 <artifactId>slf4j-jdk14</artifactId>
\r
146 <groupId>org.slf4j</groupId>
\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
157 <artifactId>log4j</artifactId>
\r
158 <groupId>log4j</groupId>
\r
161 <artifactId>commons-collections</artifactId>
\r
162 <groupId>commons-collections</groupId>
\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
173 <!-- H2 Database -->
\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
183 <groupId>junit</groupId>
\r
184 <artifactId>junit</artifactId>
\r
185 <version>4.12</version>
\r
186 <scope>test</scope>
\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
202 <groupId>org.apache.maven.plugins</groupId>
\r
203 <artifactId>maven-compiler-plugin</artifactId>
\r
204 <version>${plugin.compiler.version}</version>
\r
206 <source>${java.source}</source>
\r
207 <target>${java.target}</target>
\r
211 <groupId>de.juplo</groupId>
\r
212 <artifactId>hibernate-maven-plugin</artifactId>
\r
213 <version>@project.version@</version>
\r
216 <id>Create Drop-Schema</id>
\r
217 <phase>test-compile</phase>
\r
222 <outputFile>db-schema/drop-schema.ddl</outputFile>
\r
226 <id>Create Create-Schema</id>
\r
227 <phase>test-compile</phase>
\r
229 <goal>create</goal>
\r
232 <outputFile>db-schema/create-schema.ddl</outputFile>
\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
244 <!-- Other Properties -->
\r
245 <format>true</format>
\r
246 <scanTestClasses>true</scanTestClasses>
\r
250 <groupId>com.h2database</groupId>
\r
251 <artifactId>h2</artifactId>
\r
252 <version>1.3.168-redhat-2</version>
\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
263 <groupId>org.eclipse.m2e</groupId>
\r
264 <artifactId>lifecycle-mapping</artifactId>
\r
265 <version>1.0.0</version>
\r
267 <lifecycleMappingMetadata>
\r
270 <pluginExecutionFilter>
\r
271 <groupId>de.juplo</groupId>
\r
272 <artifactId>hibernate-maven-plugin</artifactId>
\r
273 <versionRange>[2.0.0,)</versionRange>
\r
276 <goal>create</goal>
\r
278 </pluginExecutionFilter>
\r
283 </pluginExecutions>
\r
284 </lifecycleMappingMetadata>
\r
288 </pluginManagement>
\r