I have a java application which uses
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.
I found this bug report:
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.
Catch up with Atlassian Product Managers in our 2020 Demo Den round-up! From Advanced Roadmaps to Code in Jira to Next-Gen Workflows, check out the videos below to help up-level your work in the new ...
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event