plopez145780 / biblianime-api

API de bibliothèque d'animé
GNU General Public License v3.0
0 stars 0 forks source link

Le build docker échoue. #7

Closed plopez145780 closed 3 months ago

plopez145780 commented 3 months ago
7.906 [INFO] ------------------------------------------------------------------------
7.906 [INFO] BUILD FAILURE
7.906 [INFO] ------------------------------------------------------------------------
7.907 [INFO] Total time:  6.670 s
7.907 [INFO] Finished at: 2024-07-21T11:11:43Z
7.907 [INFO] ------------------------------------------------------------------------
7.908 [ERROR] Failed to execute goal org.apache.maven.plugins:maven-dependency-plugin:3.6.1:go-offline (default-cli) on project biblianime-api: org.eclipse.aether.resolution.DependencyResolutionException: Failed to collect dependencies at org.ehcache:ehcache:jar:3.10.8 -> org.glassfish.jaxb:jaxb-runtime:jar:2.3.0-b170127.1453 -> org.glassfish.jaxb:jaxb-core:jar:2.3.0-b170127.1453 -> javax.xml.bind:jaxb-api:jar:2.3.
0-b161121.1438: Failed to read artifact descriptor for javax.xml.bind:jaxb-api:jar:2.3.0-b161121.1438: The following artifacts could not be resolved: javax.xml.bind:jaxb-api:pom:2.3.0-b161121.1438 (absent): Could not transfer artifact javax.xml.bind:jaxb-api:pom:2.3.0-b161121.1438 from/to maven-default-http-blocker (http://0.0.0.0/): Blocked mirror for repositories: [releases.java.net (http://maven.java.net/content/repositories/releases/, default, releases+snapshots), shapshots.java.net (http://maven.java.net/content/repositories/snapshots/, default, releases+snapshots), jvnet-nexus-staging (http://maven.java.net/content/repositories/staging/, default, releases+snapshots), netbeans (http://bits.netbeans.org/nexus/content/groups/netbeans, default, releases)] -> [Help 1]
7.908 [ERROR]
7.908 [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
7.908 [ERROR] Re-run Maven using the -X switch to enable full debug logging.
7.908 [ERROR]
7.908 [ERROR] For more information about the errors and possible solutions, please read the following articles:
7.909 [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
------

 3 warnings found (use --debug to expand):
 - FromAsCasing: 'as' and 'FROM' keywords' casing do not match (line 6)
 - FromAsCasing: 'as' and 'FROM' keywords' casing do not match (line 29)
 - FromAsCasing: 'as' and 'FROM' keywords' casing do not match (line 45)
Dockerfile:17
--------------------
  16 |     # Tirer parti d'un montage de cache sur /root/.m2 pour que les constructions suivantes n'aient pas à retélécharger les paquets.
  17 | >>> RUN --mount=type=bind,source=pom.xml,target=pom.xml \
  18 | >>>     --mount=type=cache,target=/root/.m2 ./mvnw dependency:go-offline -DskipTests
  19 |
--------------------
ERROR: failed to solve: process "/bin/sh -c ./mvnw dependency:go-offline -DskipTests" did not complete successfully: exit code: 1
plopez145780 commented 3 months ago

Mise en commentaire de la dépendance ehcache -> plus de problème, mais plus de cache

Maven version 3.9.7 Tentative de fichier settings.xml de maven avec mirroir en https -> pas de différence Tentative de fichier settings.xml de maven de court-circuiter maven-default-http-blocker -> pas de différence

Tentative de retour a maven 3.6.3 -> erreur de repo décommissionné

33.04 [ERROR] Failed to execute goal org.apache.maven.plugins:maven-dependency-plugin:3.6.1:go-offline (default-cli) on project biblianime-api: org.eclipse.aether.resolution.DependencyResolutionExceptio
n: Failed to collect dependencies at org.ehcache:ehcache:jar:jakarta:3.10.8 -> org.glassfish.jaxb:jaxb-runtime:jar:2.3.0-b170127.1453 -> org.glassfish.jaxb:jaxb-core:jar:2.3.0-b170127.1453 -> javax.xml.
bind:jaxb-api:jar:2.3.0-b161121.1438: Failed to read artifact descriptor for javax.xml.bind:jaxb-api:jar:2.3.0-b161121.1438: Could not transfer artifact javax.xml.bind:jaxb-api:pom:2.3.0-b161121.1438 fr
om/to netbeans (http://bits.netbeans.org/nexus/content/groups/netbeans): Authentication failed for http://bits.netbeans.org/nexus/content/groups/netbeans/javax/xml/bind/jaxb-api/2.3.0-b161121.1438/jaxb-api-2.3.0-b161121.1438.pom 401 Repository decommissioned. Please refer to https://netbeans.apache.org/about/oracle-transition.html for more information. -> [Help 1]
plopez145780 commented 3 months ago

C'est exactement cette erreur : https://github.com/ehcache/ehcache3/issues/3215

plopez145780 commented 3 months ago

Autre ticket utile : https://github.com/ehcache/ehcache3/issues/3059

plopez145780 commented 3 months ago

Downgrade en 3.9.11

<dependency>
    <groupId>org.ehcache</groupId>
    <artifactId>ehcache</artifactId>
    <version>3.9.11</version>
</dependency>