Shell script Execution mvn clean install error--missingprojectexception

Source: Internet
Author: User
Tags stack trace

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.