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

Warning module not found #445

Open
XSpielinbox opened this issue Feb 1, 2024 · 4 comments
Open

Warning module not found #445

XSpielinbox opened this issue Feb 1, 2024 · 4 comments
Labels
status: new Initial state for every issue / pull request

Comments

@XSpielinbox
Copy link
Contributor

XSpielinbox commented Feb 1, 2024

More information

When compiling jollyday I get the following warnings:

[...]
[INFO] --- compiler:3.12.1:compile (default-compile) @ jollyday-core ---
[INFO] Recompiling the module because of changed source code.
[INFO] Compiling 75 source files with javac [debug target 11 module-path] to target/classes
[WARNING] system modules path not set in conjunction with -source 11
[WARNING] /home/[...]/Documents/[...]/jollyday/jollyday-core/src/main/java/module-info.java:[17,28] module not found: de.focus_shift.jollyday.jaxb
[WARNING] /home/[...]/Documents/[...]/jollyday/jollyday-core/src/main/java/module-info.java:[18,28] module not found: de.focus_shift.jollyday.jackson
[WARNING] /home/[...]/Documents/[...]/jollyday/jollyday-core/src/main/java/module-info.java:[19,36] module not found: de.focus_shift.jollyday.jackson.test
[WARNING] /home/[...]/Documents/[...]/jollyday/jollyday-core/src/main/java/module-info.java:[20,33] module not found: de.focus_shift.jollyday.jaxb.test
[WARNING] /home/[...]/Documents/[...]/jollyday/jollyday-core/src/main/java/module-info.java:[22,36] module not found: de.focus_shift.jollyday.jackson.test
[WARNING] /home/[...]/Documents/[...]/jollyday/jollyday-core/src/main/java/module-info.java:[23,33] module not found: de.focus_shift.jollyday.jaxb.test
[WARNING] /home/[...]/Documents/[...]/jollyday/jollyday-core/src/main/java/module-info.java:[7,39] package is empty or does not exist: focus_shift.de.jollyday.schema.holiday
[INFO] 
[...]
[INFO] --- compiler:3.12.1:compile (default-compile) @ jollyday-jackson ---
[INFO] Recompiling the module because of changed dependency.
[INFO] Compiling 45 source files with javac [debug target 11 module-path] to target/classes
[WARNING] system modules path not set in conjunction with -source 11
[WARNING] /home/[...]/Documents/[...]/jollyday/jollyday-jackson/src/main/java/module-info.java:[23,36] module not found: de.focus_shift.jollyday.jackson.test
[WARNING] /home/[...]/Documents/[...]/jollyday/jollyday-jackson/src/main/java/module-info.java:[26,36] module not found: de.focus_shift.jollyday.jackson.test
[INFO] 
[...]
[INFO] --- compiler:3.12.1:compile (default-compile) @ jollyday-jaxb ---
[INFO] Recompiling the module because of changed dependency.
[INFO] Compiling 47 source files with javac [debug target 11 module-path] to target/classes
[WARNING] system modules path not set in conjunction with -source 11
[WARNING] /home/[...]/Documents/[...]/jollyday/jollyday-jaxb/src/main/java/module-info.java:[20,33] module not found: de.focus_shift.jollyday.jaxb.test
[WARNING] /home/[...]/Documents/[...]/jollyday/jollyday-jaxb/src/main/java/module-info.java:[22,33] module not found: de.focus_shift.jollyday.jaxb.test
[INFO] 
[...]

Note: I only have JDK 17 installed, which might be the cause for [WARNING] system modules path not set in conjunction with -source 11.

@XSpielinbox XSpielinbox added the status: new Initial state for every issue / pull request label Feb 1, 2024
@derTobsch
Copy link
Contributor

Note: I only have JDK 17 installed, which might be the cause for [WARNING] system modules path not set in conjunction with -source 11.

is fixed in #450

@derTobsch
Copy link
Contributor

The module warnings are, because the modules has not been build to this time and therefore the warning or I am wrong?

@XSpielinbox
Copy link
Contributor Author

Note: I only have JDK 17 installed, which might be the cause for [WARNING] system modules path not set in conjunction with -source 11.

is fixed in #450

Thank you. Yes, that fixes that warning.

@XSpielinbox
Copy link
Contributor Author

The module warnings are, because the modules has not been build to this time and therefore the warning or I am wrong?

Hm, yes, could be. How would one be doing this then normally? Is there a way to build it in a way that all dependencies are built beforehand? It does not seem correct to me to always get this warning, but I don't know after all whether this is to be expected.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: new Initial state for every issue / pull request
Projects
None yet
Development

No branches or pull requests

2 participants