Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

bitbucket maven aspectj pipeline failing

Koustav Chatterjee
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
January 18, 2021

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

1 answer

0 votes
Elifcan Cakmak
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
January 19, 2021

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

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
TAGS
AUG Leaders

Atlassian Community Events