Revision 12e5bfcc3f6c1daab9d8bb2aee9bda22cf611bd9 authored by Michael Hamann on 13 December 2023, 14:34:03 UTC, committed by Michael Hamann on 13 December 2023, 14:34:03 UTC
1 parent de3c39c
pom.xml
<?xml version="1.0" encoding="UTF-8"?>
<!--
* See the NOTICE file distributed with this work for additional
* information regarding copyright ownership.
*
* This 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 2.1 of
* the License, or (at your option) any later version.
*
* This software 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 software; if not, write to the Free
* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
-->
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>org.xwiki.commons</groupId>
<artifactId>xwiki-commons</artifactId>
<name>XWiki Commons - Parent POM</name>
<packaging>pom</packaging>
<version>15.10.2-SNAPSHOT</version>
<description>A collaborative development platform runtime based on the wiki paradigm</description>
<!-- This special URL automatically finds the correct documentation page or javadoc for the module based on the
passed maven coordinates (groupid:artifactid:version). Starting with 6.2-milestone-1, the version has been
added to better support javadoc links.
It allows to have a single URL definition in this top-level POM and still get valid website URLs for all
modules.
Note that we're ending the URL with ":::" for the following reasons:
- Since we don't overwrite the <url> element in children POM, Maven automatically appends the relative path
to the children modules. For example:
"/xwiki-commons-pom/xwiki-commons-core/xwiki-commons-component/xwiki-commons-component-api"
and the javadoc produce external link using a path like for example:
"/xwiki-commons-pom/.../apidocs/org/xwiki/model/reference/DocumentReference.html?is-external=true"
- Ideally we would use instead a generic URL like:
"https://extenions.xwiki.org?id=${project.groupId}:${project.artifactId}&path="
However this makes the site plugin fails, see https://jira.codehaus.org/browse/MNG-5242
-->
<url>https://extensions.xwiki.org?id=${project.groupId}:${project.artifactId}:${project.version}:::</url>
<inceptionYear>2004</inceptionYear>
<properties>
<!-- Define it here because we can't use ${project.version} for plugins and it's useful for
commons children anyway -->
<commons.version>15.10.2-SNAPSHOT</commons.version>
<!-- The previous stable version of this project to check against for finding backward incompatibility
(binary and source). -->
<xwiki.compatibility.previous.version>15.10.1</xwiki.compatibility.previous.version>
<!-- Java -->
<xwiki.java.version>11</xwiki.java.version>
<java.version>${xwiki.java.version}</java.version>
<!-- Jakarta modules -->
<jakarta.mail.version>1.6.7</jakarta.mail.version>
<jakarta.activation.version>1.2.2</jakarta.activation.version>
<jakarta.transaction.version>1.3.3</jakarta.transaction.version>
<!-- Jackson -->
<jackson.version>2.15.3</jackson.version>
<jackson.databind.version>${jackson.version}</jackson.databind.version>
<!-- Boundy Castle -->
<bouncycastle.version>1.77</bouncycastle.version>
<!-- ASM -->
<asm.version>9.6</asm.version>
<!-- Guava -->
<guava.version>32.1.3-jre</guava.version>
<!-- SLF4J API and implementation -->
<slf4j.version>2.0.9</slf4j.version>
<logback.version>1.3.14</logback.version>
<!-- Log4J API -->
<log4j.version>2.21.1</log4j.version>
<!-- Hamcrest -->
<hamcrest.version>2.2</hamcrest.version>
<!-- JUnit -->
<junit.version>4.13.2</junit.version>
<junit5.version>5.10.1</junit5.version>
<junit.platform.version>1.10.1</junit.platform.version>
<junit.vintage.version>${junit5.version}</junit.vintage.version>
<!-- Used to keep the surefire and failsafe plugins in sync (to avoid having different behaviors when tests
are executed with surefire or failsafe) -->
<surefire.version>3.2.2</surefire.version>
<!-- Mock libraries -->
<jmock.version>2.12.0</jmock.version>
<mockito.version>5.7.0</mockito.version>
<!-- Byte Buddy -->
<bytebuddy.version>1.14.9</bytebuddy.version>
<!-- AspectJ -->
<aspectj.version>1.9.20.1</aspectj.version>
<!-- Clover & Jacoco -->
<clover.version>4.5.1</clover.version>
<jacoco.version>0.8.11</jacoco.version>
<!-- Checkstyle -->
<checkstyle.version>10.12.5</checkstyle.version>
<!-- Spoon -->
<spoon.version>10.4.2</spoon.version>
<!-- Groovy -->
<groovy.version>3.0.19</groovy.version>
<!-- Ivy -->
<ivy.version>2.5.2</ivy.version>
<!-- Closure compiler -->
<closure-compiler.version>v20231112</closure-compiler.version>
<closure-compiler-maven-plugin.version>2.28.0</closure-compiler-maven-plugin.version>
<!-- Maven Archetype -->
<maven.archetype.version>3.2.1</maven.archetype.version>
<!-- JAXB -->
<jaxb.tools.version>2.0.9</jaxb.tools.version>
<!-- By default Checkstyle, Backward compatibility check, Enforcer, License plugins, etc are on -->
<xwiki.checkstyle.skip>false</xwiki.checkstyle.skip>
<xwiki.revapi.skip>false</xwiki.revapi.skip>
<xwiki.jacoco.skip>false</xwiki.jacoco.skip>
<xwiki.enforcer.skip>false</xwiki.enforcer.skip>
<xwiki.enforcer.enforce-plugins.skip>${xwiki.enforcer.skip}</xwiki.enforcer.enforce-plugins.skip>
<xwiki.enforcer.enforce-jcl-log4j-isolation.skip>${xwiki.enforcer.skip}
</xwiki.enforcer.enforce-jcl-log4j-isolation.skip>
<xwiki.enforcer.enforce-glasshfish-jaxb.skip>${xwiki.enforcer.skip}</xwiki.enforcer.enforce-glasshfish-jaxb.skip>
<xwiki.enforcer.enforce-jaxrs1.skip>${xwiki.enforcer.skip}</xwiki.enforcer.enforce-jaxrs1.skip>
<xwiki.enforcer.enforce-open-json.skip>${xwiki.enforcer.skip}</xwiki.enforcer.enforce-open-json.skip>
<xwiki.enforcer.enforce-glassfish-el.skip>${xwiki.enforcer.skip}</xwiki.enforcer.enforce-glassfish-el.skip>
<xwiki.enforcer.enforce-commons-lang3.skip>${xwiki.enforcer.skip}</xwiki.enforcer.enforce-commons-lang3.skip>
<xwiki.enforcer.enforce-commons-configuration2.skip>${xwiki.enforcer.skip}
</xwiki.enforcer.enforce-commons-configuration2.skip>
<xwiki.enforcer.enforce-jakarta.activation.skip>${xwiki.enforcer.skip}
</xwiki.enforcer.enforce-jakarta.activation.skip>
<xwiki.enforcer.enforce-jakarta.mail.skip>${xwiki.enforcer.skip}</xwiki.enforcer.enforce-jakarta.mail.skip>
<xwiki.enforcer.enforce-jakarta.annotation-api.skip>${xwiki.enforcer.skip}
</xwiki.enforcer.enforce-jakarta.annotation-api.skip>
<xwiki.enforcer.enforce-inject.skip>${xwiki.enforcer.skip}</xwiki.enforcer.enforce-inject.skip>
<xwiki.enforcer.enforce-bouncycastle-ids.skip>${xwiki.enforcer.skip}</xwiki.enforcer.enforce-bouncycastle-ids.skip>
<xwiki.enforcer.enforce-jsr305.skip>${xwiki.enforcer.skip}</xwiki.enforcer.enforce-jsr305.skip>
<xwiki.enforcer.enforce-jta.skip>${xwiki.enforcer.skip}</xwiki.enforcer.enforce-jta.skip>
<xwiki.enforcer.enforce-jakarta.validation-api.skip>${xwiki.enforcer.skip}</xwiki.enforcer.enforce-jakarta.validation-api.skip>
<xwiki.enforcer.enforce-hibernate-validator.skip>${xwiki.enforcer.skip}</xwiki.enforcer.enforce-hibernate-validator.skip>
<xwiki.enforcer.closure-compiler.skip>${xwiki.enforcer.skip}</xwiki.enforcer.closure-compiler.skip>
<xwiki.enforcer.enforce-javase-dependencies.skip>${xwiki.enforcer.skip}
</xwiki.enforcer.enforce-javase-dependencies.skip>
<xwiki.enforcer.enforce-velocity-engine-core.skip>${xwiki.enforcer.skip}
</xwiki.enforcer.enforce-velocity-engine-core.skip>
<xwiki.enforcer.enforce-asm.skip>${xwiki.enforcer.skip}</xwiki.enforcer.enforce-asm.skip>
<xwiki.enforcer.enforce-cglib.skip>${xwiki.enforcer.skip}</xwiki.enforcer.enforce-cglib.skip>
<xwiki.enforcer.enforce-jdom.skip>${xwiki.enforcer.skip}</xwiki.enforcer.enforce-jdom.skip>
<xwiki.enforcer.enforce-no-old-xwiki-commons.skip>${xwiki.enforcer.skip}</xwiki.enforcer.enforce-no-old-xwiki-commons.skip>
<xwiki.enforcer.enforce-upper-bounds.skip>${xwiki.enforcer.skip}</xwiki.enforcer.enforce-upper-bounds.skip>
<xwiki.enforcer.enforce-java.skip>${xwiki.enforcer.skip}</xwiki.enforcer.enforce-java.skip>
<xwiki.license.skip>false</xwiki.license.skip>
<!-- Enable by default auto release on Jira -->
<xwiki.release.jira.skip>false</xwiki.release.jira.skip>
<xwiki.release.jira.settingsKey>jira.xwiki.org</xwiki.release.jira.settingsKey>
<xwiki.release.jira.scope>session</xwiki.release.jira.scope>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<!-- When this property is set to true then functional tests will check if an XWiki instance is already running
before trying to start XWiki and if so, reuse it and don't start XWiki. This is useful for example when you
wish to manually execute functional tests on your machine and start XWiki manually rather than XWiki being
started by the tests.
When this property is set to false, then verify if some XWiki instance is already running by verifying if the
port is free and fail if so. Otherwise start XWiki.
By default it's set to false since functional UI tests should not check if an XWiki instance is already
running before starting XWiki since performing this check would delay the build and there should be no running
instance when the build executes. -->
<xwiki.test.verifyRunningXWikiAtStart>false</xwiki.test.verifyRunningXWikiAtStart>
<!-- Sonar/Jacoco integration. Note that these properties need to be defined outside the "coverage" profile
because we want to be to able to execute mvn sonar:sonar without passing a profile -->
<!-- Config to push to Sonarcloud.io -->
<sonar.host.url>https://sonarcloud.io</sonar.host.url>
<sonar.organization>xwiki</sonar.organization>
<!-- Tells Sonar to use jacoco for coverage results -->
<sonar.java.coveragePlugin>jacoco</sonar.java.coveragePlugin>
<!-- The system property xwiki.jacoco.itDestFile needs to be passed on the command line.
Example:
mvn clean install -Pcoverage -Dxwiki.jacoco.itDestFile=`pwd`/target/jacoco-it.exec
Note that unfortunately using the following does not work because of
https://jira.codehaus.org/browse/SONAR-3427:
<xwiki.jacoco.itDestFile>
${session.executionRootDirectory}/target/xwiki-jacoco-it.exec
</xwiki.jacoco.itDestFile>
-->
<!-- Tells Sonar where the Jacoco coverage result file is located for IT tests so that Sonar can display coverage
for ITs -->
<sonar.jacoco.itReportPath>${xwiki.jacoco.itDestFile}</sonar.jacoco.itReportPath>
<!-- Version of Maven used during the build (the one used as dependency when building and during Maven plugins
executions) -->
<maven.build.version>3.6.3</maven.build.version>
<maven.resolver.build.version>1.4.1</maven.resolver.build.version>
<!-- Version of Maven emebdded in XWiki runtime (more recent than the one used during the build to benefit from bugfixes and improvements) -->
<maven.runtime.version>3.9.5</maven.runtime.version>
<maven.resolver.runtime.version>1.9.16</maven.resolver.runtime.version>
<!-- Minimum version of the actual Maven binary required to build -->
<maven.minimum.version>${maven.build.version}</maven.minimum.version>
<!-- The current Maven version declared in the dependency management (so that it can be change for the distribution
for example) -->
<maven.version>${maven.build.version}</maven.version>
<maven.resolver.version>${maven.resolver.build.version}</maven.resolver.version>
<!-- Plexus -->
<plexus-containers.version>2.1.1</plexus-containers.version>
<!-- The version of Maven Enforcer plugin -->
<maven-enforcer.version>3.4.1</maven-enforcer.version>
<!-- The version of the Maven Plugin Tools (maven-plugin-*) -->
<maven.plugin.tools.version>3.10.2</maven.plugin.tools.version>
<!-- The version of the Maven Remote Resource plugin -->
<maven-remote-resources-plugin.version>1.7.0</maven-remote-resources-plugin.version>
<!-- The version of the Maven Compiler Plugin -->
<maven.compiler.version>3.11.0</maven.compiler.version>
<!-- The version of Eclipse Sisu to use-->
<sisu.version>0.3.5</sisu.version>
<!-- The versions of Antlr to bundle -->
<antlr3.version>3.5.3</antlr3.version>
<antlr4.version>4.9.3</antlr4.version>
<!-- Servlet specifications -->
<servlet.version>3.1.0</servlet.version>
<!-- EL implementation -->
<!-- Use the same version as the one that comes with the custom XWiki Jetty application server -->
<apachache-el.version>9.0.52</apachache-el.version>
<webdrivermanager.version>5.6.2</webdrivermanager.version>
<!-- The recommended version of known extensions to use -->
<xwiki.extension.recommendedVersions.commons>org.xwiki.commons:.*/[${commons.version}]
</xwiki.extension.recommendedVersions.commons>
<xwiki.extension.recommendedVersions>${xwiki.extension.recommendedVersion.commons}
</xwiki.extension.recommendedVersions>
<!-- Control Nexus staging (release on Maven Central for xwiki-commons and xwiki-rendering) -->
<xwiki.nexus.serverId>ossrh</xwiki.nexus.serverId>
<xwiki.nexus.nexusUrl>https://s01.oss.sonatype.org/</xwiki.nexus.nexusUrl>
<xwiki.nexus.autoReleaseAfterClose>true</xwiki.nexus.autoReleaseAfterClose>
<xwiki.nexus.keepStagingRepositoryOnCloseRuleFailure>true</xwiki.nexus.keepStagingRepositoryOnCloseRuleFailure>
<xwiki.nexus.skipLocalStaging>false</xwiki.nexus.skipLocalStaging>
<xwiki.nexus.skipStaging>false</xwiki.nexus.skipStaging>
<!-- Control Maven output directory -->
<maven.build.dir>${project.basedir}/target</maven.build.dir>
<!-- The Surefire and Failsafe configurations override the <argLine> element using the @{argLine} notation which
allows to include any argLine defined by plugins executing before them (such as Jacoco). However, if no such
plugin executes before, the property is undefined and makes the tests fail. Thus we define an empty property
here to make sure it doesn't fail. See also https://issues.apache.org/jira/browse/SUREFIRE-1431
-->
<argLine/>
</properties>
<licenses>
<license>
<name>LGPL 2.1</name>
<url>https://www.gnu.org/licenses/old-licenses/lgpl-2.1.html</url>
<distribution>repo</distribution>
</license>
</licenses>
<issueManagement>
<system>jira</system>
<url>https://jira.xwiki.org/browse/XCOMMONS</url>
</issueManagement>
<developers>
<!-- Note that this information is read by XWiki's Extension Manager and passed to the XWiki Repository Application
to mention who developed the various published XWiki extensions. We use a fake Developer who represents the
whole team because it's simpler to manage only one developer at this level and instead use the wiki at
https://dev.xwiki.org/xwiki/bin/view/Community/HallOfFame to provide an up to date view of all XWiki devs. -->
<developer>
<id>devs</id>
<name>XWiki Development Team</name>
</developer>
</developers>
<organization>
<name>XWiki</name>
<url>https://xwiki.org/</url>
</organization>
<scm>
<connection>scm:git:git://github.com/xwiki/xwiki-commons.git</connection>
<developerConnection>scm:git:git@github.com:xwiki/xwiki-commons.git</developerConnection>
<url>https://github.com/xwiki/xwiki-commons/tree/master/</url>
<tag>stable-15.10.x</tag>
</scm>
<mailingLists>
<mailingList>
<name>XWiki Users List</name>
<post>users@xwiki.org</post>
<subscribe>https://lists.xwiki.org/mailman/listinfo/users</subscribe>
<unsubscribe>https://lists.xwiki.org/mailman/listinfo/users</unsubscribe>
<archive>https://lists.xwiki.org/pipermail/users/</archive>
<otherArchives>
<otherArchive>https://xwiki.markmail.org/</otherArchive>
</otherArchives>
</mailingList>
<mailingList>
<name>XWiki Developers List</name>
<post>devs@xwiki.org</post>
<subscribe>https://lists.xwiki.org/mailman/listinfo/devs</subscribe>
<unsubscribe>https://lists.xwiki.org/mailman/listinfo/devs</unsubscribe>
<archive>https://lists.xwiki.org/pipermail/devs/</archive>
<otherArchives>
<otherArchive>https://xwiki.markmail.org/</otherArchive>
</otherArchives>
</mailingList>
</mailingLists>
<dependencyManagement>
<!-- Standard dependencies used in several XWiki build modules. Ensures all modules
use the same version for these dependencies -->
<dependencies>
<!-- Apache Commons -->
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-lang3</artifactId>
<version>3.13.0</version>
</dependency>
<!-- We don't use Commons Lang 2.x ourselves (we use Commons Lang 3.x) but some of our transitive dependencies
require Commons Lang. The issue is that Maven uses a "closest-to-root" strategy to resolve dependency
versions and since the transitive dependencies that require Commons Lang don't use version ranges we need
to help them... (see https://guntherpopp.blogspot.fr/2011/02/understanding-maven-dependency.html). Since
the Commons Lang project takes a lot of care of preserving backward compatibility we force to use the
latest version which is the version that has the least chance of causing problems! -->
<dependency>
<groupId>commons-lang</groupId>
<artifactId>commons-lang</artifactId>
<version>2.6</version>
</dependency>
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-collections4</artifactId>
<version>4.4</version>
</dependency>
<dependency>
<groupId>commons-collections</groupId>
<artifactId>commons-collections</artifactId>
<version>3.2.2</version>
</dependency>
<dependency>
<groupId>commons-io</groupId>
<artifactId>commons-io</artifactId>
<version>2.15.0</version>
</dependency>
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-exec</artifactId>
<version>1.3</version>
</dependency>
<dependency>
<groupId>commons-net</groupId>
<artifactId>commons-net</artifactId>
<version>3.10.0</version>
</dependency>
<dependency>
<groupId>commons-chain</groupId>
<artifactId>commons-chain</artifactId>
<version>1.2</version>
</dependency>
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-text</artifactId>
<version>1.11.0</version>
</dependency>
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-csv</artifactId>
<version>1.10.0</version>
</dependency>
<!-- Apache HttpComponents 5 -->
<dependency>
<groupId>org.apache.httpcomponents.client5</groupId>
<artifactId>httpclient5</artifactId>
<version>5.2.1</version>
</dependency>
<dependency>
<groupId>org.apache.httpcomponents.core5</groupId>
<artifactId>httpcore5</artifactId>
<version>5.2.3</version>
</dependency>
<dependency>
<groupId>org.apache.httpcomponents.core5</groupId>
<artifactId>httpcore5-h2</artifactId>
<version>5.2.3</version>
</dependency>
<!-- Apache HttpComponents 4 -->
<dependency>
<groupId>org.apache.httpcomponents</groupId>
<artifactId>httpclient</artifactId>
<version>4.5.14</version>
<!-- We want to choose the SLF4J binding only when XWiki is packaged. -->
<exclusions>
<exclusion>
<groupId>commons-logging</groupId>
<artifactId>commons-logging</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.apache.httpcomponents</groupId>
<artifactId>httpmime</artifactId>
<version>4.5.14</version>
</dependency>
<dependency>
<groupId>org.apache.httpcomponents</groupId>
<artifactId>httpcore</artifactId>
<version>4.4.16</version>
</dependency>
<dependency>
<groupId>org.apache.httpcomponents</groupId>
<artifactId>httpcore-nio</artifactId>
<version>4.4.16</version>
</dependency>
<dependency>
<groupId>org.apache.httpcomponents</groupId>
<artifactId>httpasyncclient</artifactId>
<version>4.1.5</version>
</dependency>
<!-- Old httpclient -->
<dependency>
<groupId>commons-httpclient</groupId>
<artifactId>commons-httpclient</artifactId>
<version>3.1</version>
<!-- We want to choose the SLF4J binding only when XWiki is packaged. -->
<exclusions>
<exclusion>
<groupId>commons-logging</groupId>
<artifactId>commons-logging</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-dbcp2</artifactId>
<version>2.11.0</version>
<!-- We want to choose the SLF4J binding only when XWiki is packaged. -->
<exclusions>
<exclusion>
<groupId>commons-logging</groupId>
<artifactId>commons-logging</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-pool2</artifactId>
<version>2.12.0</version>
</dependency>
<dependency>
<groupId>commons-fileupload</groupId>
<artifactId>commons-fileupload</artifactId>
<version>1.5</version>
</dependency>
<dependency>
<groupId>commons-codec</groupId>
<artifactId>commons-codec</artifactId>
<version>1.16.0</version>
</dependency>
<dependency>
<groupId>commons-beanutils</groupId>
<artifactId>commons-beanutils</artifactId>
<version>1.9.4</version>
<!-- We want to choose the SLF4J binding only when XWiki is packaged. -->
<exclusions>
<exclusion>
<groupId>commons-logging</groupId>
<artifactId>commons-logging</artifactId>
</exclusion>
</exclusions>
</dependency>
<!-- Old version of Commons Configuration, just making sure we end up with the last one -->
<dependency>
<groupId>commons-configuration</groupId>
<artifactId>commons-configuration</artifactId>
<version>1.10</version>
<!-- We want to choose the SLF4J binding only when XWiki is packaged. -->
<exclusions>
<exclusion>
<groupId>commons-logging</groupId>
<artifactId>commons-logging</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-configuration2</artifactId>
<version>2.9.0</version>
<!-- We want to choose the SLF4J binding only when XWiki is packaged. -->
<exclusions>
<exclusion>
<groupId>commons-logging</groupId>
<artifactId>commons-logging</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-compress</artifactId>
<version>1.24.0</version>
</dependency>
<dependency>
<groupId>commons-validator</groupId>
<artifactId>commons-validator</artifactId>
<version>1.7</version>
</dependency>
<dependency>
<groupId>commons-digester</groupId>
<artifactId>commons-digester</artifactId>
<version>2.1</version>
</dependency>
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-digester3</artifactId>
<version>3.2</version>
</dependency>
<dependency>
<groupId>commons-cli</groupId>
<artifactId>commons-cli</artifactId>
<version>1.6.0</version>
</dependency>
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-math3</artifactId>
<version>3.6.1</version>
</dependency>
<!-- XZ -->
<dependency>
<groupId>org.tukaani</groupId>
<artifactId>xz</artifactId>
<version>1.9</version>
</dependency>
<!-- XML processing -->
<dependency>
<groupId>com.thoughtworks.xstream</groupId>
<artifactId>xstream</artifactId>
<version>1.4.20</version>
</dependency>
<!-- Note: The DOM4J project has been dead for several years and we've decided to not use it in any new code and
over time to refactor existing code to use JDOM or other XML techniques (such as STaX). When all code has
been converted, remove this dependency and add it as a build failure so that we don't reintroduce it again
by error -->
<dependency>
<groupId>org.dom4j</groupId>
<artifactId>dom4j</artifactId>
<version>2.1.4</version>
</dependency>
<dependency>
<groupId>org.jdom</groupId>
<artifactId>jdom</artifactId>
<version>1.1.3</version>
</dependency>
<dependency>
<groupId>org.jdom</groupId>
<artifactId>jdom2</artifactId>
<version>2.0.6.1</version>
</dependency>
<dependency>
<groupId>net.java.dev.stax-utils</groupId>
<artifactId>stax-utils</artifactId>
<version>20070216</version>
<exclusions>
<!-- Not needed since Java 1.6 -->
<exclusion>
<groupId>com.bea.xml</groupId>
<artifactId>jsr173-ri</artifactId>
</exclusion>
</exclusions>
</dependency>
<!-- What is included in the JRE is too old and Oracle does not seems to plan to upgrade it anytime soon -->
<dependency>
<groupId>xerces</groupId>
<artifactId>xercesImpl</artifactId>
<version>2.12.2</version>
<exclusions>
<exclusion>
<groupId>xml-apis</groupId>
<artifactId>xml-apis</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.codehaus.woodstox</groupId>
<artifactId>stax2-api</artifactId>
<version>4.2.2</version>
</dependency>
<dependency>
<groupId>com.fasterxml.woodstox</groupId>
<artifactId>woodstox-core</artifactId>
<version>6.5.1</version>
</dependency>
<dependency>
<groupId>jaxen</groupId>
<artifactId>jaxen</artifactId>
<version>2.0.0</version>
</dependency>
<dependency>
<groupId>org.simpleframework</groupId>
<artifactId>simple-xml</artifactId>
<version>2.7.1</version>
<exclusions>
<!-- Already part of Java SE -->
<exclusion>
<groupId>stax</groupId>
<artifactId>stax</artifactId>
</exclusion>
<!-- Already part of Java SE -->
<exclusion>
<groupId>stax</groupId>
<artifactId>stax-api</artifactId>
</exclusion>
</exclusions>
</dependency>
<!-- JAXB -->
<dependency>
<groupId>jakarta.xml.bind</groupId>
<artifactId>jakarta.xml.bind-api</artifactId>
<version>2.3.3</version>
</dependency>
<dependency>
<groupId>org.glassfish.jaxb</groupId>
<artifactId>jaxb-runtime</artifactId>
<version>2.3.9</version>
</dependency>
<!-- ICU -->
<dependency>
<groupId>com.ibm.icu</groupId>
<artifactId>icu4j</artifactId>
<version>74.1</version>
</dependency>
<!-- Json -->
<dependency>
<groupId>net.sf.json-lib</groupId>
<artifactId>json-lib</artifactId>
<version>2.4</version>
<classifier>jdk15</classifier>
<!-- We want to choose the SLF4J binding only when XWiki is packaged. -->
<exclusions>
<exclusion>
<groupId>commons-logging</groupId>
<artifactId>commons-logging</artifactId>
</exclusion>
</exclusions>
</dependency>
<!-- Replace org.json:json for license reasons -->
<dependency>
<groupId>com.tdunning</groupId>
<artifactId>json</artifactId>
<version>1.8</version>
</dependency>
<dependency>
<groupId>com.google.code.gson</groupId>
<artifactId>gson</artifactId>
<version>2.10.1</version>
</dependency>
<!-- Jackson -->
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-core</artifactId>
<version>${jackson.version}</version>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-databind</artifactId>
<version>${jackson.databind.version}</version>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-annotations</artifactId>
<version>${jackson.version}</version>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.dataformat</groupId>
<artifactId>jackson-dataformat-csv</artifactId>
<version>${jackson.version}</version>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.dataformat</groupId>
<artifactId>jackson-dataformat-smile</artifactId>
<version>${jackson.version}</version>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.dataformat</groupId>
<artifactId>jackson-dataformat-xml</artifactId>
<version>${jackson.version}</version>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.dataformat</groupId>
<artifactId>jackson-dataformat-yaml</artifactId>
<version>${jackson.version}</version>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.dataformat</groupId>
<artifactId>jackson-dataformat-cbor</artifactId>
<version>${jackson.version}</version>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.dataformat</groupId>
<artifactId>jackson-dataformat-avro</artifactId>
<version>${jackson.version}</version>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.dataformat</groupId>
<artifactId>jackson-dataformat-ion</artifactId>
<version>${jackson.version}</version>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.module</groupId>
<artifactId>jackson-module-jaxb-annotations</artifactId>
<version>${jackson.version}</version>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.module</groupId>
<artifactId>jackson-module-jsonSchema</artifactId>
<version>${jackson.version}</version>
<exclusions>
<!-- We use jakarta.validation:jakarta.validation-api -->
<exclusion>
<groupId>javax.validation</groupId>
<artifactId>validation-api</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.datatype</groupId>
<artifactId>jackson-datatype-jdk8</artifactId>
<version>${jackson.version}</version>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.datatype</groupId>
<artifactId>jackson-datatype-jsr310</artifactId>
<version>${jackson.version}</version>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.datatype</groupId>
<artifactId>jackson-datatype-jsr353</artifactId>
<version>${jackson.version}</version>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.datatype</groupId>
<artifactId>jackson-datatype-guava</artifactId>
<version>${jackson.version}</version>
</dependency>
<dependency>
<groupId>org.yaml</groupId>
<artifactId>snakeyaml</artifactId>
<version>2.2</version>
</dependency>
<!-- JAX-RS -->
<dependency>
<groupId>javax.ws.rs</groupId>
<artifactId>jsr311-api</artifactId>
<version>1.1.1</version>
</dependency>
<!-- JTA -->
<dependency>
<groupId>jakarta.transaction</groupId>
<artifactId>jakarta.transaction-api</artifactId>
<version>${jakarta.transaction.version}</version>
</dependency>
<!-- Bouncy Castle -->
<dependency>
<groupId>org.bouncycastle</groupId>
<artifactId>bcprov-jdk18on</artifactId>
<version>${bouncycastle.version}</version>
</dependency>
<dependency>
<groupId>org.bouncycastle</groupId>
<artifactId>bcpkix-jdk18on</artifactId>
<version>${bouncycastle.version}</version>
</dependency>
<dependency>
<groupId>org.bouncycastle</groupId>
<artifactId>bcmail-jdk18on</artifactId>
<version>${bouncycastle.version}</version>
</dependency>
<!-- Various project are using it to scan the classpath -->
<dependency>
<groupId>org.reflections</groupId>
<artifactId>reflections</artifactId>
<version>0.10.2</version>
</dependency>
<!-- Used by reflections and other projects in commons, platform and rendering -->
<dependency>
<groupId>com.google.guava</groupId>
<artifactId>guava</artifactId>
<version>${guava.version}</version>
</dependency>
<dependency>
<groupId>com.google.guava</groupId>
<artifactId>guava-testlib</artifactId>
<version>${guava.version}</version>
</dependency>
<!-- Groovy engine. Used in both commons and platform -->
<dependency>
<groupId>org.codehaus.groovy</groupId>
<artifactId>groovy</artifactId>
<version>${groovy.version}</version>
</dependency>
<dependency>
<groupId>org.codehaus.groovy</groupId>
<artifactId>groovy-datetime</artifactId>
<version>${groovy.version}</version>
</dependency>
<dependency>
<groupId>org.codehaus.groovy</groupId>
<artifactId>groovy-jmx</artifactId>
<version>${groovy.version}</version>
</dependency>
<dependency>
<groupId>org.codehaus.groovy</groupId>
<artifactId>groovy-json</artifactId>
<version>${groovy.version}</version>
</dependency>
<dependency>
<groupId>org.codehaus.groovy</groupId>
<artifactId>groovy-jsr223</artifactId>
<version>${groovy.version}</version>
</dependency>
<dependency>
<groupId>org.codehaus.groovy</groupId>
<artifactId>groovy-macro</artifactId>
<version>${groovy.version}</version>
</dependency>
<dependency>
<groupId>org.codehaus.groovy</groupId>
<artifactId>groovy-nio</artifactId>
<version>${groovy.version}</version>
</dependency>
<dependency>
<groupId>org.codehaus.groovy</groupId>
<artifactId>groovy-servlet</artifactId>
<version>${groovy.version}</version>
</dependency>
<dependency>
<groupId>org.codehaus.groovy</groupId>
<artifactId>groovy-sql</artifactId>
<version>${groovy.version}</version>
</dependency>
<dependency>
<groupId>org.codehaus.groovy</groupId>
<artifactId>groovy-templates</artifactId>
<version>${groovy.version}</version>
</dependency>
<dependency>
<groupId>org.codehaus.groovy</groupId>
<artifactId>groovy-xml</artifactId>
<version>${groovy.version}</version>
</dependency>
<dependency>
<groupId>org.codehaus.groovy</groupId>
<artifactId>groovy-dateutil</artifactId>
<version>${groovy.version}</version>
</dependency>
<!-- Everybody logs -->
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
<version>${slf4j.version}</version>
</dependency>
<!-- SLF4J implementation we use -->
<dependency>
<groupId>ch.qos.logback</groupId>
<artifactId>logback-classic</artifactId>
<version>${logback.version}</version>
</dependency>
<!-- External libraries using Commons Logging will delegate to SLF4J -->
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>jcl-over-slf4j</artifactId>
<version>${slf4j.version}</version>
</dependency>
<!-- External libraries using Log4J 1.x will delegate to SLF4J -->
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>log4j-over-slf4j</artifactId>
<version>${slf4j.version}</version>
</dependency>
<!-- External libraries using Log4J 2.x will delegate to SLF4J -->
<dependency>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-api</artifactId>
<version>${log4j.version}</version>
</dependency>
<dependency>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-to-slf4j</artifactId>
<version>${log4j.version}</version>
</dependency>
<!-- Make sure everyone use the same version of JBoss Logging -->
<dependency>
<groupId>org.jboss.logging</groupId>
<artifactId>jboss-logging</artifactId>
<version>3.5.3.Final</version>
</dependency>
<!-- Javassist -->
<dependency>
<groupId>org.javassist</groupId>
<artifactId>javassist</artifactId>
<version>3.29.2-GA</version>
</dependency>
<!-- Triggered by several Maven related projects (Doxia, Maven, Aether) as transitive dependency. We need
these explicit versions to help Maven decide which version to use. -->
<dependency>
<groupId>org.codehaus.plexus</groupId>
<artifactId>plexus-utils</artifactId>
<version>4.0.0</version>
</dependency>
<dependency>
<groupId>org.codehaus.plexus</groupId>
<artifactId>plexus-xml</artifactId>
<version>4.0.2</version>
</dependency>
<dependency>
<groupId>org.codehaus.plexus</groupId>
<artifactId>plexus-container-default</artifactId>
<version>${plexus-containers.version}</version>
</dependency>
<dependency>
<groupId>org.codehaus.plexus</groupId>
<artifactId>plexus-component-annotations</artifactId>
<version>${plexus-containers.version}</version>
</dependency>
<dependency>
<groupId>org.codehaus.plexus</groupId>
<artifactId>plexus-interpolation</artifactId>
<version>1.26</version>
</dependency>
<dependency>
<groupId>org.codehaus.plexus</groupId>
<artifactId>plexus-interactivity-api</artifactId>
<version>1.1</version>
</dependency>
<dependency>
<groupId>org.codehaus.plexus</groupId>
<artifactId>plexus-interactivity-jline</artifactId>
<version>1.1</version>
</dependency>
<dependency>
<groupId>org.codehaus.plexus</groupId>
<artifactId>plexus-archiver</artifactId>
<version>4.9.0</version>
</dependency>
<dependency>
<groupId>org.codehaus.plexus</groupId>
<artifactId>plexus-classworlds</artifactId>
<version>2.7.0</version>
</dependency>
<dependency>
<groupId>org.sonatype.plexus</groupId>
<artifactId>plexus-sec-dispatcher</artifactId>
<version>1.4</version>
</dependency>
<dependency>
<groupId>org.eclipse.sisu</groupId>
<artifactId>org.eclipse.sisu.plexus</artifactId>
<version>${sisu.version}</version>
<exclusions>
<!-- This dependency is now deprecated and replaced by jakarta.annotation-api. -->
<exclusion>
<groupId>javax.annotation</groupId>
<artifactId>javax.annotation-api</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.eclipse.sisu</groupId>
<artifactId>org.eclipse.sisu.inject</artifactId>
<version>${sisu.version}</version>
</dependency>
<!-- Maven -->
<dependency>
<groupId>org.apache.maven</groupId>
<artifactId>maven-model</artifactId>
<version>${maven.version}</version>
</dependency>
<dependency>
<groupId>org.apache.maven</groupId>
<artifactId>maven-artifact</artifactId>
<version>${maven.version}</version>
</dependency>
<dependency>
<groupId>org.apache.maven</groupId>
<artifactId>maven-core</artifactId>
<version>${maven.version}</version>
</dependency>
<dependency>
<groupId>org.apache.maven</groupId>
<artifactId>maven-plugin-api</artifactId>
<version>${maven.version}</version>
</dependency>
<dependency>
<groupId>org.apache.maven</groupId>
<artifactId>maven-compat</artifactId>
<version>${maven.version}</version>
</dependency>
<dependency>
<groupId>org.apache.maven</groupId>
<artifactId>maven-settings</artifactId>
<version>${maven.version}</version>
</dependency>
<dependency>
<groupId>org.apache.maven</groupId>
<artifactId>maven-settings-builder</artifactId>
<version>${maven.version}</version>
</dependency>
<dependency>
<groupId>org.apache.maven</groupId>
<artifactId>maven-repository-metadata</artifactId>
<version>${maven.version}</version>
</dependency>
<dependency>
<groupId>org.apache.maven</groupId>
<artifactId>maven-model-builder</artifactId>
<version>${maven.version}</version>
</dependency>
<dependency>
<groupId>org.apache.maven</groupId>
<artifactId>maven-resolver-provider</artifactId>
<version>${maven.version}</version>
</dependency>
<dependency>
<groupId>org.apache.maven.plugin-tools</groupId>
<artifactId>maven-plugin-annotations</artifactId>
<version>${maven.plugin.tools.version}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.apache.maven.shared</groupId>
<artifactId>maven-shared-utils</artifactId>
<version>3.4.2</version>
</dependency>
<!-- Maven Resolver -->
<dependency>
<groupId>org.apache.maven.resolver</groupId>
<artifactId>maven-resolver-api</artifactId>
<version>${maven.resolver.version}</version>
</dependency>
<dependency>
<groupId>org.apache.maven.resolver</groupId>
<artifactId>maven-resolver-util</artifactId>
<version>${maven.resolver.version}</version>
</dependency>
<dependency>
<groupId>org.apache.maven.resolver</groupId>
<artifactId>maven-resolver-impl</artifactId>
<version>${maven.resolver.version}</version>
</dependency>
<dependency>
<groupId>org.apache.maven.resolver</groupId>
<artifactId>maven-resolver-connector-basic</artifactId>
<version>${maven.resolver.version}</version>
</dependency>
<dependency>
<groupId>org.apache.maven.resolver</groupId>
<artifactId>maven-resolver-transport-http</artifactId>
<version>${maven.resolver.version}</version>
</dependency>
<dependency>
<groupId>org.apache.maven.resolver</groupId>
<artifactId>maven-resolver-transport-file</artifactId>
<version>${maven.resolver.version}</version>
</dependency>
<dependency>
<groupId>org.apache.maven.resolver</groupId>
<artifactId>maven-resolver-spi</artifactId>
<version>${maven.resolver.version}</version>
</dependency>
<!-- @API Guardian -->
<dependency>
<groupId>org.apiguardian</groupId>
<artifactId>apiguardian-api</artifactId>
<version>1.1.2</version>
</dependency>
<!-- Everybody tests -->
<dependency>
<groupId>org.hamcrest</groupId>
<artifactId>hamcrest</artifactId>
<version>${hamcrest.version}</version>
</dependency>
<dependency>
<groupId>org.hamcrest</groupId>
<artifactId>hamcrest-core</artifactId>
<version>${hamcrest.version}</version>
</dependency>
<dependency>
<groupId>org.hamcrest</groupId>
<artifactId>hamcrest-library</artifactId>
<version>${hamcrest.version}</version>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>${junit.version}</version>
</dependency>
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter</artifactId>
<version>${junit5.version}</version>
</dependency>
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-api</artifactId>
<version>${junit5.version}</version>
</dependency>
<dependency>
<groupId>org.junit.platform</groupId>
<artifactId>junit-platform-launcher</artifactId>
<version>${junit.platform.version}</version>
</dependency>
<dependency>
<groupId>org.junit.platform</groupId>
<artifactId>junit-platform-engine</artifactId>
<version>${junit.platform.version}</version>
</dependency>
<dependency>
<groupId>org.junit.platform</groupId>
<artifactId>junit-platform-suite-api</artifactId>
<version>${junit.platform.version}</version>
</dependency>
<dependency>
<groupId>org.junit.vintage</groupId>
<artifactId>junit-vintage-engine</artifactId>
<version>${junit.vintage.version}</version>
</dependency>
<dependency>
<groupId>org.jmock</groupId>
<artifactId>jmock</artifactId>
<version>${jmock.version}</version>
<exclusions>
<exclusion>
<groupId>com.google.code.findbugs</groupId>
<artifactId>annotations</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.jmock</groupId>
<artifactId>jmock-junit4</artifactId>
<version>${jmock.version}</version>
<exclusions>
<!-- junit-dep is deprecated and junit should be used instead -->
<exclusion>
<artifactId>junit-dep</artifactId>
<groupId>junit</groupId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.jmock</groupId>
<artifactId>jmock-legacy</artifactId>
<version>${jmock.version}</version>
</dependency>
<dependency>
<groupId>org.mockito</groupId>
<artifactId>mockito-core</artifactId>
<version>${mockito.version}</version>
<exclusions>
<exclusion>
<groupId>log4j</groupId>
<artifactId>log4j</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.mockito</groupId>
<artifactId>mockito-junit-jupiter</artifactId>
<version>${mockito.version}</version>
</dependency>
<dependency>
<groupId>org.wiremock</groupId>
<artifactId>wiremock-standalone</artifactId>
<version>3.3.1</version>
</dependency>
<dependency>
<groupId>org.objenesis</groupId>
<artifactId>objenesis</artifactId>
<version>3.3</version>
</dependency>
<dependency>
<groupId>net.bytebuddy</groupId>
<artifactId>byte-buddy</artifactId>
<version>${bytebuddy.version}</version>
</dependency>
<dependency>
<groupId>net.bytebuddy</groupId>
<artifactId>byte-buddy-agent</artifactId>
<version>${bytebuddy.version}</version>
</dependency>
<!-- Several modules depend on the servlet API -->
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>javax.servlet-api</artifactId>
<version>${servlet.version}</version>
<!-- It should always be provided as the API jar is provided by the Servlet Container in which XWiki is
deployed -->
<scope>provided</scope>
</dependency>
<dependency>
<groupId>javax.websocket</groupId>
<artifactId>javax.websocket-api</artifactId>
<version>1.1</version>
<scope>provided</scope>
</dependency>
<!-- Needed for Legacy modules. The version needs to be in sync with the one used by the AspectJ plugin -->
<dependency>
<groupId>org.aspectj</groupId>
<artifactId>aspectjrt</artifactId>
<version>${aspectj.version}</version>
</dependency>
<!-- CSS parsing -->
<dependency>
<groupId>net.sourceforge.cssparser</groupId>
<artifactId>cssparser</artifactId>
<version>0.9.30</version>
</dependency>
<!-- Bean validation -->
<dependency>
<groupId>jakarta.validation</groupId>
<artifactId>jakarta.validation-api</artifactId>
<version>2.0.2</version>
</dependency>
<dependency>
<groupId>org.hibernate.validator</groupId>
<artifactId>hibernate-validator</artifactId>
<version>6.2.5.Final</version>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>org.mortbay.jasper</groupId>
<artifactId>apache-el</artifactId>
<version>${apachache-el.version}</version>
<!-- The EL implementation is supposed to come with the application server but we need one for tests -->
<scope>test</scope>
</dependency>
<!-- Mail -->
<dependency>
<groupId>jakarta.mail</groupId>
<artifactId>jakarta.mail-api</artifactId>
<version>${jakarta.mail.version}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>jakarta.activation</groupId>
<artifactId>jakarta.activation-api</artifactId>
<version>${jakarta.activation.version}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>com.sun.activation</groupId>
<artifactId>jakarta.activation</artifactId>
<version>${jakarta.activation.version}</version>
</dependency>
<dependency>
<groupId>com.sun.mail</groupId>
<artifactId>jakarta.mail</artifactId>
<version>${jakarta.mail.version}</version>
</dependency>
<!-- Diff tools used in commons for diff and blame -->
<dependency>
<groupId>io.github.java-diff-utils</groupId>
<artifactId>java-diff-utils</artifactId>
<version>4.12</version>
</dependency>
<!-- Apache Velocity -->
<dependency>
<groupId>org.apache.velocity</groupId>
<artifactId>velocity-engine-core</artifactId>
<version>2.3</version>
</dependency>
<!-- Apache Velocity Tools -->
<dependency>
<groupId>org.apache.velocity.tools</groupId>
<artifactId>velocity-tools-generic</artifactId>
<version>3.1</version>
<exclusions>
<exclusion>
<groupId>commons-logging</groupId>
<artifactId>commons-logging</artifactId>
</exclusion>
<exclusion>
<groupId>asm</groupId>
<artifactId>asm</artifactId>
</exclusion>
</exclusions>
</dependency>
<!-- Jakarta Annotations -->
<dependency>
<groupId>jakarta.annotation</groupId>
<artifactId>jakarta.annotation-api</artifactId>
<version>1.3.5</version>
</dependency>
<!-- JSR 305 -->
<dependency>
<groupId>com.google.code.findbugs</groupId>
<artifactId>jsr305</artifactId>
<version>3.0.2</version>
</dependency>
<!-- ASM -->
<dependency>
<groupId>org.ow2.asm</groupId>
<artifactId>asm</artifactId>
<version>${asm.version}</version>
</dependency>
<dependency>
<groupId>org.ow2.asm</groupId>
<artifactId>asm-analysis</artifactId>
<version>${asm.version}</version>
</dependency>
<dependency>
<groupId>org.ow2.asm</groupId>
<artifactId>asm-commons</artifactId>
<version>${asm.version}</version>
</dependency>
<dependency>
<groupId>org.ow2.asm</groupId>
<artifactId>asm-tree</artifactId>
<version>${asm.version}</version>
</dependency>
<dependency>
<groupId>org.ow2.asm</groupId>
<artifactId>asm-util</artifactId>
<version>${asm.version}</version>
</dependency>
<!-- CGLib -->
<dependency>
<groupId>cglib</groupId>
<artifactId>cglib</artifactId>
<version>3.3.0</version>
</dependency>
<!-- ANTLR -->
<dependency>
<groupId>org.antlr</groupId>
<artifactId>antlr</artifactId>
<version>${antlr3.version}</version>
</dependency>
<dependency>
<groupId>org.antlr</groupId>
<artifactId>antlr-runtime</artifactId>
<version>${antlr3.version}</version>
</dependency>
<dependency>
<groupId>antlr</groupId>
<artifactId>antlr</artifactId>
<version>2.7.7</version>
</dependency>
<!-- ANTLR4 -->
<dependency>
<groupId>org.antlr</groupId>
<artifactId>antlr4-runtime</artifactId>
<version>${antlr4.version}</version>
</dependency>
<dependency>
<groupId>org.antlr</groupId>
<artifactId>antlr4</artifactId>
<version>${antlr4.version}</version>
</dependency>
<!-- Used on remote observation and also by JBossCache/Infinispan (even if it does not really use it) -->
<dependency>
<groupId>org.jgroups</groupId>
<artifactId>jgroups</artifactId>
<version>5.3.0.Final</version>
</dependency>
<!-- Used by Solr and Infinispan -->
<dependency>
<groupId>com.github.ben-manes.caffeine</groupId>
<artifactId>caffeine</artifactId>
<version>3.1.8</version>
</dependency>
<dependency>
<groupId>org.checkerframework</groupId>
<artifactId>checker-qual</artifactId>
<version>3.40.0</version>
</dependency>
<dependency>
<groupId>com.google.errorprone</groupId>
<artifactId>error_prone_annotations</artifactId>
<version>2.23.0</version>
</dependency>
<!-- The maven remote resource plugin is also used as dependency -->
<dependency>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-remote-resources-plugin</artifactId>
<version>${maven-remote-resources-plugin.version}</version>
</dependency>
<!-- Infinispan and protobuf -->
<dependency>
<groupId>com.google.protobuf</groupId>
<artifactId>protobuf-java</artifactId>
<version>3.25.0</version>
</dependency>
<dependency>
<groupId>org.infinispan.protostream</groupId>
<artifactId>protostream</artifactId>
<version>4.6.5.Final</version>
</dependency>
<dependency>
<groupId>org.infinispan</groupId>
<artifactId>infinispan-core</artifactId>
<version>14.0.11.Final</version>
<exclusions>
<!-- We use jakarta.transaction:jakarta.transaction-api (the reference API id) instead in XWiki -->
<exclusion>
<groupId>org.jboss.spec.javax.transaction</groupId>
<artifactId>jboss-transaction-api_1.2_spec</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>jakarta.enterprise</groupId>
<artifactId>jakarta.enterprise.cdi-api</artifactId>
<version>2.0.2</version>
</dependency>
</dependencies>
</dependencyManagement>
<build>
<defaultGoal>install</defaultGoal>
<directory>${maven.build.dir}</directory>
<plugins>
<!-- Ensure that we lock down all plugin versions -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-enforcer-plugin</artifactId>
<!-- Lock down plugin version for build reproducibility -->
<version>${maven-enforcer.version}</version>
<configuration>
<skip>${xwiki.enforcer.skip}</skip>
</configuration>
<executions>
<!-- Make sure the right version of Maven is used -->
<execution>
<id>enforce-maven</id>
<goals>
<goal>enforce</goal>
</goals>
<configuration>
<rules>
<requireMavenVersion>
<version>${maven.minimum.version}</version>
</requireMavenVersion>
</rules>
</configuration>
</execution>
<!-- Check that all Maven plugins have versions defined -->
<execution>
<id>enforce-plugins</id>
<goals>
<goal>enforce</goal>
</goals>
<configuration>
<rules>
<requirePluginVersions>
<message>Best Practice is to always define plugin versions!</message>
<banLatest>false</banLatest>
<banRelease>false</banRelease>
<banSnapshots>false</banSnapshots>
</requirePluginVersions>
</rules>
<skip>${xwiki.enforcer.enforce-plugins.skip}</skip>
</configuration>
</execution>
<!-- Check that we're using SLF4J only -->
<execution>
<id>enforce-jcl-log4j-isolation</id>
<goals>
<goal>enforce</goal>
</goals>
<configuration>
<skip>${xwiki.enforcer.enforce-jcl-log4j-isolation.skip}</skip>
<rules>
<bannedDependencies>
<searchTransitive>true</searchTransitive>
<message>XWiki uses SLF4J for logging. Don't use Commons Logging or Log4J 1.x/2.x.</message>
<excludes>
<exclude>commons-logging:commons-logging</exclude>
<exclude>commons-logging:commons-logging-api</exclude>
<exclude>log4j:log4j</exclude>
<exclude>ch.qos.reload4j:reload4j</exclude>
<exlude>org.slf4j:slf4j-reload4j</exlude>
<exlude>org.slf4j:slf4j-log4j12</exlude>
<exclude>org.apache.logging.log4j:log4j-core</exclude>
<!-- Also forbid this artifact since it conflicts with the Log4j 2.x to SLF4J one, see
https://logging.apache.org/log4j/2.x/log4j-to-slf4j/index.html -->
<exclude>org.apache.logging.log4j:log4j-slf4j-impl</exclude>
<!-- Also forbid the use of the Log4j 1.x to Log4j 2.x bridge -->
<exclude>org.apache.logging.log4j:log4j-1.2-api</exclude>
</excludes>
</bannedDependencies>
</rules>
</configuration>
</execution>
<!-- Check that we're using the right JAXB artifacts -->
<execution>
<id>enforce-glasshfish-jaxb</id>
<goals>
<goal>enforce</goal>
</goals>
<configuration>
<skip>${xwiki.enforcer.enforce-glasshfish-jaxb.skip}</skip>
<rules>
<bannedDependencies>
<searchTransitive>true</searchTransitive>
<message>XWiki uses org.glassfish.jaxb:jaxb-runtime instead</message>
<excludes>
<exclude>com.sun.xml.bind:jaxb-impl</exclude>
<exclude>com.sun.xml.bind:jaxb-core</exclude>
<exclude>org.glassfish.jaxb:jaxb-core</exclude>
</excludes>
</bannedDependencies>
</rules>
</configuration>
</execution>
<execution>
<id>enforce-jakarta.xml.bind-api</id>
<goals>
<goal>enforce</goal>
</goals>
<configuration>
<skip>${xwiki.enforcer.enforce-jaxb.skip}</skip>
<rules>
<bannedDependencies>
<searchTransitive>true</searchTransitive>
<message>XWiki uses jakarta.xml.bind:jakarta.xml.bind-api instead</message>
<excludes>
<exclude>javax.xml.bind:jaxb-api</exclude>
<exclude>org.jboss.spec.javax.xml.bind:jboss-jaxb-api_2.3_spec</exclude>
</excludes>
</bannedDependencies>
</rules>
</configuration>
</execution>
<!-- TODO: invert when https://jira.xwiki.org/browse/XWIKI-12955 is fixed -->
<execution>
<id>enforce-jaxrs1</id>
<goals>
<goal>enforce</goal>
</goals>
<configuration>
<skip>${xwiki.enforcer.enforce-jaxrs1.skip}</skip>
<rules>
<bannedDependencies>
<searchTransitive>true</searchTransitive>
<message>XWiki only support JAX-RS 1 (javax.ws.rs:jsr311-api) for now</message>
<excludes>
<exclude>javax.ws.rs:javax.ws.rs-api</exclude>
<exclude>jakarta.ws.rs:jakarta.ws.rs-api</exclude>
</excludes>
</bannedDependencies>
</rules>
</configuration>
</execution>
<execution>
<id>enforce-inject</id>
<goals>
<goal>enforce</goal>
</goals>
<configuration>
<skip>${xwiki.enforcer.enforce-inject.skip}</skip>
<rules>
<bannedDependencies>
<searchTransitive>true</searchTransitive>
<message>XWiki uses javax.inject:javax.inject instead</message>
<excludes>
<exclude>org.glassfish.hk2.external:jakarta.inject</exclude>
</excludes>
</bannedDependencies>
</rules>
</configuration>
</execution>
<!-- Check that we're using Open JSON and not JSON-Java -->
<execution>
<id>enforce-open-json</id>
<goals>
<goal>enforce</goal>
</goals>
<configuration>
<skip>${xwiki.enforcer.enforce-open-json.skip}</skip>
<rules>
<bannedDependencies>
<searchTransitive>true</searchTransitive>
<message>
Use Open JSON which has a less fuzzy license
</message>
<excludes>
<exclude>org.json:json</exclude>
</excludes>
</bannedDependencies>
</rules>
</configuration>
</execution>
<!-- Embbed javax.el:javax.el-api -->
<execution>
<id>enforce-glassfish-el</id>
<goals>
<goal>enforce</goal>
</goals>
<configuration>
<skip>${xwiki.enforcer.enforce-glassfish-el.skip}</skip>
<rules>
<bannedDependencies>
<searchTransitive>true</searchTransitive>
<message>
Glasshfish EL embbed javax.el:javax.el-api
</message>
<excludes>
<exclude>javax.el:javax.el-api</exclude>
</excludes>
</bannedDependencies>
</rules>
</configuration>
</execution>
<!-- Check that we're using commons-lang3 and not commons-lang -->
<execution>
<id>enforce-commons-lang3</id>
<goals>
<goal>enforce</goal>
</goals>
<configuration>
<skip>${xwiki.enforcer.enforce-commons-lang3.skip}</skip>
<rules>
<bannedDependencies>
<searchTransitive>false</searchTransitive>
<message>
Best practice is to use Commons Lang 3.x
</message>
<excludes>
<exclude>commons-lang:commons-lang</exclude>
</excludes>
</bannedDependencies>
</rules>
</configuration>
</execution>
<!-- Check that we're using commons-configuration3 and not commons-configuration -->
<execution>
<id>enforce-commons-configuration2</id>
<goals>
<goal>enforce</goal>
</goals>
<configuration>
<skip>${xwiki.enforcer.enforce-commons-configuration2.skip}</skip>
<rules>
<bannedDependencies>
<searchTransitive>false</searchTransitive>
<message>
Best practice is to use Commons Configuration 2.x
</message>
<excludes>
<exclude>commons-configuration:commons-configuration</exclude>
</excludes>
</bannedDependencies>
</rules>
</configuration>
</execution>
<!-- Check that we are using the latest version of Jakarta Activation -->
<execution>
<id>enforce-jakarta.activation-api</id>
<goals>
<goal>enforce</goal>
</goals>
<configuration>
<skip>${xwiki.enforcer.enforce-jakarta.activation.skip}</skip>
<rules>
<bannedDependencies>
<searchTransitive>true</searchTransitive>
<message>
Javax Activation artifact id changed, the current one is jakarta.activation:jakarta.activation-api
</message>
<excludes>
<exclude>javax.activation:javax.activation-api</exclude>
</excludes>
</bannedDependencies>
</rules>
</configuration>
</execution>
<execution>
<id>enforce-jakarta.activation</id>
<goals>
<goal>enforce</goal>
</goals>
<configuration>
<skip>${xwiki.enforcer.enforce-jakarta.activation.skip}</skip>
<rules>
<bannedDependencies>
<searchTransitive>true</searchTransitive>
<message>
Javax Activation artifact id changed, the current one is com.sun.mail:jakarta.activation
</message>
<excludes>
<exclude>javax.activation:activation</exclude>
<exclude>com.sun.activation:javax.activation</exclude>
</excludes>
</bannedDependencies>
</rules>
</configuration>
</execution>
<!-- Check that we're using latest version of Jakarta Mail -->
<execution>
<id>enforce-jakarta.mail-api</id>
<goals>
<goal>enforce</goal>
</goals>
<configuration>
<skip>${xwiki.enforcer.enforce-jakarta.mail.skip}</skip>
<rules>
<bannedDependencies>
<searchTransitive>true</searchTransitive>
<message>
Javax Mail artifact id changed, the current one is jakarta.mail:jakarta.mail-api
</message>
<excludes>
<exclude>javax.mail:mailapi</exclude>
<exclude>com.sun.mail:javax.mail-api</exclude>
</excludes>
</bannedDependencies>
</rules>
</configuration>
</execution>
<execution>
<id>enforce-jakarta.mail</id>
<goals>
<goal>enforce</goal>
</goals>
<configuration>
<skip>${xwiki.enforcer.enforce-jakarta.mail.skip}</skip>
<rules>
<bannedDependencies>
<searchTransitive>true</searchTransitive>
<message>
Javax Mail artifact id changed, the current one is com.sun.mail:jakarta.mail
</message>
<excludes>
<exclude>javax.mail:mail</exclude>
<exclude>com.sun.mail:javax.mail</exclude>
</excludes>
</bannedDependencies>
</rules>
</configuration>
</execution>
<!-- Check that we're using latest version of Jakarta Annotation -->
<execution>
<id>enforce-jakarta.annotation-api</id>
<goals>
<goal>enforce</goal>
</goals>
<configuration>
<skip>${xwiki.enforcer.enforce-jakarta.annotation-api.skip}</skip>
<rules>
<bannedDependencies>
<searchTransitive>true</searchTransitive>
<message>
Javax Annotations artifact id changed, the current one is jakarta.annotation:jakarta.annotation-api
</message>
<excludes>
<exclude>javax.annotation:jsr250-api</exclude>
<exclude>javax.annotation:javax.annotation-api</exclude>
</excludes>
</bannedDependencies>
</rules>
</configuration>
</execution>
<!-- Check that we're using right Bouncy Castle ids -->
<execution>
<id>enforce-bouncycastle-ids</id>
<goals>
<goal>enforce</goal>
</goals>
<configuration>
<skip>${xwiki.enforcer.enforce-bouncycastle-ids.skip}</skip>
<rules>
<bannedDependencies>
<searchTransitive>true</searchTransitive>
<message>
Wrong Bouncy Castle dependency used
</message>
<excludes>
<exclude>bouncycastle:bcprov-jdk15on</exclude>
<exclude>bouncycastle:bcprov-jdk16</exclude>
<exclude>bouncycastle:bcprov-jdk15</exclude>
<exclude>bouncycastle:bcprov-jdk14</exclude>
<exclude>bouncycastle:bcprov-jdk13</exclude>
<exclude>bouncycastle:bcprov-jdk12</exclude>
<exclude>org.bouncycastle:bcprov-jdk15on</exclude>
<exclude>org.bouncycastle:bcprov-jdk16</exclude>
<exclude>org.bouncycastle:bcprov-jdk15</exclude>
<exclude>org.bouncycastle:bcprov-jdk14</exclude>
<exclude>org.bouncycastle:bcprov-jdk13</exclude>
<exclude>org.bouncycastle:bcprov-jdk12</exclude>
<exclude>bouncycastle:bcpkix-jdk15on</exclude>
<exclude>bouncycastle:bcpkix-jdk16</exclude>
<exclude>bouncycastle:bcpkix-jdk15</exclude>
<exclude>bouncycastle:bcpkix-jdk14</exclude>
<exclude>bouncycastle:bcpkix-jdk13</exclude>
<exclude>bouncycastle:bcpkix-jdk12</exclude>
<exclude>org.bouncycastle:bcpkix-jdk15on</exclude>
<exclude>org.bouncycastle:bcpkix-jdk16</exclude>
<exclude>org.bouncycastle:bcpkix-jdk15</exclude>
<exclude>org.bouncycastle:bcpkix-jdk14</exclude>
<exclude>org.bouncycastle:bcpkix-jdk13</exclude>
<exclude>org.bouncycastle:bcpkix-jdk12</exclude>
<exclude>bouncycastle:bcmail-jdk15on</exclude>
<exclude>bouncycastle:bcmail-jdk16</exclude>
<exclude>bouncycastle:bcmail-jdk15</exclude>
<exclude>bouncycastle:bcmail-jdk14</exclude>
<exclude>bouncycastle:bcmail-jdk13</exclude>
<exclude>bouncycastle:bcmail-jdk12</exclude>
<exclude>org.bouncycastle:bcmail-jdk15on</exclude>
<exclude>org.bouncycastle:bcmail-jdk16</exclude>
<exclude>org.bouncycastle:bcmail-jdk15</exclude>
<exclude>org.bouncycastle:bcmail-jdk14</exclude>
<exclude>org.bouncycastle:bcmail-jdk13</exclude>
<exclude>org.bouncycastle:bcmail-jdk12</exclude>
</excludes>
</bannedDependencies>
</rules>
</configuration>
</execution>
<!-- Check that we're using velocity-engine-core and not velocity -->
<execution>
<id>enforce-velocity-engine-core</id>
<goals>
<goal>enforce</goal>
</goals>
<configuration>
<skip>${xwiki.enforcer.enforce-velocity-engine-core.skip}</skip>
<rules>
<bannedDependencies>
<searchTransitive>true</searchTransitive>
<message>
Wrong Velocity dependency used
</message>
<excludes>
<exclude>org.apache.velocity:velocity</exclude>
<exclude>org.apache.velocity:velocity-tools</exclude>
</excludes>
</bannedDependencies>
</rules>
</configuration>
</execution>
<!-- Check that we're using the right asm artifact -->
<execution>
<id>enforce-asm</id>
<goals>
<goal>enforce</goal>
</goals>
<configuration>
<skip>${xwiki.enforcer.enforce-asm.skip}</skip>
<rules>
<bannedDependencies>
<searchTransitive>true</searchTransitive>
<message>
Wrong ASM dependency used, the current one is org.ow2.asm:asm
</message>
<excludes>
<exclude>asm:asm</exclude>
</excludes>
</bannedDependencies>
</rules>
</configuration>
</execution>
<!-- Check that we're using the right cglib artifact -->
<execution>
<id>enforce-cglib</id>
<goals>
<goal>enforce</goal>
</goals>
<configuration>
<skip>${xwiki.enforcer.enforce-cglib.skip}</skip>
<rules>
<bannedDependencies>
<searchTransitive>true</searchTransitive>
<message>
We use cglib and not cglib-nodep
</message>
<excludes>
<exclude>cglib:cglib-nodep</exclude>
</excludes>
</bannedDependencies>
</rules>
</configuration>
</execution>
<!-- Check that we don't trigger a dependency containing stuff already included the minimum Java SE version
supported by XWiki -->
<execution>
<id>enforce-javase-dependencies</id>
<goals>
<goal>enforce</goal>
</goals>
<configuration>
<skip>${xwiki.enforcer.enforce-javase-dependencies.skip}</skip>
<rules>
<bannedDependencies>
<searchTransitive>true</searchTransitive>
<message>
Found a dependency already included in the minimum Java SE ${java.version}
</message>
<!-- Make sure to keep this list in sync with default ignored extension dependencies -->
<excludes>
<exclude>stax:stax</exclude>
<exclude>javax.xml.stream:stax-api</exclude>
<exclude>stax:stax-api</exclude>
<!-- Xalan is not in a very good shape compare to the default implementation -->
<exclude>xalan:xalan</exclude>
<exclude>xalan:serializer</exclude>
<!-- xml-apis cause conflict with the classes of the JVM -->
<exclude>xml-apis:xml-apis</exclude>
<exclude>xerces:xmlParserAPIs</exclude>
</excludes>
</bannedDependencies>
</rules>
</configuration>
</execution>
<!-- Check that we use the right version of the JSR305 API -->
<execution>
<id>enforce-jsr305</id>
<goals>
<goal>enforce</goal>
</goals>
<configuration>
<skip>${xwiki.enforcer.enforce-jsr305.skip}</skip>
<rules>
<bannedDependencies>
<searchTransitive>true</searchTransitive>
<message>Use com.google.code.findbugs:jsr305 instead</message>
<excludes>
<exclude>com.google.code.findbugs:annotations</exclude>
</excludes>
</bannedDependencies>
</rules>
</configuration>
</execution>
<!-- Check that we use the right version of the JTA -->
<execution>
<id>enforce-jta</id>
<goals>
<goal>enforce</goal>
</goals>
<configuration>
<skip>${xwiki.enforcer.enforce-jta.skip}</skip>
<rules>
<bannedDependencies>
<searchTransitive>true</searchTransitive>
<message>Use jakarta.transaction:jakarta.transaction-api instead</message>
<excludes>
<exclude>javax.transaction:jta</exclude>
<exclude>org.jboss.spec.javax.transaction:jboss-transaction-api_1.2_spec</exclude>
<exclude>javax.transaction:javax.transaction-api</exclude>
</excludes>
</bannedDependencies>
</rules>
</configuration>
</execution>
<!-- Check that we use the right version of the Validation API -->
<execution>
<id>enforce-jakarta.validation-api</id>
<goals>
<goal>enforce</goal>
</goals>
<configuration>
<skip>${xwiki.enforcer.enforce-jakarta.validation-api.skip}</skip>
<rules>
<bannedDependencies>
<searchTransitive>true</searchTransitive>
<message>Use jakarta.validation:jakarta.validation-api instead</message>
<excludes>
<exclude>javax.validation:validation-api</exclude>
</excludes>
</bannedDependencies>
</rules>
</configuration>
</execution>
<!-- Check that we use the right version of the Hibernate Validator -->
<execution>
<id>enforce-hibernate-validator</id>
<goals>
<goal>enforce</goal>
</goals>
<configuration>
<skip>${xwiki.enforcer.enforce-hibernate-validator.skip}</skip>
<rules>
<bannedDependencies>
<searchTransitive>true</searchTransitive>
<message>Use org.hibernate.validator:hibernate-validator instead</message>
<excludes>
<exclude>org.hibernate:hibernate-validator</exclude>
</excludes>
</bannedDependencies>
</rules>
</configuration>
</execution>
<!-- Check that we use the right version of the Closure Compiler -->
<execution>
<id>enforce-closure-compiler</id>
<goals>
<goal>enforce</goal>
</goals>
<configuration>
<skip>${xwiki.enforcer.closure-compiler.skip}</skip>
<rules>
<bannedDependencies>
<searchTransitive>true</searchTransitive>
<message>Use com.google.javascriptclosure-compiler-unshaded instead</message>
<excludes>
<exclude>com.google.javascript:closure-compiler</exclude>
</excludes>
</bannedDependencies>
</rules>
</configuration>
</execution>
<!-- Check that we use the right version of the old jdom artifact -->
<execution>
<id>enforce-jdom</id>
<goals>
<goal>enforce</goal>
</goals>
<configuration>
<skip>${xwiki.enforcer.enforce-jdom.skip}</skip>
<rules>
<bannedDependencies>
<searchTransitive>true</searchTransitive>
<message>Use org.jdom:jdom instead</message>
<excludes>
<exclude>org.jdom:jdom-legacy</exclude>
</excludes>
</bannedDependencies>
</rules>
</configuration>
</execution>
<!-- Make sure we don't use old commons dependencies -->
<execution>
<id>enforce-no-old-xwiki-commons</id>
<goals>
<goal>enforce</goal>
</goals>
<configuration>
<skip>${xwiki.enforcer.enforce-no-old-xwiki-commons.skip}</skip>
<rules>
<bannedDependencies>
<searchTransitive>true</searchTransitive>
<message>These dependencies don't exist anymore</message>
<excludes>
<exclude>org.xwiki.commons:xwiki-commons-job</exclude>
<exclude>org.xwiki.commons:xwiki-commons-extension-repository-xwiki-handler</exclude>
<exclude>org.xwiki.commons:xwiki-commons-extension-repository-xwiki-api</exclude>
<exclude>org.xwiki.commons:xwiki-commons-extension-repository-xwiki-model</exclude>
</excludes>
</bannedDependencies>
</rules>
</configuration>
</execution>
<!-- Check dependency versions compatibility -->
<execution>
<id>enforce-upper-bounds</id>
<goals>
<goal>enforce</goal>
</goals>
<configuration>
<skip>${xwiki.enforcer.enforce-upper-bounds.skip}</skip>
<rules>
<requireUpperBoundDeps/>
</rules>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-checkstyle-plugin</artifactId>
<!-- Lock down plugin version for build reproducibility -->
<version>3.3.1</version>
<configuration>
<consoleOutput>true</consoleOutput>
<!-- We use this to disable checkstyle when the clover profile is executed since there's a
conflict between checkstyle and clover. Namely the clovered code doesn't pass our
checkstyle rules -->
<skip>${xwiki.checkstyle.skip}</skip>
</configuration>
<!-- We redeclare the version of checkstyle to control which version we use. We do that since we also write
custom checkstyle checks and we need to keep in sync the checkstyle version used to compile those
checks with the checkstyle version used by the checkstyle plugin -->
<dependencies>
<dependency>
<groupId>com.puppycrawl.tools</groupId>
<artifactId>checkstyle</artifactId>
<version>${checkstyle.version}</version>
</dependency>
</dependencies>
</plugin>
<!-- Used to check/update license headers -->
<plugin>
<groupId>com.mycila</groupId>
<artifactId>license-maven-plugin</artifactId>
<!-- Lock down plugin version for build reproducibility -->
<version>4.3</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-remote-resources-plugin</artifactId>
<!-- Lock down plugin version for build reproducibility -->
<version>${maven-remote-resources-plugin.version}</version>
</plugin>
<plugin>
<!-- Since 2.0-beta-9 maven-release-plugin uses remote tagging by default. Remote tagging implies that SCM
information is not fetched from the local working copy but from the SCM pom configuration. This forces
us to specify SCM configuration in every module which has its own lifecycle. Inheritance can't be used
for SCM configuration since a released parent pom contains SCM information about its tag and not about
the trunk. We could have globally set remoteTagging to false but we haven't since we prefer to follow
maven conventions as much as possible. -->
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-release-plugin</artifactId>
<!-- Lock down plugin version for build reproducibility -->
<version>3.0.1</version>
<configuration>
<!-- By default the release plugin will execute the "clean" and "verify" goals but won't perform an
"install". This is causing problems since several modules will fail to build during release:prepare.
See https://tinyurl.com/354vwe for more details. Thus we're forcing the execution of the "install"
goal. -->
<preparationGoals>clean install</preparationGoals>
<!-- Avoid site generation during the release:perform to speed up release process -->
<goals>deploy</goals>
<!-- We always use the same version for submodules -->
<autoVersionSubmodules>true</autoVersionSubmodules>
<!-- Indicate the profiles to enable during release perform -->
<releaseProfiles>release</releaseProfiles>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-clean-plugin</artifactId>
<!-- Lock down plugin version for build reproducibility -->
<version>3.3.2</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<!-- Lock down plugin version for build reproducibility -->
<version>3.3.0</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-plugin-plugin</artifactId>
<!-- Lock down plugin version for build reproducibility -->
<version>${maven.plugin.tools.version}</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-install-plugin</artifactId>
<!-- Lock down plugin version for build reproducibility -->
<version>3.1.1</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<!-- Lock down plugin version for build reproducibility -->
<version>${maven.compiler.version}</version>
<configuration>
<release>${java.version}</release>
<!-- Avoid surprises. If a module needs annotation processing it can enabled it easily -->
<proc>none</proc>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<!-- Lock down plugin version for build reproducibility -->
<version>${surefire.version}</version>
<!-- XWiki rule is to put test in *Test classes -->
<configuration>
<!-- We want to show nested stack traces to see what is the real problem when a test fails! -->
<trimStackTrace>false</trimStackTrace>
<includes>
<include>**/*Test.class</include>
</includes>
<systemPropertyVariables>
<!-- Used to automatically register our custom JUnit5 Extensions using the service loader mechanism.
We also need to have the JAR containing our extensions visible to JUnit5's ClassLoader. This is
done in xwiki-commons-core/pom.xml and xwiki-platform/pom.xml as otherwise it would cause a cyclic
dependency.
-->
<junit.jupiter.extensions.autodetection.enabled>true</junit.jupiter.extensions.autodetection.enabled>
<!-- TODO: Remove this property once all functional tests have been moved to use the failsafe plugin -->
<xwiki.test.verifyRunningXWikiAtStart>${xwiki.test.verifyRunningXWikiAtStart}</xwiki.test.verifyRunningXWikiAtStart>
</systemPropertyVariables>
<!--
- Explicitly define how much memory to give to the forked JVM process for the tests, as otherwise
Java will give about 1/4th of the physical memory which can be not enough or too much (e.g. on a CI
agent too much means we cannot run as many jobs in parallel as we could).
- Take a heap dump on low memory to diagnose issues
- Add add-opens directives to support tests using reflection and xwiki runtime code (or its deps)
requiring some features forbidden by default with Java 17+
-->
<argLine>@{argLine} -Xmx1024m -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=${project.build.directory} --add-opens java.base/java.lang=ALL-UNNAMED --add-opens java.base/java.io=ALL-UNNAMED --add-opens java.base/java.util=ALL-UNNAMED --add-opens java.base/java.util.concurrent=ALL-UNNAMED</argLine>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-failsafe-plugin</artifactId>
<!-- Lock down plugin version for build reproducibility -->
<version>${surefire.version}</version>
<configuration>
<!-- By default, we want to make sure we only run AllIT since that runs all the tests, and
starting/stopping XWiki only once for the whole suite -->
<includes>
<include>**/AllIT.java</include>
</includes>
<!-- We want to show nested stack traces to see what is the real problem when a test fails! -->
<trimStackTrace>false</trimStackTrace>
<!-- Make sure there are always tests to execute. If not, it probably means there's a problem somewhere and
we need to know it in order to fix it! -->
<failIfNoTests>true</failIfNoTests>
<systemPropertyVariables>
<!-- See description of the "xwiki.test.verifyRunningXWikiAtStart" property above. -->
<xwiki.test.verifyRunningXWikiAtStart>${xwiki.test.verifyRunningXWikiAtStart}</xwiki.test.verifyRunningXWikiAtStart>
<!-- Used to automatically register our custom JUnit5 Extensions using the service loader mechanism.
We also need to have the JAR containing our extensions visible to JUnit5's ClassLoader. This is
done in xwiki-commons-core/pom.xml and xwiki-platform/pom.xml as otherwise it would cause a cyclic
dependency.
-->
<junit.jupiter.extensions.autodetection.enabled>true</junit.jupiter.extensions.autodetection.enabled>
</systemPropertyVariables>
<!--
- Explicitly define how much memory to give to the forked JVM process for the tests, as otherwise
Java will give about 1/4th of the physical memory which can be not enough or too much (e.g. on a CI
agent too much means we cannot run as many jobs in parallel as we could).
- TODO: Put back -Xmx1024m once https://github.com/testcontainers/testcontainers-java/issues/4203 is
fixed as we should use the lowest possible value to use less memory.
- Take a heap dump on low memory to diagnose issues
-->
<argLine>@{argLine} -Xmx1536m -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=${project.build.directory}</argLine>
</configuration>
<executions>
<execution>
<id>functional-tests</id>
<goals>
<goal>integration-test</goal>
<goal>verify</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-resources-plugin</artifactId>
<!-- Lock down plugin version for build reproducibility -->
<version>3.3.1</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<!-- Lock down plugin version for build reproducibility -->
<version>3.3.0</version>
<configuration>
<archive>
<manifest>
<!-- Make easier to get various standard information trough java.lang.Package -->
<addDefaultImplementationEntries>true</addDefaultImplementationEntries>
<addDefaultSpecificationEntries>true</addDefaultSpecificationEntries>
</manifest>
<manifestEntries>
<!-- Add some useful information about the extension in the manifest file. -->
<XWiki-Extension-Id>${project.groupId}:${project.artifactId}</XWiki-Extension-Id>
</manifestEntries>
</archive>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-assembly-plugin</artifactId>
<!-- Lock down plugin version for build reproducibility -->
<version>3.6.0</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<!-- Lock down plugin version for build reproducibility -->
<version>3.6.1</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-war-plugin</artifactId>
<!-- Lock down plugin version for build reproducibility -->
<version>3.4.0</version>
<configuration>
<!-- Add some useful information about the extension in the manifest file. -->
<archive>
<manifestEntries>
<XWiki-Extension-Id>${project.groupId}:${project.artifactId}</XWiki-Extension-Id>
</manifestEntries>
</archive>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-deploy-plugin</artifactId>
<!-- Lock down plugin version for build reproducibility -->
<version>3.1.1</version>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>aspectj-maven-plugin</artifactId>
<!-- Lock down plugin version for build reproducibility -->
<version>1.14.0</version>
<configuration>
<complianceLevel>${java.version}</complianceLevel>
<!-- Avoid surprises. If a module needs annotation processing it can enabled it easily -->
<proc>none</proc>
</configuration>
<!-- Override so that we can use the AspectJ version we wish -->
<dependencies>
<dependency>
<groupId>org.aspectj</groupId>
<artifactId>aspectjtools</artifactId>
<version>${aspectj.version}</version>
</dependency>
</dependencies>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-antrun-plugin</artifactId>
<!-- Lock down plugin version for build reproducibility -->
<version>3.1.0</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-invoker-plugin</artifactId>
<!-- Lock down plugin version for build reproducibility -->
<version>3.6.0</version>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>build-helper-maven-plugin</artifactId>
<!-- Lock down plugin version for build reproducibility -->
<version>3.4.0</version>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<!-- Lock down plugin version for build reproducibility -->
<version>3.1.0</version>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>sablecc-maven-plugin</artifactId>
<!-- Lock down plugin version for build reproducibility -->
<version>2.2</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-project-info-reports-plugin</artifactId>
<!-- Lock down plugin version for build reproducibility -->
<version>3.4.5</version>
</plugin>
<!-- Used for checking backward compatibility (binary and source) -->
<plugin>
<groupId>org.revapi</groupId>
<artifactId>revapi-maven-plugin</artifactId>
<!-- Lock down plugin version for build reproducibility -->
<version>0.15.0</version>
<dependencies>
<dependency>
<groupId>org.revapi</groupId>
<artifactId>revapi-java</artifactId>
<version>0.28.1</version>
</dependency>
</dependencies>
<executions>
<execution>
<id>revapi-check</id>
<goals>
<goal>check</goal>
</goals>
</execution>
</executions>
<configuration>
<oldVersion>${xwiki.compatibility.previous.version}</oldVersion>
<skip>${xwiki.revapi.skip}</skip>
<!-- Only output minimal differences required when revapi fails, so that we don't copy unnecessary
differences which could lead to issues when releasing XWiki, see
https://github.com/revapi/revapi/issues/137 for more info. -->
<outputNonIdentifyingDifferenceInfo>false</outputNonIdentifyingDifferenceInfo>
<ignoreSuggestionsFormat>xml</ignoreSuggestionsFormat>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-archetype-plugin</artifactId>
<!-- Lock down plugin version for build reproducibility -->
<version>3.2.1</version>
</plugin>
<plugin>
<groupId>org.apache.felix</groupId>
<artifactId>maven-bundle-plugin</artifactId>
<!-- Lock down plugin version for build reproducibility -->
<version>5.1.9</version>
</plugin>
<plugin>
<groupId>org.openclover</groupId>
<artifactId>clover-maven-plugin</artifactId>
<!-- Lock down plugin version for build reproducibility -->
<version>${clover.version}</version>
<configuration>
<!-- We want to include test source roots in order to have more information in the Clover report, such as:
- which tests are covering which part of the code
- how many tests were executed overall
However, for comparison purposes between reports, we need to recompute the TPC by excluding all
tests classes from the computation as otherwise it skews the results. This is what we do in the
Jenkins Clover pipeline that we use, see
https://github.com/xwiki/xwiki-jenkins-pipeline/blob/master/scripts/clover.groovy
-->
<includesTestSourceRoots>true</includesTestSourceRoots>
</configuration>
</plugin>
<plugin>
<groupId>org.sonarsource.scanner.maven</groupId>
<artifactId>sonar-maven-plugin</artifactId>
<!-- Lock down plugin version for build reproducibility -->
<version>3.10.0.2594</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-gpg-plugin</artifactId>
<!-- Lock down plugin version for build reproducibility -->
<version>3.1.0</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<!-- Lock down plugin version for build reproducibility -->
<version>3.6.2</version>
<configuration>
<!-- Always exclude the internal package since it's not user-public -->
<excludePackageNames>*.internal, *.internal.*</excludePackageNames>
<!-- Make sure javadoc has enough memory -->
<maxmemory>1024m</maxmemory>
<!-- Enable all doclint checks by default -->
<doclint>all</doclint>
<!-- Specify the version of the code so that it doesn't depend on the Java version used to build XWiki -->
<release>${java.version}</release>
<!-- Only display warnings and errors -->
<quiet>true</quiet>
</configuration>
</plugin>
<!-- We don't use site plugin but we org.apache.maven.plugins.enforcer.RequirePluginVersions enforcer rule
complain if we don't define it -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-site-plugin</artifactId>
<!-- Lock down plugin version for build reproducibility -->
<version>3.12.1</version>
</plugin>
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
<!-- Lock down plugin version for build reproducibility -->
<version>${jacoco.version}</version>
<configuration>
<skip>${xwiki.jacoco.skip}</skip>
<excludes>
<!-- Don't run Jacoco on com/steadystate/css/parser/SACParserCSS21TokenManager since it generates an
error, see
https://stackoverflow.com/questions/14559117/how-do-i-disable-jacoco-agent-after-jacocoreport
TODO: remove when https://sourceforge.net/p/cssparser/bugs/53/ is fixed -->
<exclude>**com.steadystate.css.parser.SACParserCSS21TokenManager</exclude>
<!-- Jacoco instrumentation makes relaxng go nuts. See https://github.com/jacoco/jacoco/issues/528
and https://github.com/validator/validator/issues/505 -->
<exclude>**com.thaiopensource.relaxng.impl.**</exclude>
</excludes>
</configuration>
</plugin>
<plugin>
<groupId>com.github.searls</groupId>
<artifactId>jasmine-maven-plugin</artifactId>
<!-- Lock down plugin version for build reproducibility -->
<version>3.0-beta-02</version>
<configuration>
<specRunnerTemplate>REQUIRE_JS</specRunnerTemplate>
<preloadSources>
<source>/webjars/require.js</source>
</preloadSources>
<timeout>10</timeout>
<debug>true</debug>
</configuration>
<!-- Turn off logging in the console since some non-important errors (duh!) make Jenkins fail the build.
For example:
[INFO] Executing Jasmine Specs
[ERROR] Unexpected exception occurred while parsing HTML snippet
[ERROR] runtimeError: message=[Unexpected exception occurred while parsing HTML snippet:
input name="x"] sourceName=[file:/home/hudsonagent/hudson_root/workspace/xwiki-platform/
xwiki-platform-core/xwiki-platform-web/target/jasmine/src/js/prototype/prototype.js] line=[2084]
lineSource=[null] lineOffset=[0]
-->
<dependencies>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>jcl-over-slf4j</artifactId>
<version>${slf4j.version}</version>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-nop</artifactId>
<version>${slf4j.version}</version>
</dependency>
<!-- Use a more recent version of the WebDriverManager that supports the Chrome Driver URL change starting
with version 115.x -->
<dependency>
<groupId>io.github.bonigarcia</groupId>
<artifactId>webdrivermanager</artifactId>
<version>${webdrivermanager.version}</version>
</dependency>
</dependencies>
</plugin>
<plugin>
<groupId>org.jvnet.jaxb</groupId>
<artifactId>jaxb-maven-plugin</artifactId>
<!-- Lock down plugin version for build reproducibility -->
<version>${jaxb.tools.version}</version>
<configuration>
<extension>true</extension>
<args>
<arg>-Xfluent-api</arg>
</args>
<verbose>true</verbose>
<removeOldOutput>false</removeOldOutput>
<plugins>
<plugin>
<groupId>org.jvnet.jaxb</groupId>
<artifactId>jaxb2-basics</artifactId>
<version>${jaxb.tools.version}</version>
</plugin>
</plugins>
</configuration>
</plugin>
<plugin>
<groupId>net.alchim31.maven</groupId>
<artifactId>yuicompressor-maven-plugin</artifactId>
<!-- Lock down plugin version for build reproducibility -->
<version>1.5.1</version>
<configuration>
<skip>${xwiki.minification.skip}</skip>
<!-- We use it only to minify the CSS. For JavaScript we use the Closure Compiler. -->
<includes>
<include>**/*.css</include>
</includes>
<excludes>
<exclude>**/*.min.*</exclude>
</excludes>
<!-- We prefer to use the JSHint Maven Plugin because it gives us more control over the validation rules. -->
<jswarn>false</jswarn>
<!-- The default suffix uses the dash as separator (-min) but we prefer the dot (.min) because it is
currently more widely used on the web. -->
<suffix>.min</suffix>
</configuration>
</plugin>
<plugin>
<groupId>com.github.blutorange</groupId>
<artifactId>closure-compiler-maven-plugin</artifactId>
<!-- Lock down plugin version for build reproducibility -->
<version>${closure-compiler-maven-plugin.version}</version>
<configuration>
<skip>${xwiki.minification.skip}</skip>
<sourceDir>resources</sourceDir>
<targetDir>resources</targetDir>
<!-- Process all JavaScript files by default. -->
<includes>
<include>**/*.js</include>
</includes>
<!-- Exclude already minified files. -->
<excludes>
<exclude>**/*.min.*</exclude>
</excludes>
<!-- Don't aggregate / merge files by default. -->
<skipMerge>true</skipMerge>
<!-- Don't include the polyfills in each minified JavaScript file because it leads to a lot of code
duplication. It makes sense to do this only for the aggregated / merged file. -->
<closureRewritePolyfills>false</closureRewritePolyfills>
<!-- Support the latest stable ECMAScript features (excludes drafts) as input. -->
<closureLanguageIn>STABLE</closureLanguageIn>
<!-- Don't transpile the code (i.e. use the same version of ECMAScript for output as we do for input)
because the web browsers we support are implementing the latest ECMAScript stable specifications. Note
that we don't use STABLE because it means different things for input language and output language (see
https://github.com/google/closure-compiler/issues/3679#issuecomment-689925089) which means the code would
still be transpiled (even if both input and output are set to STABLE).
See https://dev.xwiki.org/xwiki/bin/view/Community/SupportStrategy/BrowserSupportStrategy -->
<closureLanguageOut>NO_TRANSPILE</closureLanguageOut>
<!-- Generate the source maps in order to have better error reporting on minified JavaScript files and in
order to ease the debuggging of these files. Note that the path to the source file from the generated
source map won't work on the server (and thus you won't be able to debug the source code) unless the
source (input) folder is the same as the target (output) folder (which is not the case by default).
Unfortunately we cannot fix the source path with the closureSourceMapLocationMappings configuration ATM
because it supports only prefix stripping which doesn't help when you have nested folders inside the
source folder. The only fix is to generate the source maps in the same folder as the source itself and for
this you need to copy the source files before executing this plugin. -->
<closureCreateSourceMap>true</closureCreateSourceMap>
</configuration>
<dependencies>
<dependency>
<groupId>com.google.javascript</groupId>
<artifactId>closure-compiler</artifactId>
<version>${closure-compiler.version}</version>
</dependency>
</dependencies>
</plugin>
<!--This plugin's configuration is used to store Eclipse m2e settings only. It has no influence on the Maven build itself.-->
<plugin>
<groupId>org.eclipse.m2e</groupId>
<artifactId>lifecycle-mapping</artifactId>
<version>1.0.0</version>
<configuration>
<lifecycleMappingMetadata>
<pluginExecutions>
<pluginExecution>
<pluginExecutionFilter>
<groupId>org.xwiki.commons</groupId>
<artifactId>
xwiki-commons-tool-remote-resource-plugin
</artifactId>
<versionRange>[10.5-SNAPSHOT,)</versionRange>
<goals>
<goal>process</goal>
</goals>
</pluginExecutionFilter>
<action>
<ignore/>
</action>
</pluginExecution>
<pluginExecution>
<pluginExecutionFilter>
<groupId>org.xwiki.platform</groupId>
<artifactId>
xwiki-platform-tool-packager-plugin
</artifactId>
<versionRange>[12.0-SNAPSHOT,)</versionRange>
<goals>
<goal>package</goal>
</goals>
</pluginExecutionFilter>
<action>
<ignore/>
</action>
</pluginExecution>
</pluginExecutions>
</lifecycleMappingMetadata>
</configuration>
</plugin>
<!-- Configure the Gradle Enterprise cache to make some Maven plugin cacheable (since they're not recognized
as cacheable by Gradle Enterprise by default) -->
<plugin>
<groupId>com.gradle</groupId>
<artifactId>gradle-enterprise-maven-extension</artifactId>
<configuration>
<gradleEnterprise>
<normalization>
<runtimeClassPath>
<metaInf>
<ignoredAttributes>
<!-- Generated by the osgi maven plugin and contains a date timestamp which we need to ignore
to compare the manifest between executions -->
<ignore>Bnd-LastModified</ignore>
<!-- Don't consider different built-* information as an indication that the result is not the
same -->
<ignore>Build-Jdk</ignore>
<ignore>Built-By</ignore>
</ignoredAttributes>
</metaInf>
<ignoredFiles>
<!-- The maven aspectJ plugin produces a builddef.lst file which contains paths and we need to
ignore it to compare output files between executions -->
<ignoredFile>**/builddef.lst</ignoredFile>
<!-- The maven archetype plugin produces a build.log file containing the maven build console logs
and which contains paths, timestamp and other volatile information (such as the time to build,
etc). We need to ignore it to compare output files between executions -->
<ignoredFile>**/build.log</ignoredFile>
</ignoredFiles>
</runtimeClassPath>
</normalization>
<plugins>
<!-- Note: In the past we made the Revapi plugin cacheable but it was making us loose more time than
saving it. The main time taken was in computing the fingerprinting, exceeding the saved time.
Probably because of all the numerous input properties. This is why we have decided to not cache
it. -->
<!-- Make the Surefire plugin cacheable when used in functional tests to work around the issue:
Goal execution marked as not cacheable: Build caching was not enabled for this goal execution
because '/root/workspace/XWiki_xwiki-platform_master/xwiki-platform-core/.../target/screenshots'
was used as a command line argument, but not declared as an input or output. -->
<plugin>
<artifactId>maven-surefire-plugin</artifactId>
<outputs>
<directories>
<directory>
<name>screenshots</name>
<path>${project.build.directory}/screenshots</path>
</directory>
</directories>
</outputs>
</plugin>
<!-- Make the Failsafe plugin cacheable when used in functional tests to work around the issue:
Goal execution marked as not cacheable: Build caching was not enabled for this goal execution
because '/root/workspace/XWiki_xwiki-platform_master/xwiki-platform-core/.../target/screenshots'
was used as a command line argument, but not declared as an input or output. -->
<plugin>
<artifactId>maven-failsafe-plugin</artifactId>
<outputs>
<directories>
<directory>
<name>screenshots</name>
<path>${project.build.directory}/screenshots</path>
</directory>
</directories>
</outputs>
</plugin>
</plugins>
</gradleEnterprise>
</configuration>
</plugin>
<!-- The version of Spoon and Spoon Maven plugin to use -->
<plugin>
<groupId>fr.inria.gforge.spoon</groupId>
<artifactId>spoon-maven-plugin</artifactId>
<version>3.8.0</version>
<dependencies>
<dependency>
<groupId>fr.inria.gforge.spoon</groupId>
<artifactId>spoon-core</artifactId>
<version>${spoon.version}</version>
</dependency>
</dependencies>
</plugin>
</plugins>
</pluginManagement>
</build>
<profiles>
<profile>
<!-- Profile used when the release plugin executes. We want javadocs and source jars to be released
+ ensure we sign files using GPG. -->
<!-- This profile is automatically enabled by release perform -->
<id>release</id>
<activation>
<property>
<name>performRelease</name>
<value>true</value>
</property>
</activation>
<build>
<plugins>
<!-- Deploy source package -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<executions>
<execution>
<id>attach-sources</id>
<goals>
<goal>jar-no-fork</goal>
</goals>
</execution>
</executions>
</plugin>
<!-- Deploy javadoc package -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<executions>
<execution>
<id>attach-javadocs</id>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
</plugin>
<!-- Force the Java version to use to build release -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-enforcer-plugin</artifactId>
<executions>
<execution>
<id>enforce-java</id>
<goals>
<goal>enforce</goal>
</goals>
<configuration>
<skip>${xwiki.enforcer.enforce-java.skip}</skip>
<rules>
<requireJavaVersion>
<message>You must release with Java ${java.version}!</message>
<version>${java.version}</version>
</requireJavaVersion>
</rules>
</configuration>
</execution>
</executions>
</plugin>
<!-- Sign artifacts -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-gpg-plugin</artifactId>
<executions>
<execution>
<id>sign-artifacts</id>
<phase>verify</phase>
<goals>
<goal>sign</goal>
</goals>
</execution>
</executions>
</plugin>
<!-- Because of https://issues.apache.org/jira/browse/MJAVADOC-329 we need to find a workaround to create a Javadoc
JAR to satisfy the Maven Central Repository requirements. We do this by creating an apidocs/ dir in the
target directory.
Note that even though this "hack" is only needed for java projects having all their sources in the
internal packages we put it here in the top level POM to not have to duplicate it at lots of places. -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-antrun-plugin</artifactId>
<executions>
<execution>
<!-- The Javadoc JAR plugin runs in the package phase so we need a phase before that -->
<phase>generate-resources</phase>
<configuration>
<target>
<mkdir dir="${project.build.directory}/apidocs"/>
</target>
</configuration>
<goals>
<goal>run</goal>
</goals>
</execution>
</executions>
</plugin>
<!-- Automatically release on Jira -->
<plugin>
<groupId>net.sigmalab.maven.plugins</groupId>
<artifactId>jira-maven-plugin</artifactId>
<version>0.9.7</version>
<configuration>
<skip>${xwiki.release.jira.skip}</skip>
<settingsKey>${xwiki.release.jira.settingsKey}</settingsKey>
<scope>${xwiki.release.jira.scope}</scope>
</configuration>
<executions>
<execution>
<phase>deploy</phase>
<goals>
<goal>create-new-jira-version</goal>
<goal>release-jira-version</goal>
</goals>
</execution>
</executions>
</plugin>
<!-- Automatically close and release project on Nexus -->
<plugin>
<groupId>org.sonatype.plugins</groupId>
<artifactId>nexus-staging-maven-plugin</artifactId>
<version>1.6.13</version>
<extensions>true</extensions>
<configuration>
<serverId>${xwiki.nexus.serverId}</serverId>
<nexusUrl>${xwiki.nexus.nexusUrl}</nexusUrl>
<autoReleaseAfterClose>${xwiki.nexus.autoReleaseAfterClose}</autoReleaseAfterClose>
<keepStagingRepositoryOnCloseRuleFailure>${xwiki.nexus.keepStagingRepositoryOnCloseRuleFailure}
</keepStagingRepositoryOnCloseRuleFailure>
<skipLocalStaging>${xwiki.nexus.skipLocalStaging}</skipLocalStaging>
<skipStaging>${xwiki.nexus.skipStaging}</skipStaging>
<stagingProgressTimeoutMinutes>60</stagingProgressTimeoutMinutes>
</configuration>
</plugin>
</plugins>
</build>
</profile>
<!-- To generate Clover reports, see https://dev.xwiki.org/xwiki/bin/view/Community/Testing#HTestCoverage -->
<profile>
<id>clover</id>
<properties>
<!-- We need to skip checkstyle execution since otherwise it conflicts with Clover -->
<xwiki.checkstyle.skip>true</xwiki.checkstyle.skip>
<!-- Skip backward-compatiblity checks since we don't need it when computing test coverage and it speeds up
the build not to run it -->
<xwiki.revapi.skip>true</xwiki.revapi.skip>
<!-- Skip Enforcer since we don't need it for coverage and it speeds up the build not to run it -->
<xwiki.enforcer.skip>true</xwiki.enforcer.skip>
</properties>
<dependencyManagement>
<dependencies>
<!-- Needed when using Clover for runtime execution of integration tests -->
<dependency>
<groupId>org.openclover</groupId>
<artifactId>clover</artifactId>
<version>${clover.version}</version>
</dependency>
</dependencies>
</dependencyManagement>
</profile>
<!-- Profile for m2eclipse which is used to tell m2eclipse to use a different output directory -->
<profile>
<id>m2e</id>
<properties>
<m2BuildDirectory>target-eclipse</m2BuildDirectory>
</properties>
<activation>
<property>
<name>m2e.version</name>
</property>
</activation>
<build>
<directory>${m2BuildDirectory}</directory>
</build>
</profile>
<!-- Profile for QA verifications that takes time -->
<profile>
<id>quality</id>
<properties>
<!-- Default Jacoco Instruction Ratio. We use 100% to force each module to define its
own ratio. Note that good values are above 70%. -->
<xwiki.jacoco.instructionRatio>1.00</xwiki.jacoco.instructionRatio>
</properties>
<build>
<plugins>
<!-- Fail the build if the test coverage is below a given value. -->
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
<executions>
<execution>
<id>jacoco-prepare</id>
<goals>
<goal>prepare-agent</goal>
</goals>
</execution>
<execution>
<id>jacoco-check</id>
<goals>
<goal>check</goal>
</goals>
</execution>
</executions>
<configuration>
<rules>
<rule>
<limits>
<limit>
<counter>INSTRUCTION</counter>
<minimum>${xwiki.jacoco.instructionRatio}</minimum>
</limit>
</limits>
</rule>
</rules>
</configuration>
</plugin>
</plugins>
</build>
</profile>
<profile>
<!-- Run full coverage for all modules in the current maven reactor build by generating the Jacoco result file
in one common location and appending data to it. -->
<id>coverage</id>
<build>
<plugins>
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
<executions>
<execution>
<id>jacoco-prepare</id>
<goals>
<goal>prepare-agent</goal>
</goals>
</execution>
</executions>
<configuration>
<!-- Tell the Agent Mojo to use a single destination file (instead of one per Maven module) -->
<destFile>${xwiki.jacoco.itDestFile}</destFile>
<!-- Tell the Report Mojos to use the same destination file used for instrumentation -->
<dataFile>${xwiki.jacoco.itDestFile}</dataFile>
<append>true</append>
</configuration>
</plugin>
</plugins>
</build>
</profile>
<profile>
<!-- To be executed when building snapshots. This allows to not have to have a special settings.xml file
when building snapshots while not incurring the downside of specifying a maven remote repo for releases,
see https://blog.sonatype.com/2009/02/why-putting-repositories-in-your-poms-is-a-bad-idea/ -->
<id>snapshot</id>
<pluginRepositories>
<pluginRepository>
<id>xwiki-snapshots</id>
<name>XWiki Nexus Plugin Snapshot Repository Proxy</name>
<url>https://nexus.xwiki.org/nexus/content/groups/public-snapshots</url>
<releases>
<enabled>false</enabled>
</releases>
<snapshots>
<enabled>true</enabled>
</snapshots>
</pluginRepository>
<pluginRepository>
<id>xwiki-releases</id>
<name>XWiki Nexus Plugin Releases Repository Proxy</name>
<url>https://nexus.xwiki.org/nexus/content/groups/public</url>
<releases>
<enabled>true</enabled>
</releases>
<snapshots>
<enabled>false</enabled>
</snapshots>
</pluginRepository>
</pluginRepositories>
<repositories>
<repository>
<id>xwiki-snapshots</id>
<name>XWiki Nexus Snapshot Repository Proxy</name>
<url>https://nexus.xwiki.org/nexus/content/groups/public-snapshots</url>
<releases>
<enabled>false</enabled>
</releases>
<snapshots>
<enabled>true</enabled>
</snapshots>
</repository>
<repository>
<id>xwiki-releases</id>
<name>XWiki Nexus Releases Repository Proxy</name>
<url>https://nexus.xwiki.org/nexus/content/groups/public</url>
<releases>
<enabled>true</enabled>
</releases>
<snapshots>
<enabled>false</enabled>
</snapshots>
</repository>
</repositories>
</profile>
<profile>
<!-- We don't use the 'integration-tests' profile because we cannot run the tests on CI (Chrome is not installed)
and we're waiting for this issue https://github.com/searls/jasmine-maven-plugin/issues/349 to use docker. -->
<id>integration-tests-chrome</id>
<build>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>properties-maven-plugin</artifactId>
<version>1.2.1</version>
<executions>
<execution>
<goals>
<goal>set-system-properties</goal>
</goals>
<configuration>
<properties>
<property>
<!-- Uncomment if you want to force a slightly older version of the Chrome Driver because you don't
have the latest Chrome installed locally. -->
<!--<name>wdm.chromeDriverVersion</name>
<value>116.0.5845.96</value>-->
</property>
<property>
<!-- Try to work around error: "[SEVERE]: bind() failed: Cannot assign requested address (99)" -->
<name>webdriver.chrome.whitelistedIps</name>
<value/>
</property>
</properties>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
</profiles>
<distributionManagement>
<site>
<id>nexus.xwiki.org</id>
<url>dav:https://nexus.xwiki.org/nexus/content/sites/site/</url>
</site>
<snapshotRepository>
<id>nexus.xwiki.org</id>
<name>XWiki Maven Development Repository for Snapshots</name>
<url>https://nexus.xwiki.org/nexus/content/repositories/snapshots/</url>
</snapshotRepository>
</distributionManagement>
<modules>
<!-- Sorted Alphabetically -->
<module>xwiki-commons-core</module>
<module>xwiki-commons-pom</module>
<module>xwiki-commons-tools</module>
</modules>
<reporting>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-project-info-reports-plugin</artifactId>
<configuration>
<!-- Since contacting the Maven Repositories can take a very long time, tell the plugin not to display
the repository locations of the dependencies in the report. -->
<dependencyLocationsEnabled>false</dependencyLocationsEnabled>
</configuration>
<reportSets>
<reportSet>
<reports>
<report>summary</report>
<report>index</report>
<report>dependencies</report>
<report>dependency-convergence</report>
<report>mailing-list</report>
<report>issue-tracking</report>
<report>scm</report>
</reports>
</reportSet>
</reportSets>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<configuration>
<!-- Always exclude the internal package since it's not user-public -->
<excludePackageNames>*.internal.*</excludePackageNames>
<!-- Make sure javadoc has enough memory -->
<maxmemory>300m</maxmemory>
</configuration>
<!-- Don't generate test javadoc -->
<reportSets>
<reportSet>
<reports>
<report>javadoc</report>
</reports>
</reportSet>
</reportSets>
</plugin>
</plugins>
</reporting>
</project>
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...