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