-
Notifications
You must be signed in to change notification settings - Fork 58
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
Problems using ecj for modular project #147
Comments
Probably because nobody implemented it. The info is available. Just adding it would be simple enough, but I don't know enough about module-based builds to know what else might be needed. Why is .../target/classes shown on the classpath for javac, but in the modulepath for ECJ? |
tomaswolf
added a commit
to tomaswolf/plexus-compiler
that referenced
this issue
Nov 14, 2021
Simply add the path from the CompilerConfiguration to the command-line arguments.
tomaswolf
added a commit
to tomaswolf/plexus-compiler
that referenced
this issue
Nov 14, 2021
Simply add the path from the CompilerConfiguration to the command-line arguments. Also fix the --processor-module-path argument.
slachiewicz
pushed a commit
that referenced
this issue
Nov 21, 2021
Simply add the path from the CompilerConfiguration to the command-line arguments. Also fix the --processor-module-path argument.
should be fixed with 2.12 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I have a modular javafx project and would like to use ecj, so I configured it in my pom:
I immediately get lots of errors, both concerning missing modules (e.g. cannot find javafx.controls) and types within my own module that cannot be resolved (classes in the same package). When running maven (with javac) and the -X options I see that maven itself seems to be aware of the modules and that the information is passed along to javac:
Compilation works for javac with these options.
However, the corresponding output for ecj is as follows:
There is no trace of the modules in the command line options. Inspecting the code, this isn't surprising as the code doesn't seem to look for or handle module-path related stuff. I assume the maven's module path information is available, so wonder why it's not used?
The text was updated successfully, but these errors were encountered: