Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Deleted user
0 / 0 points
Next:
badges earned

Your Points Tracker
Challenges
Leaderboard
  • Global
  • Feed

Badge for your thoughts?

You're enrolled in our new beta rewards program. Join our group to get the inside scoop and share your feedback.

Join group
Recognition
Give the gift of kudos
You have 0 kudos available to give
Who do you want to recognize?
Why do you want to recognize them?
Kudos
Great job appreciating your peers!
Check back soon to give more kudos.

Past Kudos Given
No kudos given
You haven't given any kudos yet. Share the love above and you'll see it here.

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

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] BUILD FAILURE
[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]
[ERROR]

 Not Sure why it is looking for path 

/opt/atlassian/pipelines/agent/build.

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

pipelines:

  default:

    - 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.

2 answers

1 accepted

3 votes
Answer accepted

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

 

I don't have pom.xml file, how can I add it to my directory?

hi sunny ,i have same issue. POM is not on root directory of repo . i am not using any pipeline where i can specify to CD in to project directory. I am just using a maven task . Is there a way i can specify in bamboo to get in to project directory which is 1 level down from root directory. 

@sunny_mattas I am facing the same issue. I tried adding below:

script:

- mvn clean install
- git push https://heroku:$HEROKU_API_KEY@git.heroku.com/$HEROKU_APP_NAME.git HEAD:master

 

but getting following error:

build issue.JPG

Look for location of pom.xml in your project. Seems bitbucket assumes your pom.xml is inside folder "/opt/atlassian/pipelines/agent/build". But for me and I am assuming for you also it is inside a folder(project name) at this location. So run  mvn clean install inside the folder having pom.xml. For this change your script to following

script:
- cd path_to_pom.xml
- mvn clean install
- git push https://heroku:$HEROKU_API_KEY@git.heroku.com/$HEROKU_APP_NAME.git HEAD:master

path_to_pom.xml is relative from  /opt/atlassian/pipelines/agent/build. 

Like Clevelandio likes this

@Ranjan Singh, I am also facing the same issue. Could you please let know if you come across any solution?

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Bitbucket

New improvements to user management in Bitbucket Cloud 👥

Hey Community! We’re willing to wager that quite a few of you not only use Bitbucket, but administer it too. Our team is excited to share that we’ll be releasing improvements throughout this month of...

269 views 2 10
Read article

Community Events

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

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you