Maven----Install the manually downloaded jar package to the local mavenrepository as a command line

Source: Internet
Author: User
Tags stack trace

1. Scenario reproduction: Prepare to implement Sprintboot's thermal deployment function, as there is no corresponding jar, mvn install in eclipse will error:

Error message:

[INFO]---spring-boot-maven-plugin:1.4.1. Release:run (default-CLI) @ spring-boot---[WARNING] the POM forOrg.springframework:springloaded:jar:1.2.4RELEASE ismissing, no dependency information Available[info]------------------------------------------------------------------------[INFO] BUILD Failure[info]------------------------------------------------------------------------[INFO] Total time:1.328S[info] finished at: .- A-29t21: to: Geneva+ ,:xx[INFO] Final memory:13m/33m[info]------------------------------------------------------------------------[ERROR] Failed to execute goal org.springframework.boot:spring-boot-maven-plugin:1.4.1. Release:run (default-CLI) on Project Spring-boot:executiondefault-cli of goal Org.springframework.boot:spring-boot-maven-plugin:1.4.1. Release:run Failed:plugin Org.springframework.boot:spring-boot-maven-plugin:1.4.1. RELEASE or one of its dependencies could is resolved:failure to find Org.springframework:springloaded:jar:1.2.4RELEASEinchHttps//Repo.maven.apache.org/maven2 is cached in the local repository, resolution won't be reattempted until the update I Nterval of Central have elapsed or updates are forced-[help 1][ERROR] [ERROR] to see the full stack trace of the errors, re-run Maven with The-eSwitch. [ERROR] Re-run MavenusingThe-xSwitchTo enable full debug logging. [ERROR] [ERROR] For more information on the errors and possible solutions, please read the following articles:[error] [ Help1] http://cwiki.apache.org/confluence/display/maven/pluginresolutionexception

2. Because Maven cannot automatically download from the online repository to the corresponding jar package, it needs to be manually installed to the local mavenrepository

The command format is as follows:

MVN Install:install-file-dfile=jar Package Position (parameter i)-dgroupid=groupid (parameter II)-dartifactid=artifactid (Parameter III)-dversion=version ( Parameter four)-dpackaging=jar

Parameter one: where the jar package is located

Parameter two: GroupID of JAR Package

Parameter three: The Artifactid of the jar package

Parameter four: The version number of the JAR package

3. Actual operation: if

4. Special Considerations:

4.1 Note "-" must not be missing the "-" after the install is no space
4.2 Note the path of the jar package in "-dfile" and the name of the jar package.
4.3 Note The cmd command prompt to see if the jar package was successfully replicated in the local repository.

Maven----Install the manually downloaded jar package to the local mavenrepository as a command line

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.