Maven Install dependencies package failed

Source: Internet
Author: User
Tags stack trace

Maven in Maven dependencies relies on projects that cannot be packaged and errors that occur. Description: Dependent projects for Project-dao packaged projects for Project-service are all dependent on project-parent.

[INFO] Scanning for projects ...
[INFO]
[INFO]------------------------------------------------------------------------
[INFO] Building Project-service 0.0.1-snapshot
[INFO]------------------------------------------------------------------------
[INFO]------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO]------------------------------------------------------------------------
[INFO] Total time:0.507s
[INFO] Finished At:thu 09:45:55 CST 2014
[INFO] Final memory:4m/15m
[INFO]------------------------------------------------------------------------
[ERROR] Failed to execute goal in Project Project-service:could not resolve dependencies for project com.newhero.project:project- service:jar:0.0.1-snapshot:failed to collect dependencies for [Com.newhero.project:project-dao:jar:0.0.1-snapshot ( Compile?)]: Failed to read artifact descriptor for com.newhero.project:project-dao:jar:0.0.1-snapshot:could not find art Ifact Com.newhero.project:project-parent:pom:0.0.1-snapshot [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/DependencyResolutionException

Solution: Need to put the parent project, that is, Project-parent engineering first install, and then try to pack project-service, no, then look at the description of the error, find the last project to describe the statement, Install it so that you can pack the Project-service.

Maven Install dependencies package failed

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.