HI
I have a java application which uses
aspectj-maven-plugin
as compiler. It. works fine in local however fails in bitbucket pipeline when called
mvn -s ../settings.xml -B clean compile
It fails with the following error.
[ERROR] Failed to execute goal org.codehaus.mojo:aspectj-maven-plugin:1.10:compile (default) on project global-iams: Execution default of goal org.codehaus.mojo:aspectj-maven-plugin:1.10:compile failed: Plugin org.codehaus.mojo:aspectj-maven-plugin:1.10 or one of its dependencies could not be resolved: Could not find artifact com.sun:tools:jar:11.0.5 at specified path /usr/local/openjdk-11/../lib/tools.jar -> [Help 1]
Any help is really appreciated. Please request any other information you need.
Thank You
Hello,
I found this bug report:
https://github.com/mojohaus/aspectj-maven-plugin/pull/45
Which jdk version are you using on your local? Maybe there is a support issue with the plugin's version and the JDK that is used on Bitbucket cloud.
Regards,
Elifcan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.