-
Type:
Bug
-
Resolution: Won't Fix
-
Priority:
Major
-
Component/s: batch-task-plugin
-
None
-
Environment:Platform: All, OS: All
I added a task to a maven project and I expected the task to run in the root
directory of the project that was updated SCM. My root directory has a pom.xml,
but I get an error when trying to run a simple task that suggests the execution
of the task is not happening in the correct directory.
Task:
mvn -U clean
Error:
[common] $ /bin/sh -xe /tmp/hudson29275.sh
+ mvn -U clean
[INFO] Scanning for projects...
[INFO] ----------------------------------------------------------------------------
[INFO] Building Maven Default Project
[INFO] task-segment: [clean]
[INFO] ----------------------------------------------------------------------------
[INFO] artifact org.apache.maven.plugins:maven-clean-plugin: checking for
updates from central
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Cannot execute mojo: clean. It requires a project with an existing
pom.xml, but the build is not using one.
[INFO] ------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] ------------------------------------------------------------------------
[INFO] Total time: < 1 second
[INFO] Finished at: Tue Oct 23 12:29:01 PDT 2007
[INFO] Final Memory: 1M/13M
[INFO] ------------------------------------------------------------------------