i cloned the git repository (XWiki)
and tried to mvn clean install
but the execution failed the error message was as follows:
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 33:30 min
[INFO] Finished at: 2022-04-14T05:10:04+05:30
[INFO] ------------------------------------------------------------------------
[INFO] 196 goals, 190 executed, 6 from cache, saving at least 2s
[INFO]
[INFO] A build scan was not published as you have not authenticated with server 'ge.xwiki.org'.
[ERROR] Failed to execute goal fr.inria.gforge.spoon:spoon-maven-plugin:3.5:check (spoon-main) on project xwiki-platform-tool-jetty-listener: Error, could not add URL to system classloader -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR] mvn <args> -rf :xwiki-platform-tool-jetty-listener
my system config is:
java -version
openjdk version "18" 2022-03-22
OpenJDK Runtime Environment (build 18+0)
OpenJDK 64-Bit Server VM (build 18+0, mixed mode)
mvn -version
Apache Maven 3.8.4 (9b656c72d54e5bacbed989b64718c159fe39b537)
Maven home: /opt/maven
Java version: 18, vendor: N/A, runtime: /usr/lib/jvm/java-18-openjdk
Default locale: en_US, platform encoding: UTF-8
OS name: "linux", version: "5.17.1-arch1-1", arch: "amd64", family: "unix"
my settings.xml file content:
<settings>
<profiles>
<profile>
<id>xwiki</id>
<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>
<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>
</profile>
</profiles>
<activeProfiles>
<activeProfile>xwiki</activeProfile>
</activeProfiles>
</settings>
thank you