-
Notifications
You must be signed in to change notification settings - Fork 72
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
Can't pass --module-path argument to the compiler. #40
Comments
Is there any news on this? It kinda seems like this project is stale (dead?). How come? |
I opened a PR with fix toallow to pass arbitrary command line arg to the compiler. |
I have this problem. 11:03:13.013 [ERROR] AjcCompileMojo - The package org.w3c.dom is accessible from more than one module: , java.xml
with
|
A couple of years ago, my PR #100 was not merged, but as a maintainer of both AspectJ and https://github.com/dev-aspectj/aspectj-maven-plugin, I added basic support for |
In order to build a java 9/10 module based aspect j project with maven I need to add aspectjrt.jar to the module path. The ajc compiler has the --module-path option e.g.:
ajc --module-path c:/opt/aspectj1.9/lib/aspectjrt.jar ...
but I can't seem to get the aspectj-maven-plugin to pass this through to the compiler.
aspectj-maven compiler version 1.11.
aspectj version 1.9.1
Note that I can get around this with the ASPECTJ_OPTS environment variable, e.g.
$ export ASPECTJ_OPTS="--module-path c:/opt/aspectj1.9/lib/aspectjrt.jar"
$ mvn aspectj:compile
The text was updated successfully, but these errors were encountered: