Skip to content

Commit b70dfd5

Browse files
committed
HBX-3128: Avoid use of Maven invoker plugin while performing functional testing
- Add the 'hbm2java/template-path' example Signed-off-by: Koen Aers <[email protected]>
1 parent 2273a48 commit b70dfd5

File tree

4 files changed

+26
-5
lines changed

4 files changed

+26
-5
lines changed

maven/docs/examples/hbm2java/template-path/README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@
1616
To run this example:
1717
- Have [Apache Maven](https://maven.apache.org) installed
1818
- Have [H2 Sakila database](https://github.com/hibernate/sakila-h2) running
19+
- Remove the backslash `\` in the occurence of `\${basedir}` (the backslash is needed for the
20+
tests to run correctly). You can do this from the command-line:
21+
`sed -i.bak 's/\\${basedir}/${basedir}/' pom.xml && rm pom.xml.bak`
1922
- Issue the following commands from a command-line window opened in this folder:
2023
`mvn generate-sources -Dh2.version=${h2.version} -Dhibernate.version=${hibernate.version}`
2124

maven/docs/examples/hbm2java/template-path/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
</execution>
4848
</executions>
4949
<configuration>
50-
<templatePath>templates</templatePath>
50+
<templatePath>\${basedir}/templates</templatePath>
5151
</configuration>
5252
</plugin>
5353
</plugins>
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
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 the following commands from a command-line window opened in this folder:
20+
`mvn generate-sources -Dh2.version=${h2.version} -Dhibernate.version=${hibernate.version}`
21+

maven/pom.xml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -245,10 +245,7 @@
245245
</includes>
246246
</resource>
247247
</resources>
248-
<delimiters>
249-
<delimiter>${h2.version}</delimiter>
250-
<delimiter>${hibernate.version}</delimiter>
251-
</delimiters>
248+
<escapeString>${basedir}</escapeString>
252249
</configuration>
253250
</execution>
254251
</executions>

0 commit comments

Comments
 (0)