diff --git a/documentation/src/main/docbook/quickstart/tutorials/osgi/managed-jpa/features.xml b/documentation/src/main/docbook/quickstart/tutorials/osgi/managed-jpa/features.xml
index 5c6f625415..9ea0435d83 100755
--- a/documentation/src/main/docbook/quickstart/tutorials/osgi/managed-jpa/features.xml
+++ b/documentation/src/main/docbook/quickstart/tutorials/osgi/managed-jpa/features.xml
@@ -46,7 +46,7 @@
mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.antlr/2.7.7_5
- mvn:org.jboss.javassist/com.springsource.javassist/3.15.0.GA
+ wrap:mvn:org.javassist/javassist/3.18.0-GA
mvn:org.apache.servicemix.specs/org.apache.servicemix.specs.jsr303-api-1.0.0/2.2.0
mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.ant/1.8.2_2
mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.dom4j/1.6.1_5
@@ -55,11 +55,11 @@
wrap:mvn:org.jboss/jandex/1.1.0.Alpha1
wrap:mvn:org.hibernate.common/hibernate-commons-annotations/4.0.2.Final
- mvn:com.fasterxml/classmate/0.5.4
- mvn:org.jboss.logging/jboss-logging/3.1.0.GA
+ mvn:com.fasterxml/classmate/0.8.0
+ mvn:org.jboss.logging/jboss-logging/3.1.1.GA
- mvn:org.hibernate/hibernate-core/4.3.0-SNAPSHOT
- mvn:org.hibernate/hibernate-entitymanager/4.3.0-SNAPSHOT
+ mvn:org.hibernate/hibernate-core/5.0.0-SNAPSHOT
+ mvn:org.hibernate/hibernate-entitymanager/5.0.0-SNAPSHOT
mvn:org.hibernate.osgi/managed-jpa/1.0.0
- mvn:org.hibernate/hibernate-osgi/4.3.0-SNAPSHOT
+ mvn:org.hibernate/hibernate-osgi/5.0.0-SNAPSHOT
diff --git a/documentation/src/main/docbook/quickstart/tutorials/osgi/unmanaged-jpa/features.xml b/documentation/src/main/docbook/quickstart/tutorials/osgi/unmanaged-jpa/features.xml
index 9e31bed850..94fdfa3539 100644
--- a/documentation/src/main/docbook/quickstart/tutorials/osgi/unmanaged-jpa/features.xml
+++ b/documentation/src/main/docbook/quickstart/tutorials/osgi/unmanaged-jpa/features.xml
@@ -21,7 +21,7 @@
mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.antlr/2.7.7_5
- mvn:org.jboss.javassist/com.springsource.javassist/3.15.0.GA
+ wrap:mvn:org.javassist/javassist/3.18.0-GA
mvn:org.apache.servicemix.specs/org.apache.servicemix.specs.jsr303-api-1.0.0/2.2.0
mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.ant/1.8.2_2
mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.dom4j/1.6.1_5
@@ -30,12 +30,12 @@
wrap:mvn:org.hibernate.common/hibernate-commons-annotations/4.0.2.Final
wrap:mvn:org.jboss/jandex/1.1.0.Alpha1
- mvn:com.fasterxml/classmate/0.5.4
- mvn:org.jboss.logging/jboss-logging/3.1.0.GA
+ mvn:com.fasterxml/classmate/0.8.0
+ mvn:org.jboss.logging/jboss-logging/3.1.1.GA
- mvn:org.hibernate/hibernate-core/4.3.0-SNAPSHOT
- mvn:org.hibernate/hibernate-entitymanager/4.3.0-SNAPSHOT
- mvn:org.hibernate/hibernate-osgi/4.3.0-SNAPSHOT
+ mvn:org.hibernate/hibernate-core/5.0.0-SNAPSHOT
+ mvn:org.hibernate/hibernate-entitymanager/5.0.0-SNAPSHOT
+ mvn:org.hibernate/hibernate-osgi/5.0.0-SNAPSHOT
mvn:org.hibernate.osgi/unmanaged-jpa/1.0.0
diff --git a/documentation/src/main/docbook/quickstart/tutorials/osgi/unmanaged-native/features.xml b/documentation/src/main/docbook/quickstart/tutorials/osgi/unmanaged-native/features.xml
index e505b7c5a9..4cc5e31230 100644
--- a/documentation/src/main/docbook/quickstart/tutorials/osgi/unmanaged-native/features.xml
+++ b/documentation/src/main/docbook/quickstart/tutorials/osgi/unmanaged-native/features.xml
@@ -21,7 +21,7 @@
mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.antlr/2.7.7_5
- mvn:org.jboss.javassist/com.springsource.javassist/3.15.0.GA
+ wrap:mvn:org.javassist/javassist/3.18.0-GA
mvn:org.apache.servicemix.specs/org.apache.servicemix.specs.jsr303-api-1.0.0/2.2.0
mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.ant/1.8.2_2
mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.dom4j/1.6.1_5
@@ -36,8 +36,8 @@
- mvn:com.fasterxml/classmate/0.5.4
- mvn:org.jboss.logging/jboss-logging/3.1.0.GA
+ mvn:com.fasterxml/classmate/0.8.0
+ mvn:org.jboss.logging/jboss-logging/3.1.1.GA
- mvn:org.hibernate/hibernate-core/4.3.0-SNAPSHOT
+ mvn:org.hibernate/hibernate-core/5.0.0-SNAPSHOT
- mvn:org.hibernate/hibernate-entitymanager/4.3.0-SNAPSHOT
- mvn:org.hibernate/hibernate-envers/4.3.0-SNAPSHOT
-
-
-
-
- mvn:org.hibernate/hibernate-osgi/4.3.0-SNAPSHOT
+ mvn:org.hibernate/hibernate-entitymanager/5.0.0-SNAPSHOT
+ mvn:org.hibernate/hibernate-envers/5.0.0-SNAPSHOT
+
+
+
+
+ mvn:org.hibernate/hibernate-osgi/5.0.0-SNAPSHOT
mvn:org.hibernate.osgi/unmanaged-native/1.0.0
diff --git a/hibernate-core/hibernate-core.gradle b/hibernate-core/hibernate-core.gradle
index 432fc8a25d..deb1b99e26 100644
--- a/hibernate-core/hibernate-core.gradle
+++ b/hibernate-core/hibernate-core.gradle
@@ -61,6 +61,7 @@ jar {
// TODO: Shouldn't have to explicitly list this, but the plugin
// generates it with a [1.0,2) version.
'javax.persistence;version="2.1.0"',
+ 'javax.persistence.metamodel;version="2.1.0"',
// Temporarily support JTA 1.1 -- Karaf and other frameworks still
// use it. Without this, the plugin generates [1.2,2).
// build.gradle adds javax.transaction for all modules