Non-resolvable import POM: 传输失败
Non-resolvable import POM: Failure to transfer
检查了一个javamaven项目后,我的pom一直有一些错误。 maven clean 和 maven install 工作得很好,但是 maven 更新项目或下载 sources/java doc 每次都会给我以下错误:
Could not download sources or javadoc
Could not read maven project
Some problems were encountered while processing the POMs:
[ERROR] Non-resolvable import POM: Failure to transfer io.github.jhipster:jhipster-dependencies:pom:3.0.1 from https://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced. Original error: Could not transfer artifact io.github.jhipster:jhipster-dependencies:pom:3.0.1 from/to central (https://repo.maven.apache.org/maven2): connect timed out @ line 106, column 16
[ERROR] 'dependencies.dependency.version' for io.github.jhipster:jhipster-framework:jar is missing. @ line 118, column 15
[ERROR] 'dependencies.dependency.version' for org.springframework.boot:spring-boot-starter-cache:jar is missing. @ line 123, column 15
[ERROR] 'dependencies.dependency.version' for com.fasterxml.jackson.datatype:jackson-datatype-hibernate5:jar is missing. @ line 127, column 15
[ERROR] 'dependencies.dependency.version' for com.fasterxml.jackson.datatype:jackson-datatype-hppc:jar is missing. @ line 131, column 15
[ERROR] 'dependencies.dependency.version' for com.fasterxml.jackson.datatype:jackson-datatype-jsr310:jar is missing. @ line 135, column 15
[ERROR] 'dependencies.dependency.version' for com.fasterxml.jackson.module:jackson-module-afterburner:jar is missing. @ line 139, column 15
[ERROR] 'dependencies.dependency.version' for com.h2database:h2:jar is missing. @ line 867, column 17
[ERROR] 'dependencies.dependency.version' for com.jayway.jsonpath:json-path:jar is missing. @ line 148, column 15
[ERROR] 'dependencies.dependency.version' for io.springfox:springfox-swagger2:jar is missing. @ line 154, column 15
我在公司代理后面,我已经在 Eclipse 中配置了它。
我过去从来没有与 Maven 有任何关系,每次都只是检查对我有用。
该项目是用 jHipster 设置的。
希望有人能帮助我。
提前致谢。
对于所有想知道我是如何解决这个问题的人:
首先就像已经提到的khmarbaise,这是一个代理问题。它已经在eclipse中配置,因此我假设maven会自动使用eclipse中已经设置的代理配置。
解决方案是 create/modify settings.xml 并通过以下 eclipse 配置步骤进行设置:
Window -> Preferences -> Maven -> User Settings,然后在User Settings Input.settings.xml配置路径。
我编辑了我的 settings.xml 并在其中配置了我的公司代理。
我有这个问题的绝妙解决方案,让我们转到您的项目,右键单击项目转到 Maven 更新选项卡并强制更新您的项目,这需要一些时间然后您的项目工作得很好
只要点击update maven就可以了。
脚步:
重启STS/Eclipse->右击项目->点击Maven->点击Update Maven
检查了一个javamaven项目后,我的pom一直有一些错误。 maven clean 和 maven install 工作得很好,但是 maven 更新项目或下载 sources/java doc 每次都会给我以下错误:
Could not download sources or javadoc
Could not read maven project
Some problems were encountered while processing the POMs:
[ERROR] Non-resolvable import POM: Failure to transfer io.github.jhipster:jhipster-dependencies:pom:3.0.1 from https://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced. Original error: Could not transfer artifact io.github.jhipster:jhipster-dependencies:pom:3.0.1 from/to central (https://repo.maven.apache.org/maven2): connect timed out @ line 106, column 16
[ERROR] 'dependencies.dependency.version' for io.github.jhipster:jhipster-framework:jar is missing. @ line 118, column 15
[ERROR] 'dependencies.dependency.version' for org.springframework.boot:spring-boot-starter-cache:jar is missing. @ line 123, column 15
[ERROR] 'dependencies.dependency.version' for com.fasterxml.jackson.datatype:jackson-datatype-hibernate5:jar is missing. @ line 127, column 15
[ERROR] 'dependencies.dependency.version' for com.fasterxml.jackson.datatype:jackson-datatype-hppc:jar is missing. @ line 131, column 15
[ERROR] 'dependencies.dependency.version' for com.fasterxml.jackson.datatype:jackson-datatype-jsr310:jar is missing. @ line 135, column 15
[ERROR] 'dependencies.dependency.version' for com.fasterxml.jackson.module:jackson-module-afterburner:jar is missing. @ line 139, column 15
[ERROR] 'dependencies.dependency.version' for com.h2database:h2:jar is missing. @ line 867, column 17
[ERROR] 'dependencies.dependency.version' for com.jayway.jsonpath:json-path:jar is missing. @ line 148, column 15
[ERROR] 'dependencies.dependency.version' for io.springfox:springfox-swagger2:jar is missing. @ line 154, column 15
我在公司代理后面,我已经在 Eclipse 中配置了它。
我过去从来没有与 Maven 有任何关系,每次都只是检查对我有用。 该项目是用 jHipster 设置的。
希望有人能帮助我。
提前致谢。
对于所有想知道我是如何解决这个问题的人:
首先就像已经提到的khmarbaise,这是一个代理问题。它已经在eclipse中配置,因此我假设maven会自动使用eclipse中已经设置的代理配置。
解决方案是 create/modify settings.xml 并通过以下 eclipse 配置步骤进行设置:
Window -> Preferences -> Maven -> User Settings,然后在User Settings Input.settings.xml配置路径。
我编辑了我的 settings.xml 并在其中配置了我的公司代理。
我有这个问题的绝妙解决方案,让我们转到您的项目,右键单击项目转到 Maven 更新选项卡并强制更新您的项目,这需要一些时间然后您的项目工作得很好
只要点击update maven就可以了。 脚步: 重启STS/Eclipse->右击项目->点击Maven->点击Update Maven