From ad9cea069a16c5f1e41c8de08af66deede46c58b Mon Sep 17 00:00:00 2001 From: Paulo Gustavo Veiga Date: Fri, 6 Nov 2020 21:35:54 -0800 Subject: [PATCH] Support for Java 11 --- pom.xml | 8 +-- wise-webapp/pom.xml | 58 ++++++++++++------- .../com/wisemapping/dao/LabelManagerImpl.java | 6 +- .../wisemapping/dao/MindmapManagerImpl.java | 12 ++-- .../com/wisemapping/dao/UserManagerImpl.java | 4 +- .../wisemapping/exporter/ExporterFactory.java | 7 ++- .../filter/BrowserSupportInterceptor.java | 23 ++++---- .../importer/freemind/FreemindImporter.java | 2 +- .../com/wisemapping/rest/BaseController.java | 32 +++++----- ...bugMappingJacksonHttpMessageConverter.java | 47 +++++++-------- .../wisemapping/rest/MindmapController.java | 5 +- .../rest/model/RestCollaboration.java | 3 +- .../rest/model/RestCollaborationList.java | 2 +- .../rest/model/RestCollaborator.java | 7 +-- .../wisemapping/rest/model/RestErrors.java | 6 +- .../com/wisemapping/rest/model/RestLabel.java | 11 ++-- .../wisemapping/rest/model/RestLabelList.java | 2 +- .../wisemapping/rest/model/RestLockInfo.java | 4 +- .../wisemapping/rest/model/RestLogItem.java | 2 +- .../wisemapping/rest/model/RestMindmap.java | 6 +- .../rest/model/RestMindmapHistory.java | 4 +- .../rest/model/RestMindmapHistoryList.java | 4 +- .../rest/model/RestMindmapInfo.java | 7 +-- .../rest/model/RestMindmapList.java | 34 +++++------ .../com/wisemapping/rest/model/RestUser.java | 48 +++++++-------- .../AuthenticationSuccessHandler.java | 4 +- .../wisemapping/service/RecaptchaService.java | 1 - .../java/com/wisemapping/util/JAXBUtils.java | 5 +- .../src/main/resources/Bundle.properties | 1 + .../main/webapp/WEB-INF/wisemapping-dao.xml | 7 +-- .../main/webapp/WEB-INF/wisemapping-model.xml | 2 +- .../main/webapp/WEB-INF/wisemapping-rest.xml | 20 +++++-- .../WEB-INF/wisemapping-security-db.xml | 4 +- .../WEB-INF/wisemapping-security-ldap.xml | 4 +- .../webapp/WEB-INF/wisemapping-security.xml | 15 +++-- .../webapp/WEB-INF/wisemapping-service.xml | 4 +- .../webapp/WEB-INF/wisemapping-servlet.xml | 6 +- wise-webapp/src/main/webapp/jsp/login.jsp | 6 +- .../main/webapp/jsp/userForgotPassword.jsp | 2 +- .../src/main/webapp/jsp/userRegistration.jsp | 2 +- .../test/export/ExportXsltBasedTest.java | 10 +++- .../com/wisemapping/test/model/JsonTest.java | 2 +- .../test/rest/RestAccountITCase.java | 4 +- .../test/rest/RestAdminITCase.java | 4 +- .../test/rest/RestMindmapITCase.java | 25 ++------ 45 files changed, 240 insertions(+), 232 deletions(-) create mode 100644 wise-webapp/src/main/resources/Bundle.properties diff --git a/pom.xml b/pom.xml index 142fa1d1..e211621c 100644 --- a/pom.xml +++ b/pom.xml @@ -77,7 +77,7 @@ org.jvnet.jaxb2.maven2 maven-jaxb2-plugin - 0.8.1 + 0.14.0 net.alchim31.maven @@ -117,10 +117,10 @@ org.apache.maven.plugins maven-compiler-plugin - 3.1 + 3.8.0 - 1.8 - 1.8 + 11 + 11 UTF-8 diff --git a/wise-webapp/pom.xml b/wise-webapp/pom.xml index 04a6a92c..ec0abb55 100644 --- a/wise-webapp/pom.xml +++ b/wise-webapp/pom.xml @@ -28,8 +28,8 @@ - 3.2.18.RELEASE - 3.2.10.RELEASE + 4.3.29.RELEASE + 4.2.9.RELEASE @@ -56,7 +56,7 @@ org.apache.velocity velocity - 1.5 + 1.7 compile @@ -122,7 +122,7 @@ org.apache.xmlgraphics fop - 2.3 + 2.4 org.springframework @@ -228,7 +228,7 @@ javax javaee-api - 6.0 + 8.0.1 provided @@ -268,15 +268,9 @@ runtime - org.codehaus.jackson - jackson-core-asl - 1.9.4 - - - org.codehaus.jackson - jackson-mapper-asl - 1.9.4 - compile + com.fasterxml.jackson.core + jackson-databind + 2.11.3 org.slf4j @@ -290,6 +284,26 @@ 2.10.0 compile + + javax.xml.bind + jaxb-api + 2.3.1 + + + org.glassfish.jaxb + jaxb-runtime + 2.3.1 + + + com.sun.xml.bind + jaxb-core + 2.3.0 + + + org.jacoco + jacoco-maven-plugin + 0.8.5 + org.jsoup @@ -311,6 +325,11 @@ jstl 1.2 + + javax.servlet + servlet-api + 2.5 + org.apache.httpcomponents fluent-hc @@ -567,11 +586,9 @@ org.eclipse.jetty jetty-maven-plugin - 9.4.12.v20180830 + 9.4.34.v20201102 - false foo - true 9999 ${project.build.directory}/wisemapping.war automatic @@ -595,14 +612,15 @@ - start-jetty + run-forked pre-integration-test - run + run-forked 0 - true + false + -Ddatabase.base.url=${project.build.directory} diff --git a/wise-webapp/src/main/java/com/wisemapping/dao/LabelManagerImpl.java b/wise-webapp/src/main/java/com/wisemapping/dao/LabelManagerImpl.java index 54ded25a..926134ff 100644 --- a/wise-webapp/src/main/java/com/wisemapping/dao/LabelManagerImpl.java +++ b/wise-webapp/src/main/java/com/wisemapping/dao/LabelManagerImpl.java @@ -24,20 +24,20 @@ public class LabelManagerImpl extends HibernateDaoSupport @NotNull @Override public List