Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

快速部署maven报错 #981

Closed
Lee-Z opened this issue Jun 16, 2020 · 3 comments
Closed

快速部署maven报错 #981

Lee-Z opened this issue Jun 16, 2020 · 3 comments
Labels
bug Something isn't working

Comments

@Lee-Z
Copy link

Lee-Z commented Jun 16, 2020

描述您遇到的bug
[INFO] Scanning for projects...
Downloading from central: https://repo.maven.apache.org/maven2/org/springframework/boot/spring-boot-starter-parent/2.1.3.RELEASE/spring-boot-starter-parent-2.1.3.RELEASE.pom
[ERROR] [ERROR] Some problems were encountered while processing the POMs:
[WARNING] 'version' contains an expression but should be a constant. @ line 21, column 11
[FATAL] Non-resolvable parent POM for com.webank.cmdb:cmdb:${cmdb.version}: Could not transfer artifact org.springframework.boot:spring-boot-starter-parent:pom:2.1.3.RELEASE from/to central (https://repo.maven.apache.org/maven2): Transfer failed for https://repo.maven.apache.org/maven2/org/springframework/boot/spring-boot-starter-parent/2.1.3.RELEASE/spring-boot-starter-parent-2.1.3.RELEASE.pom and 'parent.relativePath' points at no local POM @ line 6, column 10
@
[ERROR] The build could not read 1 project -> [Help 1]
[ERROR]
[ERROR] The project com.webank.cmdb:cmdb:${cmdb.version} (/app/we-cmdb/pom.xml) has 1 error
[ERROR] Non-resolvable parent POM for com.webank.cmdb:cmdb:${cmdb.version}: Could not transfer artifact org.springframework.boot:spring-boot-starter-parent:pom:2.1.3.RELEASE from/to central (https://repo.maven.apache.org/maven2): Transfer failed for https://repo.maven.apache.org/maven2/org/springframework/boot/spring-boot-starter-parent/2.1.3.RELEASE/spring-boot-starter-parent-2.1.3.RELEASE.pom and 'parent.relativePath' points at no local POM @ line 6, column 10: Connect to repo.maven.apache.org:443 [repo.maven.apache.org/151.101.40.215] failed: Connection timed out (Connection timed out) -> [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

如何重现
拉取代码 mvn clean package -Dmaven.test.skip=true

预期行为

截图

附加

@Lee-Z Lee-Z added the bug Something isn't working label Jun 16, 2020
@Lee-Z
Copy link
Author

Lee-Z commented Jun 16, 2020

已解决,pom maven地址 修改pom.xml 配置文件。 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 修改为 https://maven.apache.org/xsd/maven-4.0.0.xsd"> ,重新mvn 即可

@Lee-Z
Copy link
Author

Lee-Z commented Jun 16, 2020

后面 maven错误。[INFO] --- frontend-maven-plugin:1.6:npm (npm save core-js@3) @ cmdb-ui ---
[INFO] Running 'npm install --save core-js@3' in /data/we-cmdb-master/cmdb-ui
[ERROR] npm ERR! code ETIMEDOUT
[ERROR] npm ERR! errno ETIMEDOUT
[ERROR] npm ERR! network request to https://registry.npmjs.org/core-js failed, reason: connect ETIMEDOUT 104.16.19.35:443
[ERROR] npm ERR! network This is a problem related to network connectivity.
[ERROR] npm ERR! network In most cases you are behind a proxy or have bad network settings.
[ERROR] npm ERR! network
[ERROR] npm ERR! network If you are behind a proxy, please make sure that the
[ERROR] npm ERR! network 'proxy' config is set properly. See: 'npm help config'
[ERROR]
[ERROR] npm ERR! A complete log of this run can be found in:
[ERROR] npm ERR! /root/.npm/_logs/2020-06-16T07_45_31_327Z-debug.log
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary for cmdb 1.4.3-SNAPSHOT:
[INFO]
[INFO] cmdb ............................................... SUCCESS [ 0.621 s]
[INFO] cmdb-ui ............................................ FAILURE [15:06 min]
[INFO] cmdb-core .......................................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 16:18 min
[INFO] Finished at: 2020-06-16T15:45:31+08:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal com.github.eirslett:frontend-maven-plugin:1.6:npm (

@chaneyliu
Copy link

请参看重构的2.x版本(go语言)。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants