From 417ee543fd22d889df28795c8eba4ed69ed91464 Mon Sep 17 00:00:00 2001 From: Francesco Nigro Date: Thu, 20 Jun 2019 11:44:53 +0200 Subject: [PATCH] ARTEMIS-2354 Fix compilation issues on JDK 8 This reverts partially commit f8d3a8f2 to include only the changes that makes possible to run tests with JDK 11: compile on JDK 11 is outside the scope of the issue. JDK 11 compilation requires Karaf upgrade, that will break compatibility with Aether on integration-tests. --- artemis-dto/pom.xml | 8 -- .../activemq/artemis/dto/package-info.java | 1 - artemis-features/pom.xml | 2 +- artemis-selector/pom.xml | 52 ++------- artemis-website/pom.xml | 13 +-- pom.xml | 102 ++++++------------ 6 files changed, 47 insertions(+), 131 deletions(-) diff --git a/artemis-dto/pom.xml b/artemis-dto/pom.xml index f0780dd552..27fecd91bd 100644 --- a/artemis-dto/pom.xml +++ b/artemis-dto/pom.xml @@ -99,9 +99,6 @@ - @@ -128,11 +125,6 @@ jaxb-jxc ${version.jaxb} - - org.glassfish.jaxb - jaxb-runtime - 2.3.2 - diff --git a/artemis-dto/src/main/java/org/apache/activemq/artemis/dto/package-info.java b/artemis-dto/src/main/java/org/apache/activemq/artemis/dto/package-info.java index 7055bfb9c0..0a8b297ee4 100644 --- a/artemis-dto/src/main/java/org/apache/activemq/artemis/dto/package-info.java +++ b/artemis-dto/src/main/java/org/apache/activemq/artemis/dto/package-info.java @@ -18,7 +18,6 @@ * The JAXB POJOs for the XML configuration of ActiveMQ Artemis broker */ @javax.xml.bind.annotation.XmlSchema( - xmlns = {@javax.xml.bind.annotation.XmlNs(prefix = "xs", namespaceURI = "http://www.w3.org/2001/XMLSchema")}, namespace = "http://activemq.org/schema", elementFormDefault = javax.xml.bind.annotation.XmlNsForm.QUALIFIED) package org.apache.activemq.artemis.dto; diff --git a/artemis-features/pom.xml b/artemis-features/pom.xml index 7afbbf6589..283608c5b2 100644 --- a/artemis-features/pom.xml +++ b/artemis-features/pom.xml @@ -26,7 +26,7 @@ ActiveMQ Artemis Features - 4.2.3 + 4.1.1 diff --git a/artemis-selector/pom.xml b/artemis-selector/pom.xml index 4a61be5225..fc267c3d8b 100644 --- a/artemis-selector/pom.xml +++ b/artemis-selector/pom.xml @@ -84,48 +84,6 @@ - - jdk8 - - 1.8 - - java.vendor - !IBM Corporation - - - - - - org.apache.maven.plugins - maven-compiler-plugin - - - - -Xep:MissingOverride:WARN - - - - - - - - jdk11 - - 11 - - java.vendor - !IBM Corporation - - - - - - org.apache.maven.plugins - maven-compiler-plugin - - - - @@ -136,6 +94,16 @@ + + org.apache.maven.plugins + maven-compiler-plugin + + + + -Xep:MissingOverride:WARN + + + org.codehaus.mojo javacc-maven-plugin diff --git a/artemis-website/pom.xml b/artemis-website/pom.xml index 7ee20871d1..3ceda36e78 100644 --- a/artemis-website/pom.xml +++ b/artemis-website/pom.xml @@ -92,7 +92,7 @@ maven-javadoc-plugin - 3.1.0 + 2.10.1 javadoc-jar @@ -101,8 +101,6 @@ jar - none - ${forceHtml4} true 128m 512m @@ -131,15 +129,6 @@ - - jdk11 - - 11 - - - -html4 - - release diff --git a/pom.xml b/pom.xml index c1125b8490..95fe5b638e 100644 --- a/pom.xml +++ b/pom.xml @@ -75,7 +75,7 @@ scp://people.apache.org/x1/www/activemq.apache.org 1.0.0 - 4.2.3 + 4.0.6 4.9.1 2.4 3.0 @@ -867,10 +867,6 @@ jdk18 1.8 - - java.vendor - !IBM Corporation - @@ -881,68 +877,6 @@ -Xdoclint:none - - org.apache.maven.plugins - maven-compiler-plugin - - 3.1 - - - true - true - ${javac-compiler-id} - - -Xep:MissingOverride:ERROR - -Xep:NonAtomicVolatileUpdate:ERROR - -Xep:SynchronizeOnNonFinalField:ERROR - -Xep:StaticAccessedFromInstance:ERROR - -Xep:SynchronizeOnNonFinalField:ERROR - -Xep:WaitNotInLoop:ERROR - -Xdiags:verbose - - - - - org.codehaus.plexus - plexus-compiler-javac-errorprone - 2.8 - - - com.google.errorprone - error_prone_core - 2.0.9 - - - - - - - - jdk11 - - 11 - - java.vendor - !IBM Corporation - - - - - - org.apache.maven.plugins - maven-javadoc-plugin - - -Xdoclint:none - - - - org.apache.maven.plugins - maven-compiler-plugin - - 3.1 - @@ -1400,6 +1334,40 @@ + + org.apache.maven.plugins + maven-compiler-plugin + + 3.1 + + + true + true + ${javac-compiler-id} + + -Xep:MissingOverride:ERROR + -Xep:NonAtomicVolatileUpdate:ERROR + -Xep:SynchronizeOnNonFinalField:ERROR + -Xep:StaticAccessedFromInstance:ERROR + -Xep:SynchronizeOnNonFinalField:ERROR + -Xep:WaitNotInLoop:ERROR + -Xdiags:verbose + + + + + org.codehaus.plexus + plexus-compiler-javac-errorprone + 2.8 + + + com.google.errorprone + error_prone_core + 2.0.9 + + + org.apache.maven.plugins maven-clean-plugin