-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Closed as not planned
Labels
area/get-startedRelates to get started and onboarding docsRelates to get started and onboarding docslifecycle/lockedstatus/needs-more-infoNeed more information about the issue/PRNeed more information about the issue/PR
Description
File: language/java/build-images.md
Every time I run docker build --tag java-docker .
I get this error:
Downloaded from central: https://repo.maven.apache.org/maven2/org/ehcache/ehcache/3.10.0/ehcache-3.10.0.jar (1.8 MB at 3.1 MB/s)
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 05:01 min
[INFO] Finished at: 2022-06-17T19:59:09Z
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-dependency-plugin:3.3.0:go-offline (default-cli) on project spring-petclinic: org.eclipse.aether.resolution.DependencyResolutionException: Failed to collect dependencies at org.ehcache:ehcache:jar:3.10.0 -> 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 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]
I tried excluding the jaxb-runtime dependency, as suggested under ehcache/ehcache3#2881:
<dependency>
<groupId>org.ehcache</groupId>
<artifactId>ehcache</artifactId>
<exclusions>
<exclusion>
<groupId>org.glassfish.jaxb</groupId>
<artifactId>jaxb-runtime</artifactId>
</exclusion>
</exclusions>
</dependency>
Maybe I'm doing something wrong because it doesn't seem to have any effect.
I found a workaround on SO. Details here: spring-projects/spring-petclinic#996.
Metadata
Metadata
Assignees
Labels
area/get-startedRelates to get started and onboarding docsRelates to get started and onboarding docslifecycle/lockedstatus/needs-more-infoNeed more information about the issue/PRNeed more information about the issue/PR