Missed Team ’24? Catch up on announcements here.

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

Problem with Proj MAVEN 2 in Bamboo 4.3 MAVEN 3

Fernando del Río November 5, 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
James Dumay
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
November 6, 2012

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 Río November 6, 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

James Dumay
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
November 7, 2012

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
TAGS
AUG Leaders

Atlassian Community Events