无法在阿里云ECS上运行spring-boot应用程序?

时间:2019-03-30 14:02:04

标签: alibaba-cloud-ecs

我能够在local(MAC)中运行spring-boot模板,但是当我使用阿里云ECS实例中的模板时,我将无法运行应用程序

mvn spring-boot:run

root@HOST:~/home/code/spring-rest-hello-world# mvn spring-boot:run
[INFO] Scanning for projects...
Downloading: https://repo.maven.apache.org/maven2/org/springframework/boot/spring-boot-starter-parent/2.1.2.RELEASE/spring-boot-starter-parent-2.1.2.RELEASE.pom
[ERROR] [ERROR] Some problems were encountered while processing the POMs:
[WARNING] 'dependencies.dependency.(groupId:artifactId:type:classifier)' must be unique: org.apache.httpcomponents:httpclient:jar -> version 4.5.7 vs ${httpclient.version} @ line 80, column 15
[FATAL] Non-resolvable parent POM for org.springframework.boot:spring-rest-hello-world:1.0: Could not transfer artifact org.springframework.boot:spring-boot-starter-parent:pom:2.1.2.RELEASE from/to central (https://repo.maven.apache.org/maven2): Received fatal alert: protocol_version and 'parent.relativePath' points at wrong local POM @ line 12, column 13
 @ 
[ERROR] The build could not read 1 project -> [Help 1]
[ERROR]   
[ERROR]   The project org.springframework.boot:spring-rest-hello-world:1.0 (/root/home/code/spring-rest-hello-world/pom.xml) has 1 error
[ERROR]     Non-resolvable parent POM for org.springframework.boot:spring-rest-hello-world:1.0: Could not transfer artifact org.springframework.boot:spring-boot-starter-parent:pom:2.1.2.RELEASE from/to central (https://repo.maven.apache.org/maven2): Received fatal alert: protocol_version and 'parent.relativePath' points at wrong local POM @ line 12, column 13 -> [Help 2]
[ERROR] 
[ERROR] To see 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 about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildingException
[ERROR] [Help 2] http://cwiki.apache.org/confluence/display/MAVEN/UnresolvableModelException

0 个答案:

没有答案
相关问题