diff --git a/packaging/plf-assemblies/src/main/resources/assemblies/plf-exo-tools-component.xml b/packaging/plf-assemblies/src/main/resources/assemblies/plf-exo-tools-component.xml
deleted file mode 100644
index 520625595..000000000
--- a/packaging/plf-assemblies/src/main/resources/assemblies/plf-exo-tools-component.xml
+++ /dev/null
@@ -1,34 +0,0 @@
-
-
-
-
-
- ${file.separator}bin
-
- io.meeds.distribution:plf-exo-tools:jar
-
- false
- 755
- false
- exo-tools.jar
-
-
-
-
diff --git a/packaging/plf-assemblies/src/main/resources/assemblies/plf-standalone-default-tomcat-distribution-content.xml b/packaging/plf-assemblies/src/main/resources/assemblies/plf-standalone-default-tomcat-distribution-content.xml
index 28201193c..cfe2ac9b7 100644
--- a/packaging/plf-assemblies/src/main/resources/assemblies/plf-standalone-default-tomcat-distribution-content.xml
+++ b/packaging/plf-assemblies/src/main/resources/assemblies/plf-standalone-default-tomcat-distribution-content.xml
@@ -249,6 +249,5 @@ Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
assemblies/plf-copy-libraries-component.xmlassemblies/plf-addons-component.xml
- assemblies/plf-exo-tools-component.xml
diff --git a/packaging/plf-community-tomcat-standalone/pom.xml b/packaging/plf-community-tomcat-standalone/pom.xml
index 71079f65c..a59406298 100644
--- a/packaging/plf-community-tomcat-standalone/pom.xml
+++ b/packaging/plf-community-tomcat-standalone/pom.xml
@@ -53,12 +53,6 @@
zipruntime
-
-
- ${project.groupId}
- plf-exo-tools
- runtime
- org.exoplatform.resources
@@ -67,126 +61,15 @@
${version.exo-lgpl-license-resource-bundle}runtime
-
-
- io.meeds.wallet
- wallet-packaging
- zip
- provided
-
-
- io.meeds.kudos
- kudos-packaging
- zip
- provided
-
-
- io.meeds.perk-store
- perk-store-packaging
- zip
- provided
-
-
- io.meeds.gamification
- gamification-packaging
- zip
- provided
-
-
- io.meeds.app-center
- app-center-packaging
- zip
- provided
-
-
- io.meeds.notes
- notes-packaging
- zip
- provided
-
-
- org.apache.tomcat
- tomcat
- zip
- provided
-
-
- io.meeds.task
- task-management-packaging
- zip
- provided
-
-
- io.meeds.analytics
- analytics-packaging
- provided
- zip
-
-
- io.meeds.poll
- poll-packaging
- zip
- provided
-
-
- io.meeds.content
- content-packaging
- zip
- provided
-
-
- io.meeds.gamification-github
- gamification-github-packaging
- zip
- provided
-
-
- io.meeds.gamification-twitter
- gamification-twitter-packaging
- zip
- provided
-
-
- io.meeds.gamification-evm
- gamification-evm-packaging
- zip
- provided
-
-
- io.meeds.deeds-tenant
- deeds-tenant-packaging
- zip
- provided
-
-
- io.meeds.layout
- layout-packaging
- zip
- provided
-
-
- io.meeds.gamification-crowdin
- gamification-crowdin-packaging
- zip
- provided
-
-
- io.meeds.pwa
- pwa-packaging
- zip
- provided
-
-
- io.meeds.ide
- ide-packaging
- zip
- provided
- meeds-community-${project.version}
+
+ org.apache.maven.plugins
+ maven-enforcer-plugin
+ org.apache.maven.pluginsmaven-resources-plugin
diff --git a/packaging/plf-dependencies/pom.xml b/packaging/plf-dependencies/pom.xml
index f5a24ab8f..5b3418b17 100644
--- a/packaging/plf-dependencies/pom.xml
+++ b/packaging/plf-dependencies/pom.xml
@@ -33,12 +33,24 @@ Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
portal.web.portalwarruntime
+
+
+ *
+ *
+
+ io.meeds.portalportal.web.restwarruntime
+
+
+ *
+ *
+
+
@@ -46,12 +58,24 @@ Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
commons-comet-webappwarruntime
+
+
+ *
+ *
+
+ io.meeds.commonscommons-extension-webappwarruntime
+
+
+ *
+ *
+
+
@@ -59,6 +83,12 @@ Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
platform-ui-skinwarruntime
+
+
+ *
+ *
+
+
@@ -66,30 +96,60 @@ Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
plf-meeds-extensionwarruntime
+
+
+ *
+ *
+
+ ${project.groupId}plf-sites-extensionwarruntime
+
+
+ *
+ *
+
+ ${project.groupId}plf-root-webappwarruntime
+
+
+ *
+ *
+
+ ${project.groupId}plf-tomcat-integration-webappwarruntime
+
+
+ *
+ *
+
+ ${project.groupId}plf-configurationruntime
+
+
+ *
+ *
+
+
@@ -97,6 +157,12 @@ Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
social-webappwarruntime
+
+
+ *
+ *
+
+ io.meeds.social
diff --git a/packaging/plf-packaging-resources/pom.xml b/packaging/plf-packaging-resources/pom.xml
index 4e7357880..46244811c 100644
--- a/packaging/plf-packaging-resources/pom.xml
+++ b/packaging/plf-packaging-resources/pom.xml
@@ -27,12 +27,235 @@ Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
pomMeeds:: Meeds:: Meeds Public Distribution - Packaging - Shared Resources
+
+ org.apache.tomcat
+ tomcat
+ zip
+ provided
+ io.meeds.platformaddons-managerzip
+
+
+ io.meeds.wallet
+ wallet-packaging
+ zip
+ provided
+
+
+ *
+ *
+
+
+
+
+ io.meeds.kudos
+ kudos-packaging
+ zip
+ provided
+
+
+ *
+ *
+
+
+
+
+ io.meeds.perk-store
+ perk-store-packaging
+ zip
+ provided
+
+
+ *
+ *
+
+
+
+
+ io.meeds.gamification
+ gamification-packaging
+ zip
+ provided
+
+
+ *
+ *
+
+
+
+
+ io.meeds.app-center
+ app-center-packaging
+ zip
+ provided
+
+
+ *
+ *
+
+
+
+
+ io.meeds.notes
+ notes-packaging
+ zip
+ provided
+
+
+ *
+ *
+
+
+
+
+ io.meeds.task
+ task-management-packaging
+ zip
+ provided
+
+
+ *
+ *
+
+
+
+
+ io.meeds.analytics
+ analytics-packaging
+ provided
+ zip
+
+
+ *
+ *
+
+
+
+
+ io.meeds.poll
+ poll-packaging
+ zip
+ provided
+
+
+ *
+ *
+
+
+
+
+ io.meeds.content
+ content-packaging
+ zip
+ provided
+
+
+ *
+ *
+
+
+
+
+ io.meeds.gamification-github
+ gamification-github-packaging
+ zip
+ provided
+
+
+ *
+ *
+
+
+
+
+ io.meeds.gamification-twitter
+ gamification-twitter-packaging
+ zip
+ provided
+
+
+ *
+ *
+
+
+
+
+ io.meeds.gamification-evm
+ gamification-evm-packaging
+ zip
+ provided
+
+
+ *
+ *
+
+
+
+
+ io.meeds.deeds-tenant
+ deeds-tenant-packaging
+ zip
+ provided
+
+
+ *
+ *
+
+
+
+
+ io.meeds.layout
+ layout-packaging
+ zip
+ provided
+
+
+ *
+ *
+
+
+
+
+ io.meeds.gamification-crowdin
+ gamification-crowdin-packaging
+ zip
+ provided
+
+
+ *
+ *
+
+
+
+
+ io.meeds.pwa
+ pwa-packaging
+ zip
+ provided
+
+
+ *
+ *
+
+
+
+
+ io.meeds.ide
+ ide-packaging
+ zip
+ provided
+
+
+ *
+ *
+
+
+
diff --git a/packaging/plf-tomcat-resources/pom.xml b/packaging/plf-tomcat-resources/pom.xml
index 96227f596..1c1581777 100644
--- a/packaging/plf-tomcat-resources/pom.xml
+++ b/packaging/plf-tomcat-resources/pom.xml
@@ -36,29 +36,34 @@ Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
org.apache.tomcattomcat
+ runtimeziporg.codehaus.janinojanino
+ runtime${project.groupId}plf-packaging-resources
+ runtimezip${project.groupId}plf-tomcat-integration-webapp
+ runtimewar${project.groupId}plf-tomcat-pc-creator-listener
+ runtimejakarta.servlet
diff --git a/packaging/plf-tomcat-resources/src/main/resources/bin/setenv.bat b/packaging/plf-tomcat-resources/src/main/resources/bin/setenv.bat
index bf5d0bdd2..adc411993 100755
--- a/packaging/plf-tomcat-resources/src/main/resources/bin/setenv.bat
+++ b/packaging/plf-tomcat-resources/src/main/resources/bin/setenv.bat
@@ -190,11 +190,6 @@ IF DEFINED JAVA_HOME (
SET javaExec="%JAVA_HOME%\bin\java.exe"
)
-REM # Used JDK_JAVA_OPTIONS for JDK 9 options since this variable is only recognized by JDK 9+
-%javaExec% -jar "%CATALINA_HOME%"\bin\exo-tools.jar isJava11OrSuperior
-IF ERRORLEVEL 1 (
- SET JDK_JAVA_OPTIONS=%JDK_JAVA_OPTIONS% --add-modules java.activation --add-modules java.xml.bind
-)
REM # Open all required modules for reflective access operations
SET JDK_JAVA_OPTIONS=%JDK_JAVA_OPTIONS% --add-opens java.base/java.io=ALL-UNNAMED
SET JDK_JAVA_OPTIONS=%JDK_JAVA_OPTIONS% --add-opens java.base/java.lang=ALL-UNNAMED
diff --git a/packaging/plf-tomcat-resources/src/main/resources/bin/setenv.sh b/packaging/plf-tomcat-resources/src/main/resources/bin/setenv.sh
index b1f094dc6..52a314946 100755
--- a/packaging/plf-tomcat-resources/src/main/resources/bin/setenv.sh
+++ b/packaging/plf-tomcat-resources/src/main/resources/bin/setenv.sh
@@ -284,18 +284,13 @@ if [ ! -z "$JAVA_HOME" ]; then
javaExec=$JAVA_HOME/bin/java
fi
-# Used JDK_JAVA_OPTIONS for JDK 9+ options since this variable is only recognized by JDK 9+
-cmd=$($javaExec -jar "$CATALINA_HOME"/bin/exo-tools.jar isJava11OrSuperior)
-if [ $? != 0 ]; then
- JDK_JAVA_OPTIONS="--add-modules java.activation --add-modules java.xml.bind"
-fi
# Open all required modules for reflective access operations
JDK_JAVA_OPTIONS="$JDK_JAVA_OPTIONS --add-opens java.base/java.io=ALL-UNNAMED"
JDK_JAVA_OPTIONS="$JDK_JAVA_OPTIONS --add-opens java.base/java.lang=ALL-UNNAMED"
JDK_JAVA_OPTIONS="$JDK_JAVA_OPTIONS --add-opens java.base/java.lang.invoke=ALL-UNNAMED"
JDK_JAVA_OPTIONS="$JDK_JAVA_OPTIONS --add-opens java.base/java.lang.reflect=ALL-UNNAMED"
-JDK_JAVA_OPTIONS="$JDK_JAVA_OPTIONS --add-opens=java.base/java.lang.module=ALL-UNNAMED"
-JDK_JAVA_OPTIONS="$JDK_JAVA_OPTIONS --add-opens=java.base/jdk.internal.module=ALL-UNNAMED"
+JDK_JAVA_OPTIONS="$JDK_JAVA_OPTIONS --add-opens java.base/java.lang.module=ALL-UNNAMED"
+JDK_JAVA_OPTIONS="$JDK_JAVA_OPTIONS --add-opens java.base/jdk.internal.module=ALL-UNNAMED"
JDK_JAVA_OPTIONS="$JDK_JAVA_OPTIONS --add-opens java.base/java.math=ALL-UNNAMED"
JDK_JAVA_OPTIONS="$JDK_JAVA_OPTIONS --add-opens java.base/java.net=ALL-UNNAMED"
JDK_JAVA_OPTIONS="$JDK_JAVA_OPTIONS --add-opens java.base/java.nio=ALL-UNNAMED"
diff --git a/pom.xml b/pom.xml
index e72dd27e2..f3fd7d290 100644
--- a/pom.xml
+++ b/pom.xml
@@ -301,12 +301,6 @@ Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
${project.version}pom
-
- ${project.groupId}
- plf-exo-tools
- ${project.version}
- jar
- ${project.groupId}plf-packaging-resources
@@ -391,6 +385,100 @@ Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
2.0
+
+ org.apache.maven.plugins
+ maven-enforcer-plugin
+
+
+ banned-dependencies
+
+ enforce
+
+
+
+
+
+
+ There are some unwanted dependencies in the dependency tree. Find them with "mvn dependency:tree -Dverbose -Dincludes=groupId:artifactId:version" and remove them at the furthest dependency level in the dependency tree
+ true
+
+
+ org.apache.ant:*
+ org.apache.axis:axis-ant:*
+
+ log4j:*
+ org.apache.logging.log4j:log4j-core
+
+ org.slf4j:slf4j-jcl:*
+
+ org.slf4j:slf4j-log4j12:*
+ org.slf4j:slf4j-simple:*
+
+ org.slf4j:slf4j-jdk14:*
+
+ xstream:xstream:*
+
+ jdom:*:*
+
+ org.exoplatform.portal:*:*
+
+ javax.servlet:*
+ com.google.gwt:gwt-user:*
+ javax.servlet.jsp:*
+
+ junit:*
+ org.testng:*
+ org.exoplatform.tool:exo.tool.framework.junit
+ org.jmock:*
+ jmock:*
+ org.mockito:*
+
+ jdom:*
+
+ xpp3:xpp3_min
+
+ commons-beanutils:commons-beanutils-core
+
+ org.jboss.logging:jboss-logging-spi
+
+ org.codehaus.woodstox:wstx-asl
+
+ xml-apis:*
+ org.apache.geronimo.specs:geronimo-stax-api_1.0_spec
+ stax:*
+ javax.xml.stream:*
+ org.apache.geronimo.specs:geronimo-activation_1.0.2_spec
+ org.jboss.javaee:jboss-transaction-api
+ org.jboss.spec.javax.transaction:*
+ org.ow2.spec.ee:ow2-jta-1.1-spec
+
+ rome:modules:*
+
+ *:xmlParserAPIs:*
+
+ org.icepdf:icepdf-core:*
+
+ org.infinispan:*:*
+
+ commons-dbcp:*:*
+ net.sourceforge.jregex:*:*
+ com.sun.japex:*:*
+ org.web3j:web3j-unit:*
+ org.codehaus.cargo:*:*
+
+
+
+ org.apache.tomcat:tomcat:zip
+
+ org.apache.logging.log4j:log4j-api:[2.18.0,)
+
+
+
+ true
+
+
+
+
@@ -404,86 +492,6 @@ Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
org.apache.maven.pluginsmaven-enforcer-plugin
-
- banned-dependencies
-
- enforce
-
-
-
-
-
-
- There are some unwanted dependencies in the dependency tree. Find them with "mvn dependency:tree -Dverbose -Dincludes=groupId:artifactId:version" and remove them at the furthest dependency level in the dependency tree
- true
-
-
- org.apache.ant:*
- org.apache.axis:axis-ant:*
-
- log4j:*
- org.apache.logging.log4j:log4j-core
-
- org.slf4j:slf4j-jcl:*
-
- org.slf4j:slf4j-log4j12:*
- org.slf4j:slf4j-simple:*
-
- org.slf4j:slf4j-jdk14:*
-
- xstream:xstream:*
-
- jdom:*:*
-
- org.exoplatform.portal:*:*
-
- javax.servlet:*
- com.google.gwt:gwt-user:*
- javax.servlet.jsp:*
-
- junit:*
- org.testng:*
- org.exoplatform.tool:exo.tool.framework.junit
- org.jmock:*
- jmock:*
- org.mockito:*
-
- jdom:*
-
- xpp3:xpp3_min
-
- commons-beanutils:commons-beanutils-core
-
- org.jboss.logging:jboss-logging-spi
-
- org.codehaus.woodstox:wstx-asl
-
- xml-apis:*
- org.apache.geronimo.specs:geronimo-stax-api_1.0_spec
- stax:*
- javax.xml.stream:*
- org.apache.geronimo.specs:geronimo-activation_1.0.2_spec
- org.jboss.javaee:jboss-transaction-api
- org.jboss.spec.javax.transaction:*
- org.ow2.spec.ee:ow2-jta-1.1-spec
-
- rome:modules:*
-
- *:xmlParserAPIs:*
-
- org.icepdf:icepdf-core:*
-
-
-
- org.apache.tomcat:tomcat:zip
-
- org.apache.logging.log4j:log4j-api:[2.18.0,)
-
-
-
- true
-
- enforce-bytecode-version
diff --git a/services/plf-exo-tools/pom.xml b/services/plf-exo-tools/pom.xml
deleted file mode 100644
index 61296b2cd..000000000
--- a/services/plf-exo-tools/pom.xml
+++ /dev/null
@@ -1,81 +0,0 @@
-
-
-
- 4.0.0
-
- io.meeds.distribution
- plf-services
- 7.0.x-meed-SNAPSHOT
-
- plf-exo-tools
- jar
- Meeds:: Meeds:: Meeds Public Distribution - Services - eXo Tools
-
- 0.47
-
-
-
- junit
- junit
- test
-
-
-
-
-
- org.apache.maven.plugins
- maven-jar-plugin
-
-
-
- true
- org.exoplatform.distributions.tools.ExoTools
-
-
-
-
-
-
-
-
-
- exo-release
-
-
-
- org.apache.maven.plugins
- maven-enforcer-plugin
-
-
- banned-dependencies
-
- enforce
-
-
-
- false
-
-
-
-
-
-
-
-
-
diff --git a/services/plf-exo-tools/src/main/java/org/exoplatform/distributions/tools/ExoTools.java b/services/plf-exo-tools/src/main/java/org/exoplatform/distributions/tools/ExoTools.java
deleted file mode 100644
index 088b22fd3..000000000
--- a/services/plf-exo-tools/src/main/java/org/exoplatform/distributions/tools/ExoTools.java
+++ /dev/null
@@ -1,90 +0,0 @@
-/*
- * This file is part of the Meeds project (https://meeds.io/).
- * Copyright (C) 2020 Meeds Association
- * contact@meeds.io
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 3 of the License, or (at your option) any later version.
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- * You should have received a copy of the GNU Lesser General Public License
- * along with this program; if not, write to the Free Software Foundation,
- * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
- */
-
-package org.exoplatform.distributions.tools;
-
-/**
- * Main class for the exo-tools JAR.
- *
- * This library is used by the startup scripts to configure the environment (JVM)
- * according to system parameters.
- *
- * The exo-tools.jar is present at the following path:
- *
- *
PLF Tomcat: $CATALINA_HOME/bin/exo-tools.jar
- *
PLF JBoss: $JBOSS_HOME/bin/exo-tools.jar
- *
- */
-public final class ExoTools {
-
- /** Java Version from the system */
- public static final String systemJavaVersion = System.getProperty("java.version");
-
- public static final String CMD_JAVA_8 = "isJava8";
-
- public static final String CMD_JAVA_8_OR_MORE = "isJava8OrSuperior";
-
- public static final String CMD_JAVA_9 = "isJava9";
-
- public static final String CMD_JAVA_9_OR_MORE = "isJava9OrSuperior";
-
- public static final String CMD_JAVA_11 = "isJava11";
-
- public static final String CMD_JAVA_11_OR_MORE = "isJava11OrSuperior";
-
- /**
- * eXo Tools entrypoint.
- *
- * @param args the command to execute
- */
- public static void main(String args[]) {
- int result = doMain(args);
- System.exit(result);
- }
-
- /**
- * Check the prerequisites and execute the process
- * according to the given command.
- *
- * @param args the command to execute
- * @return 0 if the process is OK, -1 otherwise
- */
- private static int doMain(String args[]) {
-
- if (null == systemJavaVersion || systemJavaVersion.equals("") || args.length == 0) {
- return -1;
- }
- final JavaVersion javaVersion = new JavaVersion(systemJavaVersion);
-
- switch (args[0]) {
- case CMD_JAVA_8:
- return javaVersion.isMinorVersionEqual(8);
- case CMD_JAVA_8_OR_MORE:
- return javaVersion.isMinorVersionSuperiorOrEqual(8);
- case CMD_JAVA_9:
- return javaVersion.isMajorVersionEqual(9);
- case CMD_JAVA_9_OR_MORE:
- return javaVersion.isMajorVersionSuperiorOrEqual(9);
- case CMD_JAVA_11:
- return javaVersion.isMajorVersionEqual(11);
- case CMD_JAVA_11_OR_MORE:
- return javaVersion.isMajorVersionSuperiorOrEqual(11);
- default:
- return -1;
- }
- }
-}
diff --git a/services/plf-exo-tools/src/main/java/org/exoplatform/distributions/tools/JavaVersion.java b/services/plf-exo-tools/src/main/java/org/exoplatform/distributions/tools/JavaVersion.java
deleted file mode 100644
index a2ada9f0d..000000000
--- a/services/plf-exo-tools/src/main/java/org/exoplatform/distributions/tools/JavaVersion.java
+++ /dev/null
@@ -1,138 +0,0 @@
-/*
- * This file is part of the Meeds project (https://meeds.io/).
- * Copyright (C) 2020 Meeds Association
- * contact@meeds.io
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 3 of the License, or (at your option) any later version.
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- * You should have received a copy of the GNU Lesser General Public License
- * along with this program; if not, write to the Free Software Foundation,
- * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
- */
-
-package org.exoplatform.distributions.tools;
-
-import java.util.Objects;
-import java.util.regex.Matcher;
-import java.util.regex.Pattern;
-
-
-/**
- * Extract Java Minor version as int from a String Java version in official format.
- *
- *
- * Example of String Java Version:
- *
- *
Java 8: 1.8, 1.8.0, 1.8.0_65
- *
Java 9: 9, 9.0, 9.1.1
- *
- *
- *
- */
-class JavaVersion {
-
- /** Pattern based on official Java version format */
- final Pattern regex = Pattern.compile("([\\d]+)(?:[\\.\\+]([\\d]+)(?:.*|$))?");
-
- /** Default value for Java major version */
- private int systemJavaMajorVersion = 1;
-
- /** Default value for Java minor version */
- private int systemJavaMinorVersion = 8;
-
- JavaVersion(String version) {
- extractVersions(version);
- }
-
- /**
- * Extract major and minor versions as int from a String Java version.
- *
- * @param systemJavaVersion Java Version as String ie: 1.8.0_45
- */
- void extractVersions(final String systemJavaVersion) {
- try {
- Matcher regexMatcher = regex.matcher(systemJavaVersion);
- if (regexMatcher.find()) {
- String strSystemJavaMajorVersion = regexMatcher.group(1);
- systemJavaMajorVersion = Integer.parseInt(strSystemJavaMajorVersion);
- if(strSystemJavaMajorVersion.equals(systemJavaVersion)) {
- systemJavaMinorVersion = 0;
- } else {
- String minorVersion = regexMatcher.group(2);
- if (minorVersion != null) {
- systemJavaMinorVersion = Integer.parseInt(minorVersion);
- }
- }
- }
- } catch (Exception ex){
- // By default JDK 8 version is used.
- }
- }
-
- /**
- * Check if the version is superior or equal to the Java System Major Version.
- * @param version Java major version to compare
- * @return 0 if true, -1 otherwise
- */
- public final int isMajorVersionSuperiorOrEqual(int version) {
- return ((systemJavaMajorVersion >= version) ? 0 : -1);
- }
-
- /**
- * Check if the version is equal to the Java System Major Version.
- * @param version Java major version to compare
- * @return 0 if true, -1 otherwise
- */
- public final int isMajorVersionEqual(int version) {
- return ((systemJavaMajorVersion == version) ? 0 : -1);
- }
-
-
- /**
- * Check if the version is superior or equal to the Java System Minor Version.
- * @param version Java minor version to compare
- * @return 0 if true, -1 otherwise
- */
- public final int isMinorVersionSuperiorOrEqual(int version) {
- return ((systemJavaMinorVersion >= version) ? 0 : -1);
- }
-
- /**
- * Check if the version is equal to the Java System Minor Version.
- * @param version Java minor version to compare
- * @return 0 if true, -1 otherwise
- */
- public final int isMinorVersionEqual(int version) {
- return ((systemJavaMinorVersion == version) ? 0 : -1);
- }
-
- public int getSystemJavaMajorVersion() {
- return systemJavaMajorVersion;
- }
-
- public int getSystemJavaMinorVersion() {
- return systemJavaMinorVersion;
- }
-
- @Override
- public boolean equals(Object o) {
- if (this == o)
- return true;
- if (o == null || getClass() != o.getClass())
- return false;
- JavaVersion that = (JavaVersion) o;
- return Objects.equals(systemJavaMajorVersion, that.systemJavaMajorVersion) &&
- Objects.equals(systemJavaMinorVersion, that.systemJavaMinorVersion);
- }
-
- @Override
- public int hashCode() {
- return Objects.hash(systemJavaMajorVersion, systemJavaMinorVersion);
- }
-
-}
diff --git a/services/plf-exo-tools/src/test/java/org/exoplatform/distributions/tools/JavaVersionTest.java b/services/plf-exo-tools/src/test/java/org/exoplatform/distributions/tools/JavaVersionTest.java
deleted file mode 100644
index f5ee27136..000000000
--- a/services/plf-exo-tools/src/test/java/org/exoplatform/distributions/tools/JavaVersionTest.java
+++ /dev/null
@@ -1,125 +0,0 @@
-/*
- * This file is part of the Meeds project (https://meeds.io/).
- * Copyright (C) 2020 Meeds Association
- * contact@meeds.io
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 3 of the License, or (at your option) any later version.
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- * You should have received a copy of the GNU Lesser General Public License
- * along with this program; if not, write to the Free Software Foundation,
- * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
- */
-package org.exoplatform.distributions.tools;
-
-import org.junit.Test;
-
-import static org.junit.Assert.*;
-
-
-public class JavaVersionTest {
-
- @Test
- public final void testBadFormatVersion(){
- JavaVersion jv = new JavaVersion("12_7");
-
- // if we can't determine the version, we consider that it's Java 8
- assertTrue(jv.isMinorVersionEqual(8) == 0);
- assertTrue(jv.isMinorVersionEqual(9) == -1);
- assertTrue(jv.isMinorVersionSuperiorOrEqual(8) == 0);
- assertTrue(jv.isMinorVersionSuperiorOrEqual(9) == -1);
- }
-
- @Test
- public final void testJava8Version(){
- JavaVersion jv = new JavaVersion("1.8.0_25");
-
- assertTrue(jv.isMinorVersionEqual(8) == 0);
- assertTrue(jv.isMinorVersionEqual(9) == -1);
- assertTrue(jv.isMinorVersionSuperiorOrEqual(8) == 0);
- assertTrue(jv.isMinorVersionSuperiorOrEqual(9) == -1);
-
- jv = new JavaVersion("1.8.0");
- assertTrue(jv.isMinorVersionEqual(8) == 0);
- assertTrue(jv.isMinorVersionEqual(9) == -1);
- assertTrue(jv.isMinorVersionSuperiorOrEqual(8) == 0);
- assertTrue(jv.isMinorVersionSuperiorOrEqual(9) == -1);
-
- jv = new JavaVersion("1.8");
- assertTrue(jv.isMinorVersionEqual(8) == 0);
- assertTrue(jv.isMinorVersionEqual(9) == -1);
- assertTrue(jv.isMinorVersionSuperiorOrEqual(8) == 0);
- assertTrue(jv.isMinorVersionSuperiorOrEqual(9) == -1);
- }
-
-
- @Test
- public final void testJava9Version(){
- JavaVersion jv = new JavaVersion("9");
-
- assertTrue(jv.isMinorVersionEqual(8) == -1);
- assertTrue(jv.isMajorVersionEqual(9) == 0);
- assertTrue(jv.isMajorVersionSuperiorOrEqual(9) == 0);
-
- jv = new JavaVersion("9.0");
- assertTrue(jv.isMinorVersionEqual(8) == -1);
- assertTrue(jv.isMajorVersionEqual(9) == 0);
- assertTrue(jv.isMinorVersionEqual(0) == 0);
- assertTrue(jv.isMinorVersionSuperiorOrEqual(8) == -1);
- assertTrue(jv.isMajorVersionSuperiorOrEqual(9) == 0);
-
- jv = new JavaVersion("9.0.1");
- assertTrue(jv.isMinorVersionEqual(8) == -1);
- assertTrue(jv.isMajorVersionEqual(9) == 0);
- assertTrue(jv.isMinorVersionEqual(0) == 0);
- assertTrue(jv.isMinorVersionSuperiorOrEqual(8) == -1);
- assertTrue(jv.isMajorVersionSuperiorOrEqual(9) == 0);
- }
-
- @Test
- public final void testJava11Version(){
- JavaVersion jv = new JavaVersion("11");
-
- assertTrue(jv.isMinorVersionEqual(8) == -1);
- assertTrue(jv.isMajorVersionEqual(9) == -1);
- assertTrue(jv.isMajorVersionEqual(11) == 0);
- assertTrue(jv.isMajorVersionSuperiorOrEqual(11) == 0);
-
- jv = new JavaVersion("11.0");
- assertTrue(jv.isMinorVersionEqual(8) == -1);
- assertTrue(jv.isMajorVersionEqual(9) == -1);
- assertTrue(jv.isMajorVersionEqual(11) == 0);
- assertTrue(jv.isMinorVersionEqual(0) == 0);
- assertTrue(jv.isMinorVersionSuperiorOrEqual(8) == -1);
- assertTrue(jv.isMajorVersionSuperiorOrEqual(9) == 0);
- assertTrue(jv.isMajorVersionSuperiorOrEqual(11) == 0);
-
- jv = new JavaVersion("11.0.1");
- assertTrue(jv.isMinorVersionEqual(8) == -1);
- assertTrue(jv.isMajorVersionEqual(9) == -1);
- assertTrue(jv.isMajorVersionEqual(11) == 0);
- assertTrue(jv.isMinorVersionEqual(0) == 0);
- assertTrue(jv.isMinorVersionSuperiorOrEqual(8) == -1);
- assertTrue(jv.isMajorVersionSuperiorOrEqual(9) == 0);
- assertTrue(jv.isMajorVersionSuperiorOrEqual(11) == 0);
- }
-
- @Test
- public void testEquals() {
- JavaVersion jv825 = new JavaVersion("1.8.0_25");
- JavaVersion jv845 = new JavaVersion("1.8.0_45");
- JavaVersion jv11 = new JavaVersion("11");
- JavaVersion jv1101 = new JavaVersion("11.0.1");
-
- assertEquals(jv825, jv825);
- assertEquals(jv825, jv845);
- assertEquals(jv825, jv845);
- assertNotEquals(jv825, new Object());
- assertEquals(jv11, jv1101);
- assertNotEquals(jv825, jv1101);
- }
-}
diff --git a/services/pom.xml b/services/pom.xml
index b36206885..cb36db029 100644
--- a/services/pom.xml
+++ b/services/pom.xml
@@ -32,7 +32,6 @@ Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
plf-configurationplf-community-edition-service
- plf-exo-toolsplf-tomcat-pc-creator-listener
diff --git a/webapps/plf-meeds-extension/src/main/webapp/WEB-INF/conf/configuration.xml b/webapps/plf-meeds-extension/src/main/webapp/WEB-INF/conf/configuration.xml
index 97a003f40..b0983b62d 100644
--- a/webapps/plf-meeds-extension/src/main/webapp/WEB-INF/conf/configuration.xml
+++ b/webapps/plf-meeds-extension/src/main/webapp/WEB-INF/conf/configuration.xml
@@ -24,5 +24,6 @@ Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
war:/conf/meeds/portal-configuration.xmlwar:/conf/meeds/portal-upgrade-configuration.xmlwar:/conf/meeds/resources-bundle-configuration.xml
+ war:/conf/meeds/cache-configuration.xml
diff --git a/webapps/plf-meeds-extension/src/main/webapp/WEB-INF/conf/meeds/cache-configuration.xml b/webapps/plf-meeds-extension/src/main/webapp/WEB-INF/conf/meeds/cache-configuration.xml
new file mode 100644
index 000000000..0c23ec687
--- /dev/null
+++ b/webapps/plf-meeds-extension/src/main/webapp/WEB-INF/conf/meeds/cache-configuration.xml
@@ -0,0 +1,833 @@
+
+
+
+
+
+ org.exoplatform.services.cache.CacheService
+
+ addExoCacheConfig
+ addExoCacheConfig
+ org.exoplatform.services.cache.ExoCacheConfigPlugin
+ Configures the cache for analytics queue which must remain a local cache
+
+
+ analytics.queue
+
+
+
+
+
+ commons.WebNotificationCache
+ The Cache configuration for the Web Notification Cache
+
+
+
+
+ commons.WebNotificationsCache
+ The Cache configuration for the Web Notification List Cache
+
+
+
+
+ commons.WebNotificationCountCache
+ The Cache configuration for the Web Notification Count Cache
+
+
+
+
+ commons.UserSettingService
+ The Cache configuration for the UserSettingService
+
+
+
+
+ commons.UserStateService
+ The Cache configuration for the UserStateService
+
+
+
+ gamification.domain
+
+
+
+ gamification.rule
+
+
+
+ gamification.realization
+
+
+
+ wiki.PageRenderingCache
+ The wiki markup cache configuration
+
+
+
+ wiki.PageAttachmentCache
+ The Cache configuration for wiki page attachment count
+
+
+
+ perkstore.product
+
+
+
+ perkstore.order
+
+
+
+ portal.User
+ Exo Cache cluster configuration for IDM User entity
+
+
+
+ portal.Profile
+ Exo Cache cluster configuration for IDM User Profile entity
+
+
+
+ portal.Membership
+ Exo Cache cluster configuration for IDM Membership entity
+
+
+
+
+ portal.Role
+ Exo Cache cluster configuration for IDM Membership Type entity
+
+
+
+
+ portal.Group
+ Exo Cache cluster configuration for IDM Group entity
+
+
+
+
+ commons.SettingService
+ The Cache configuration for the setting service
+
+
+
+
+ portal.PortletPreferences
+ The cache configuration for Portlet Preferences
+
+
+
+ portal.NavigationNode
+ The Cache configuration for the MOP session Manager
+
+
+
+ portal.NavigationService
+ The cache configuration for the navigation Trees service
+
+
+
+ portal.SiteService
+ The cache configuration for Site layout service
+
+
+
+ portal.SiteKeysByFilterService
+ The cache configuration for Site layout service
+
+
+
+ portal.DescriptionService
+ The Cache configuration for the description service
+
+
+
+ portal.PageService
+ The Cache configuration for the page service
+
+
+
+
+ portal.TemplateService
+ The Cache configuration for the template service
+
+
+
+ portal.ResourceBundleData
+
+
+
+
+
+ social.IdentityCache
+ The Cache configuration for the IdentityCache
+
+
+
+ social.IdentityIndexCache
+ The Cache configuration for the IdentityIndexCache
+
+
+
+ social.ProfileCache
+ The Cache configuration for the ProfileCache
+
+
+
+ social.IdentitiesCountCache
+ The Cache configuration for the IdentitiesCountCache
+
+
+
+ social.IdentitiesCache
+ The Cache configuration for the IdentitiesCache
+
+
+
+
+
+ social.RelationshipCache
+ The Cache configuration for the RelationshipCache
+
+
+
+ social.RelationshipFromIdentityCache
+ The Cache configuration for the RelationshipFromIdentityCache
+
+
+
+ social.RelationshipsCountCache
+ The Cache configuration for the RelationshipsCountCache
+
+
+
+ social.RelationshipsCache
+ The Cache configuration for the RelationshipsCache
+
+
+
+ social.SuggestionsCache
+ The Cache configuration for the SuggestionsCache
+
+
+
+
+
+ social.ActivityCache
+ The Cache configuration for the ActivityCache
+
+
+
+ social.ActivitiesCountCache
+
+
+
+
+ social.ActivitiesCache
+
+
+
+
+
+
+ social.SpaceCache
+ The Cache configuration for the SpaceCache
+
+
+
+ social.SpaceSimpleCache
+
+
+
+
+ social.SpaceRefCache
+ The Cache configuration for the SpaceRefCache
+
+
+
+ social.SpacesCountCache
+ The Cache configuration for the SpacesCountCache
+
+
+
+ social.SpacesCache
+ The Cache configuration for the SpacesCache
+
+
+
+ social.translation
+ The Cache configuration for the TranslationStorage
+
+
+
+ social.linkSettings
+ The Cache configuration for the LinkStorage
+
+
+
+ social.cmsSetting
+ The Cache configuration for the CMSStorage
+
+
+
+
+ social.ProfileAvatar
+ The Cache configuration for the ProfileAvatar
+
+
+
+ wallet.transactions
+ Wallet application transactions cache
+
+
+
+ wallet.account
+
+
+
+
+
+
+
+