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

Problem with Proj MAVEN 2 in Bamboo 4.3 MAVEN 3

Fernando del Rio Nov 05, 2012

I have a project created in maven 2 and when I try to take my job within maven 3.x to run the clean task the following error:

06-Nov-2012 16:34:45 [INFO] BUILD FAILURE
06-Nov-2012 16:34:45 [INFO] ------------------------------------------------------------------------
06-Nov-2012 16:34:45 [INFO] Total time: 0.089s
06-Nov-2012 16:34:45 [INFO] Finished at: Tue Nov 06 16:34:45 BOT 2012
06-Nov-2012 16:34:45 [INFO] Final Memory: 12M/724M
06-Nov-2012 16:34:45 [INFO] ------------------------------------------------------------------------
06-Nov-2012 16:34:45 [ERROR] The goal you specified requires a project to execute but there is no POM in this directory (/opt/atlassian/bamboo-home/xml-data/build-dir/PSP2-PM2001-JOB1). Please verify you invoked Maven from the correct directory. -> [Help 1]
06-Nov-2012 16:34:45 org.apache.maven.lifecycle.MissingProjectException: The goal you specified requires a project to execute but there is no POM in this directory (/opt/atlassian/bamboo-home/xml-data/build-dir/PSP2-PM2001-JOB1). Please verify you invoked Maven from the correct directory.
06-Nov-2012 16:34:45 at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:89)
06-Nov-2012 16:34:45 at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320)
06-Nov-2012 16:34:45 at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
06-Nov-2012 16:34:45 at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
06-Nov-2012 16:34:45 at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
06-Nov-2012 16:34:45 at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
06-Nov-2012 16:34:45 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
06-Nov-2012 16:34:45 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
06-Nov-2012 16:34:45 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
06-Nov-2012 16:34:45 at java.lang.reflect.Method.invoke(Method.java:601)
06-Nov-2012 16:34:45 at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
06-Nov-2012 16:34:45 at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
06-Nov-2012 16:34:45 at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
06-Nov-2012 16:34:45 at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
06-Nov-2012 16:34:45 [ERROR]
06-Nov-2012 16:34:45 [ERROR]
06-Nov-2012 16:34:45 [ERROR] For more information about the errors and possible solutions, please read the following articles:
06-Nov-2012 16:34:45

[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MissingProjectException

HELPME PLEASE

SEE YOU

1 answer

1 accepted

0 votes
Answer accepted

From the looks of your log, there is no maven project to run the command with.

The goal you specified requires a project to execute but there is no POM in this directory (/opt/atlassian/bamboo-home/xml-data/build-dir/PSP2-PM2001-JOB1). Please verify you invoked Maven from the correct directory. ->

Fernando del Rio Nov 06, 2012

within this project if there is a pom.xml ... but for some reason when you check out does not copy the pom.xml in the route you mention

thanks

Check the logs as your checkout needs to be happening in the same directory as where maven is running. If you have problems finding this out, best to contact support :)

Suggest an answer

Log in or Sign up to answer
This widget could not be displayed.
This widget could not be displayed.
Community showcase
Published in Jira

Here’s what we’re doing to make Jira Cloud faster

Hello Community 🤗 I’m Nikhil, a Product Manager on the Jira Cloud team working on performance improvements. Performance is an ongoing journey and we continue to invest heavily in it. We under...

102 views 0 16
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