Build failing with message there is no POM in this directory (/opt/atlassian/pipelines/agent/build).

I have configured enabled and configured bitbucket-pipeline with my  code(java, maven,spring boot) in bit bucket. But each time I try to run build it fails with below message

[INFO] ------------------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 0.080 s
[INFO] Finished at: 2016-10-23T11:06:58+00:00
[INFO] Final Memory: 13M/483M
[INFO] ------------------------------------------------------------------------
[ERROR] The goal you specified requires a project to execute but there is no POM in this directory (/opt/atlassian/pipelines/agent/build). Please verify you invoked Maven from the correct directory. -> [Help 1]

 Not Sure why it is looking for path 


Below is my bitbucket-pipelines.yml

# You can specify a custom docker image from Docker Hub as your build environment.

image: maven:3.3.3



    - step:

        script: # Modify the commands below to build your repository.

          - mvn clean install

Please let me know what I am missing in my setup. Thanks.

1 answer

1 accepted

This widget could not be displayed.

Fixed by adding  - cd projectName  to script  bitbucket-pipelines.yml. Since my pom.xml was inside my project directory.


Suggest an answer

Log in or Sign up to answer
Community showcase
Published Aug 21, 2018 in Bitbucket

Branch Management with Bitbucket

As a project manager, I have discovered that different developers want to bring their previous branching method with them when they join the team. Some developers are used to performing individual wo...

1,325 views 8 11
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you