-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
The module declaration in version 2.11.0 is not visible #2679
Comments
The module declaration is still under Is only your IDE showing this error, or do you get this error also when you run the build tool (probably Maven or Gradle) from command line? If this also occurs with Maven or Gradle, could you please try to create a small self-contained demo repository which showcases this issue? Please mention:
|
I am aware that you are using multi-release jar and I noticed META-INF/versions/9/module-info.class.(this is also the case in 2.10.1) I created a small Maven project. (included)
When using 2.10.1 every thing is ok. When using 2.11.0 it fails. Thanks in advance. |
But does this error only occur within Eclipse, or also when you run If I use the I think we are using standard Maven plugins for JAR creation. Since last Gson version we upgraded the maven-jar-plugin and moditect-maven-plugin, and made the build reproducible (#2543). Maybe this should rather be reported as bug for Eclipse. Just to be sure, did you run "Maven" > "Update Project..." in Eclipse after you changed the dependency? I think it should have done that automatically though. |
And could you please check Eclipse's "Error Log" as well ("Window" > "Show View" > "Other..." > "General" > "Error Log") if it contains any related errors? |
I can live with :
Have you considered using "Automatic-Module-Name" ? |
"But does this error only occur within Eclipse, or also when you run mvn clean test?" Running "mvn clean test" from the command line works !!!! I will report to the people in https://github.com/eclipse-m2e/m2e-core |
Thanks |
When you create the https://github.com/eclipse-m2e/m2e-core issue, can you please add a link there to this Gson issue here? It might help the m2e maintainers, and it will help anyone else who sees this Gson issue here to find the corresponding m2e issue. Also, have you tried right-clicking the project in Eclipse and selecting "Maven" > "Update Project...", which I suggested above? (just to be sure) |
Also, have you tried right-clicking the project in Eclipse and selecting "Maven" > "Update Project...", which I suggested above? (just to be sure) |
The module declaration in version 2.11.0 is not visible, in contrast to version 2.10.1
Cannot use "requires com.google.gson;" in existing code like I used to.
Please help,
The text was updated successfully, but these errors were encountered: