You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A project generated with ehcache fails on mvnw dependency:go-offline, due to ehcache v.3.10+ changing jaxb dependency to a range [2.2,3)
Related issues on ehcache side: ehcache/ehcache3#3215 where the maintainer basically says it's normal. ehcache/ehcache3#2881 here some suggest excluding jaxb-runtime, but I guess we need it for liquibase xml parsing? Also excluding did not work.
Simply downgrading to 3.9 and removing Jakarta classifier seems to work, but I'm not sure if it can be considered valid solution.
Lastly mvnw dependency:resolve works fine.
Motivation for or Use Case
Aside from the actual offline development use case, I was exploring the option of separating the dependency resolution step and the actual build step to cache the layer in docker image building.
Reproduce the error
Generate brand new project, with all suggested configs and run mvnw dependency:go-offline
Related issues
I see jabx-runtime listed separately under ehcache, but couldn't find any related issue/pr
I'm don't have much experience with maven, don't know if downgrading to ehcache 3.9 could have other repercussions, or somehow maybe don't let maven go through all dependency versions, since it ultimately resolves to org.glassfish.jaxb:jaxb-runtime:jar:4.0.5:provided?
This is the error anyway
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-dependency-plugin:3.6.1:go-offline (default-cli) on project test: org.eclipse.aether.resolution.DependencyResolutionException: 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: 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]
Overview of the issue
A project generated with ehcache fails on
mvnw dependency:go-offline
, due toehcache
v.3.10+ changingjaxb
dependency to a range[2.2,3)
Related issues on ehcache side: ehcache/ehcache3#3215 where the maintainer basically says it's normal.
ehcache/ehcache3#2881 here some suggest excluding
jaxb-runtime
, but I guess we need it for liquibase xml parsing? Also excluding did not work.Simply downgrading to 3.9 and removing Jakarta classifier seems to work, but I'm not sure if it can be considered valid solution.
Lastly
mvnw dependency:resolve
works fine.Motivation for or Use Case
Aside from the actual offline development use case, I was exploring the option of separating the dependency resolution step and the actual build step to cache the layer in docker image building.
Reproduce the error
Generate brand new project, with all suggested configs and run
mvnw dependency:go-offline
Related issues
I see
jabx-runtime
listed separately under ehcache, but couldn't find any related issue/prSuggest a Fix
I'm don't have much experience with maven, don't know if downgrading to ehcache 3.9 could have other repercussions, or somehow maybe don't let maven go through all dependency versions, since it ultimately resolves to
org.glassfish.jaxb:jaxb-runtime:jar:4.0.5:provided
?This is the error anyway
JHipster Version(s)
v8.5.0
JHipster configuration
.yo-rc.json file
Environment and Tools
java version "17.0.11" 2024-04-16 LTS
Java(TM) SE Runtime Environment (build 17.0.11+7-LTS-207)
Java HotSpot(TM) 64-Bit Server VM (build 17.0.11+7-LTS-207, mixed mode, sharing)
git version 2.39.3 (Apple Git-145)
node: v18.20.3
npm: 10.7.0
Browsers and Operating System
This doesn't concern browser.
Regarding OS, the same error occurs both when trying to build the image on an ubuntu and on Mac directly.
The text was updated successfully, but these errors were encountered: