ll script Execution mvn clean install error
December 12 Beijing OSC Source--------year-end celebration of open source technology»
[INFO] Scanning for projects ...
[INFO]------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO]------------------------------------------------------------------------
[INFO] Total time:0.324s
[INFO] Finished at:tue June 11:02:07 CST 2013
[INFO] Final memory:2m/59m
[INFO]------------------------------------------------------------------------
[ERROR] The goal specified requires a project to execute but there is no POM in this directory (/root). Please verify your invoked Maven from the correct directory. → [help 1]
[ERROR]
[ERROR] The full stack trace of the errors, re-run Maven with THE-E switch.
[ERROR] Re-run Maven using The-x switch to enable full debug logging.
[ERROR]
[ERROR] For more information on the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MissingProjectException
I wrote the CD into my MVN project in the shell, then I compiled the package, and the result was executed incorrectly, but I did not have a problem executing it in another script.
Workaround:It is useless to use a CD inside the Shell. Suggest you use in bash
Install
or continue to use the CD in bash and do so (remember that there is a point ahead)
. ./your_shell_script_file. SH
Shell script Execution mvn clean install error--missingprojectexception