File tree Expand file tree Collapse file tree 3 files changed +30
-4
lines changed
docs/examples/5-minute-tutorial Expand file tree Collapse file tree 3 files changed +30
-4
lines changed Original file line number Diff line number Diff line change
1
+ <!--
2
+ ~ Copyright 2004 - 2025 Red Hat, Inc.
3
+ ~
4
+ ~ Licensed under the Apache License, Version 2.0 (the "License");
5
+ ~ you may not use this file except in compliance with the License.
6
+ ~ You may obtain a copy of the License at
7
+ ~
8
+ ~ http://www.apache.org/licenses/LICENSE-2.0
9
+ ~
10
+ ~ Unless required by applicable law or agreed to in writing, software
11
+ ~ distributed under the License is distributed on an "AS IS" basis,
12
+ ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ ~ See the License for the specific language governing permissions and
14
+ ~ limitations under the License.
15
+ -->
16
+ To run this example:
17
+ - Have [ Apache Maven] ( https://maven.apache.org ) installed
18
+ - Have [ H2 Sakila database] ( https://github.com/hibernate/sakila-h2 ) running
19
+ - Issue one of the following commands from a command-line window opened in this folder:
20
+ - ` mvn generate-sources -Dh2.version=${h2.version} -Dproject.version=${hibernate.version} `
21
+ - ` mvn hbm2java -Dh2.version=${h2.version} -Dproject.version=${hibernate.version} `
22
+
Original file line number Diff line number Diff line change 27
27
<dependency >
28
28
<groupId >com.h2database</groupId >
29
29
<artifactId >h2</artifactId >
30
- <version >@ h2.version@ </version >
30
+ <version >${ h2.version} </version >
31
31
</dependency >
32
32
</dependencies >
33
33
36
36
<plugin >
37
37
<groupId >org.hibernate.tool</groupId >
38
38
<artifactId >hibernate-tools-maven</artifactId >
39
- <version >@project .version@ </version >
39
+ <version >${hibernate .version} </version >
40
40
<executions >
41
41
<execution >
42
42
<id >Entity generation</id >
Original file line number Diff line number Diff line change 34
34
<!-- This is a publicly distributed module that should be published: -->
35
35
<deploy .skip>false</deploy .skip>
36
36
<maven .install.skip>false</maven .install.skip>
37
+ <!-- To run the integration tests we need to set ${hibernate.version} -->
38
+ <hibernate .version>${project.version} </hibernate .version>
37
39
</properties >
38
40
39
41
<dependencies >
149
151
</execution >
150
152
</executions >
151
153
</plugin >
154
+ <!-- The Invoker plugin will populate the local Maven repository with the artefacts
155
+ needed to run the integration tests with the FailSafe plugin -->
152
156
<plugin >
153
157
<artifactId >maven-invoker-plugin</artifactId >
154
158
<version >${maven-invoker-plugin.version} </version >
164
168
</execution >
165
169
</executions >
166
170
</plugin >
167
- <!-- run the integration tests -->
171
+ <!-- Run the integration tests -->
168
172
<plugin >
169
173
<groupId >org.apache.maven.plugins</groupId >
170
174
<artifactId >maven-failsafe-plugin</artifactId >
235
239
</resource >
236
240
</resources >
237
241
<delimiters >
238
- <delimiter >@*@ </delimiter >
242
+ <delimiter >${*} </delimiter >
239
243
</delimiters >
240
244
</configuration >
241
245
</execution >
You can’t perform that action at this time.
0 commit comments