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