jhipster / generator-jhipster

JHipster is a development platform to quickly generate, develop, & deploy modern web applications & microservice architectures.
https://www.jhipster.tech
Apache License 2.0
21.54k stars 4.02k forks source link

After migrating to 8.0.0.beta: Cannot Access MacAlgorithm #22556

Closed dave0688 closed 1 year ago

dave0688 commented 1 year ago
Overview of the issue

After upgrading to jHipster 8.0.0 I'm running into the following compilation error:

src/test/java/com/myApp/app/security/jwt/JwtAuthenticationTestUtils.java:55:46
java: cannot access MacAlgorithm
  class file for MacAlgorithm not found

I'm on a macbook, if that helps.

Also I tried to debug, but this MacAlgorithm comes from spring itself, so not sure why it cannot access it.

I also opened a stackoverflow issue: https://stackoverflow.com/questions/76471526/java-spring-boot-cannot-access-macalgorithm

Motivation for or Use Case

I want to project to compile.

Reproduce the error

Execute ./mvnw

JHipster Version(s)

8.0.0.beta

JHipster configuration
Browsers and Operating System

MacOS Ventura 13.4 Chrome

mraible commented 1 year ago

Can you provide the output of jhipster info so we can try to reproduce this issue?

It might be that Maven didn't download the artifacts correctly. You can remove your local Maven repo and try again.

rm -rf ~/.m2/repository
dave0688 commented 1 year ago

Thank you very much for your answer. For some reason the issue is gone. It might really have been a cache issue. After cleaning the project, deleting the target folder and rebuilding I don't have it anymore.

Thanks for your help, and I would let you know if it happens again.