Skip to content

Can't pass --module-path argument to the compiler. #40

Open
@DanielChicot

Description

@DanielChicot

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions