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 |
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. ->
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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 :)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.