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
Dependency downloaded but module not found #569
Comments
Hi, @LingkKang 👋 Thanks for the bug report, we will investigate the issue and get back to you with updates. |
This is probably because of too old Maven version. I tried to set up JDK and Maven (using A naive demo can be found here:
Additionally, answer of this StackOverflow question 👇 suggested that newer version of Maven compiler plugin can fix it. I suspect they are somehow related. java - Maven dependency module not found - Stack Overflow Hope this can help :D |
Description
To simply put, Maven have downloaded dependencies, but failed at compiling, saying that it can not find module.
I'm using GSON on my project, it runs well locally, but on GitHub action, Maven keeps reporting the error.
Although accroding to the log, it have downloaded dependencies successfully.
Reproduce
I've abstracted away irrelevant things, left this small repo: LingkKang/gson-ci, and the action still failed to run:
-X
and-e
flags)Expected behavior:
Pass the CI.
Actual behavior:
CI failed at Maven compiling.
Task version
Never tried other distributions because I'm going to use JavaFX.
Platform
Runner type
I'm not sure is this really a bug of
setup-java
, it might due to different Maven version or GSON, but as it can build on local machine, I suspect it was caused bysetup-java
. 😢The text was updated successfully, but these errors were encountered: