|
47 | 47 | <dependency> |
48 | 48 | <groupId>jakarta.xml.bind</groupId> |
49 | 49 | <artifactId>jakarta.xml.bind-api</artifactId> |
50 | | - </dependency> |
| 50 | + </dependency> |
51 | 51 | <dependency> |
52 | 52 | <groupId>org.junit.jupiter</groupId> |
53 | 53 | <artifactId>junit-jupiter-engine</artifactId> |
|
124 | 124 | <id>default-descriptor</id> |
125 | 125 | <phase>process-classes</phase> |
126 | 126 | <configuration> |
127 | | - <goalPrefix>hibernate-tools</goalPrefix> |
128 | | - </configuration> |
| 127 | + <goalPrefix>hibernate-tools</goalPrefix> |
| 128 | + </configuration> |
129 | 129 | </execution> |
130 | 130 | <execution> |
131 | 131 | <id>help-goal</id> |
132 | 132 | <goals> |
133 | 133 | <goal>helpmojo</goal> |
134 | 134 | </goals> |
135 | 135 | <configuration> |
136 | | - <goalPrefix>hibernate-tools</goalPrefix> |
137 | | - </configuration> |
| 136 | + <goalPrefix>hibernate-tools</goalPrefix> |
| 137 | + </configuration> |
138 | 138 | </execution> |
139 | 139 | </executions> |
140 | 140 | </plugin> |
|
185 | 185 | </execution> |
186 | 186 | </executions> |
187 | 187 | </plugin> |
188 | | - <!-- Run the integration tests --> |
189 | | - <plugin> |
190 | | - <groupId>org.apache.maven.plugins</groupId> |
191 | | - <artifactId>maven-failsafe-plugin</artifactId> |
192 | | - <executions> |
193 | | - <execution> |
194 | | - <goals> |
195 | | - <goal>integration-test</goal> |
196 | | - <goal>verify</goal> |
197 | | - </goals> |
198 | | - </execution> |
199 | | - </executions> |
200 | | - </plugin> |
201 | 188 | <!-- add the integration test source folder --> |
202 | 189 | <plugin> |
203 | 190 | <groupId>org.codehaus.mojo</groupId> |
|
215 | 202 | </sources> |
216 | 203 | </configuration> |
217 | 204 | </execution> |
| 205 | + <!-- add the examples as test resources --> |
218 | 206 | <execution> |
219 | 207 | <id>add-test-resource</id> |
220 | 208 | <phase>generate-test-resources</phase> |
|
235 | 223 | </execution> |
236 | 224 | </executions> |
237 | 225 | </plugin> |
| 226 | + <!-- filter the pom.xml files of the examples to replace the |
| 227 | + h2 and hibernate versions for the integration tests --> |
238 | 228 | <plugin> |
239 | 229 | <groupId>org.apache.maven.plugins</groupId> |
240 | 230 | <artifactId>maven-resources-plugin</artifactId> |
|
256 | 246 | </resource> |
257 | 247 | </resources> |
258 | 248 | <delimiters> |
259 | | - <delimiter>${*}</delimiter> |
| 249 | + <delimiter>${h2.version}</delimiter> |
| 250 | + <delimiter>${hibernate.version}</delimiter> |
260 | 251 | </delimiters> |
261 | 252 | </configuration> |
262 | 253 | </execution> |
263 | 254 | </executions> |
264 | 255 | </plugin> |
| 256 | + <!-- Run the integration tests --> |
| 257 | + <plugin> |
| 258 | + <groupId>org.apache.maven.plugins</groupId> |
| 259 | + <artifactId>maven-failsafe-plugin</artifactId> |
| 260 | + <executions> |
| 261 | + <execution> |
| 262 | + <goals> |
| 263 | + <goal>integration-test</goal> |
| 264 | + <goal>verify</goal> |
| 265 | + </goals> |
| 266 | + </execution> |
| 267 | + </executions> |
| 268 | + </plugin> |
265 | 269 | </plugins> |
266 | 270 | </build> |
267 | 271 |
|
268 | | - <reporting> |
| 272 | + <reporting> |
269 | 273 | <plugins> |
270 | 274 | <plugin> |
271 | 275 | <artifactId>maven-project-info-reports-plugin</artifactId> |
|
0 commit comments