Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.11.0:compile (default-compil

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!
February 23, 2024

I am using this bitbucket-pipelines.yaml file 

# Template maven-build

# This template allows you to test and build your Java project with Maven.
# The workflow allows running tests, code checkstyle and security scans on the default branch.

# Prerequisites: pom.xml and appropriate project structure should exist in the repository.

image: maven:3.6.3

- parallel:
- step:
name: Build and Test
- maven
- mvn -B verify --file pom.xml
# Collect checkstyle results, if any, and convert to Bitbucket Code Insights.
- pipe: atlassian/checkstyle-report:0.3.0
- step:
name: Security Scan
# Run a security scan for sensitive data.
- pipe: atlassian/git-secrets-scan:0.5.1
could you help with this

1 answer

0 votes
Mark C
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
February 27, 2024

Hi @durgasaigandreddy,

Welcome to the community.

Based on the error message, it seems Maven is having issues with the code compiler.
To troubleshoot the issue further, I'd recommend considering the following:

  • If you have a successful build prior to this, kindly rerun it and see if it will still succeed or not, if yes, try to compare the successful rerun to the currently failed build
  • Review your POM file and see if the code is intended for the default compiler
  • Try to debug your Pipelines build locally in a Docker container to test it further - Debug pipelines locally with Docker

You can also refer to this knowledge-based article about Troubleshooting Bitbucket Pipelines.

Mark C

Suggest an answer

Log in or Sign up to answer
AUG Leaders

Atlassian Community Events