HHH-6909 - "Getting Started Guide" example code cannot be run successfully
This commit is contained in:
parent
8d9f772a90
commit
f6dec69c8c
|
@ -46,6 +46,9 @@ ideaModule {
|
|||
// build a map of the dependency artifacts to use. Allows centralized definition of the version of artifacts to
|
||||
// use. In that respect it serves a role similar to <dependencyManagement> in Maven
|
||||
slf4jVersion = '1.6.1'
|
||||
junitVersion = '4.8.2'
|
||||
h2Version = '1.2.145'
|
||||
|
||||
libraries = [
|
||||
// Ant
|
||||
ant: 'org.apache.ant:ant:1.8.2',
|
||||
|
@ -92,12 +95,12 @@ libraries = [
|
|||
jcl: 'commons-logging:commons-logging:99.0-does-not-exist',
|
||||
|
||||
|
||||
junit: 'junit:junit:4.8.2',
|
||||
junit: 'junit:junit:' + junitVersion,
|
||||
jpa_modelgen: 'org.hibernate:hibernate-jpamodelgen:1.1.1.Final',
|
||||
shrinkwrap_api: 'org.jboss.shrinkwrap:shrinkwrap-api:1.0.0-beta-6',
|
||||
shrinkwrap: 'org.jboss.shrinkwrap:shrinkwrap-impl-base:1.0.0-beta-6',
|
||||
validator: 'org.hibernate:hibernate-validator:4.2.0.Final',
|
||||
h2: 'com.h2database:h2:1.2.145',
|
||||
h2: 'com.h2database:h2:' + h2Version,
|
||||
]
|
||||
|
||||
|
||||
|
|
|
@ -49,10 +49,11 @@ task buildTutorialZip(type: Zip) {
|
|||
destinationDir = file( "target/work/tutorials" )
|
||||
archiveName = 'hibernate-tutorials.zip'
|
||||
from 'src/main/docbook/quickstart/tutorials'
|
||||
// todo : this part does not work. Asked on mailing list
|
||||
filter(
|
||||
org.apache.tools.ant.filters.ReplaceTokens,
|
||||
tokens: [VERSION: project.version]
|
||||
expand(
|
||||
version: project.version,
|
||||
slf4j: parent.slf4jVersion,
|
||||
junit: parent.junitVersion,
|
||||
h2: parent.h2Version
|
||||
)
|
||||
}
|
||||
|
||||
|
|
|
@ -29,7 +29,7 @@
|
|||
<parent>
|
||||
<groupId>org.hibernate.tutorials</groupId>
|
||||
<artifactId>hibernate-tutorials</artifactId>
|
||||
<version>@VERSION@</version>
|
||||
<version>$version</version>
|
||||
<relativePath>../pom.xml</relativePath>
|
||||
</parent>
|
||||
|
||||
|
|
|
@ -29,7 +29,7 @@
|
|||
<parent>
|
||||
<groupId>org.hibernate.tutorials</groupId>
|
||||
<artifactId>hibernate-tutorials</artifactId>
|
||||
<version>@VERSION@</version>
|
||||
<version>$version</version>
|
||||
<relativePath>../pom.xml</relativePath>
|
||||
</parent>
|
||||
|
||||
|
|
|
@ -29,7 +29,8 @@
|
|||
<parent>
|
||||
<groupId>org.hibernate.tutorials</groupId>
|
||||
<artifactId>hibernate-tutorials</artifactId>
|
||||
<version>@VERSION@</version>
|
||||
<version>$version</version>
|
||||
<relativePath>../pom.xml</relativePath>
|
||||
</parent>
|
||||
|
||||
<artifactId>hibernate-tutorial-entitymanager</artifactId>
|
||||
|
@ -45,7 +46,7 @@
|
|||
<dependency>
|
||||
<groupId>org.hibernate</groupId>
|
||||
<artifactId>hibernate-entitymanager</artifactId>
|
||||
<version>@VERSION@</version>
|
||||
<version>$version</version>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
|
||||
|
|
|
@ -29,7 +29,8 @@
|
|||
<parent>
|
||||
<groupId>org.hibernate.tutorials</groupId>
|
||||
<artifactId>hibernate-tutorials</artifactId>
|
||||
<version>@VERSION@</version>
|
||||
<version>$version</version>
|
||||
<relativePath>../pom.xml</relativePath>
|
||||
</parent>
|
||||
|
||||
<artifactId>hibernate-tutorial-envers</artifactId>
|
||||
|
@ -45,12 +46,12 @@
|
|||
<dependency>
|
||||
<groupId>org.hibernate</groupId>
|
||||
<artifactId>hibernate-envers</artifactId>
|
||||
<version>@VERSION@</version>
|
||||
<version>$version</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.hibernate</groupId>
|
||||
<artifactId>hibernate-entitymanager</artifactId>
|
||||
<version>@VERSION@</version>
|
||||
<version>$version</version>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
|
||||
|
|
|
@ -28,7 +28,7 @@
|
|||
|
||||
<groupId>org.hibernate.tutorials</groupId>
|
||||
<artifactId>hibernate-tutorials</artifactId>
|
||||
<version>@VERSION@</version>
|
||||
<version>$version</version>
|
||||
<packaging>pom</packaging>
|
||||
|
||||
<name>Hibernate Getting Started Guide Tutorials</name>
|
||||
|
@ -50,28 +50,28 @@
|
|||
<dependency>
|
||||
<groupId>org.hibernate</groupId>
|
||||
<artifactId>hibernate-core</artifactId>
|
||||
<version>@VERSION@</version>
|
||||
<version>$version</version>
|
||||
</dependency>
|
||||
|
||||
<!-- Hibernate uses jboss-logging for logging, for the tutorials we will use the sl4fj-simple backend -->
|
||||
<dependency>
|
||||
<groupId>org.slf4j</groupId>
|
||||
<artifactId>slf4j-simple</artifactId>
|
||||
<version>1.6.1</version>
|
||||
<version>$slf4j</version>
|
||||
</dependency>
|
||||
|
||||
<!-- The tutorials use JUnit test cases to illustrate usage -->
|
||||
<dependency>
|
||||
<groupId>junit</groupId>
|
||||
<artifactId>junit</artifactId>
|
||||
<version>4.8.1</version>
|
||||
<version>$junit</version>
|
||||
</dependency>
|
||||
|
||||
<!-- The tutorials use the H2 in-memory database -->
|
||||
<dependency>
|
||||
<groupId>com.h2database</groupId>
|
||||
<artifactId>h2</artifactId>
|
||||
<version>1.2.140</version>
|
||||
<version>$h2</version>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
|
||||
|
@ -79,13 +79,12 @@
|
|||
<testResources>
|
||||
<testResource>
|
||||
<filtering>false</filtering>
|
||||
<directory>src/main/java</directory>
|
||||
<directory>src/test/java</directory>
|
||||
<includes>
|
||||
<include>**/*.xml</include>
|
||||
</includes>
|
||||
</testResource>
|
||||
<testResource>
|
||||
<filtering>true</filtering>
|
||||
<directory>src/test/resources</directory>
|
||||
</testResource>
|
||||
</testResources>
|
||||
|
|
Loading…
Reference in New Issue