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
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.