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.
<span>[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]</span>
Any help is really appreciated. Please request any other information you need.
Thank You