Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions maven/docs/examples/5-minute-tutorial/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<!--
~ Copyright 2004 - 2025 Red Hat, Inc.
~
~ Licensed under the Apache License, Version 2.0 (the "License");
~ you may not use this file except in compliance with the License.
~ You may obtain a copy of the License at
~
~ http://www.apache.org/licenses/LICENSE-2.0
~
~ Unless required by applicable law or agreed to in writing, software
~ distributed under the License is distributed on an "AS IS" basis,
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
~ See the License for the specific language governing permissions and
~ limitations under the License.
-->
To run this example:
- Have [Apache Maven](https://maven.apache.org) installed
- Have [H2 Sakila database](https://github.com/hibernate/sakila-h2) running
- Issue one of the following commands from a command-line window opened in this folder:
- `mvn generate-sources -Dh2.version=${h2.version} -Dproject.version=${hibernate.version}`
- `mvn hbm2java -Dh2.version=${h2.version} -Dproject.version=${hibernate.version}`

4 changes: 2 additions & 2 deletions maven/docs/examples/5-minute-tutorial/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
<dependency>
<groupId>com.h2database</groupId>
<artifactId>h2</artifactId>
<version>@h2.version@</version>
<version>${h2.version}</version>
</dependency>
</dependencies>

Expand All @@ -36,7 +36,7 @@
<plugin>
<groupId>org.hibernate.tool</groupId>
<artifactId>hibernate-tools-maven</artifactId>
<version>@project.version@</version>
<version>${hibernate.version}</version>
<executions>
<execution>
<id>Entity generation</id>
Expand Down
8 changes: 6 additions & 2 deletions maven/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@
<!-- This is a publicly distributed module that should be published: -->
<deploy.skip>false</deploy.skip>
<maven.install.skip>false</maven.install.skip>
<!-- To run the integration tests we need to set ${hibernate.version} -->
<hibernate.version>${project.version}</hibernate.version>
</properties>

<dependencies>
Expand Down Expand Up @@ -149,6 +151,8 @@
</execution>
</executions>
</plugin>
<!-- The Invoker plugin will populate the local Maven repository with the artefacts
needed to run the integration tests with the FailSafe plugin -->
<plugin>
<artifactId>maven-invoker-plugin</artifactId>
<version>${maven-invoker-plugin.version}</version>
Expand Down Expand Up @@ -177,7 +181,7 @@
</execution>
</executions>
</plugin>
<!-- run the integration tests -->
<!-- Run the integration tests -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-failsafe-plugin</artifactId>
Expand Down Expand Up @@ -248,7 +252,7 @@
</resource>
</resources>
<delimiters>
<delimiter>@*@</delimiter>
<delimiter>${*}</delimiter>
</delimiters>
</configuration>
</execution>
Expand Down