Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

generated maven project uses 3.1.4 but incorrectly pulls springframework 6.0.11. #23883

Closed
1 task
mshima opened this issue Oct 17, 2023 · 1 comment · Fixed by jhipster/jhipster-bom#1457
Closed
1 task

Comments

@mshima
Copy link
Member

mshima commented Oct 17, 2023

Overview of the issue

spring-boot 3.1.4 depends on springframework 6.0.12.
See https://mvnrepository.com/artifact/org.springframework.boot/spring-boot/3.1.4.

Maven projects incorrectly pulls springframework 6.0.11 causing conflicts.
See failures at jhipster/generator-jhipster-native#98, https://github.com/jhipster/generator-jhipster-native/actions/runs/6552918877.

Exception in thread "main" java.lang.NoSuchMethodError: 'org.springframework.aot.hint.support.FilePatternResourceHintsRegistrar$Builder org.springframework.aot.hint.support.FilePatternResourceHintsRegistrar.forClassPathLocations(java.util.List)'
	at org.springframework.boot.context.config.ConfigDataLocationRuntimeHints.registerHints(ConfigDataLocationRuntimeHints.java:52)

Motivation for or Use Case
Reproduce the error
% jhipster --defaults --skip-install
% ./mvnw dependency:tree | grep org.springframework:
[INFO] |  +- org.springframework:spring-context-support:jar:6.0.11:compile
[INFO] |  |  +- org.springframework:spring-beans:jar:6.0.11:compile
[INFO] |  |  \- org.springframework:spring-context:jar:6.0.11:compile
[INFO] |  \- org.springframework:spring-core:jar:6.0.11:compile
[INFO] |     \- org.springframework:spring-jcl:jar:6.0.11:compile
[INFO] |  |  \- org.springframework:spring-jdbc:jar:6.0.11:compile
[INFO] |  |  +- org.springframework:spring-orm:jar:6.0.11:compile
[INFO] |  |  \- org.springframework:spring-tx:jar:6.0.11:compile
[INFO] |  \- org.springframework:spring-aspects:jar:6.0.11:compile
[INFO] |  |  \- org.springframework:spring-expression:jar:6.0.11:compile
[INFO] |  +- org.springframework:spring-aop:jar:6.0.11:compile
[INFO] |  +- org.springframework:spring-test:jar:6.0.11:test
[INFO] |  +- org.springframework:spring-web:jar:6.0.11:compile
[INFO] |  \- org.springframework:spring-webmvc:jar:6.0.11:compil
Related issues
Suggest a Fix
JHipster Version(s)
JHipster configuration
Entity configuration(s) entityName.json files generated in the .jhipster directory
Browsers and Operating System
  • Checking this box is mandatory (this is just to show you read everything)
@mraible
Copy link
Contributor

mraible commented Oct 30, 2023

@mshima @DanielFran Please review jhipster/jhipster-bom#1457.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants