我正在尝试使用Eclipse中的Spring工具套件构建Maven项目,但在安装Maven时遇到错误。
首先,我执行了Maven Clean,它工作正常,但当我执行maven安装时,出现以下错误:
Failed to execute goal org.codehaus.mojo:build-helper-maven-plugin:1.9.1:regex-properties
(set-properties-with-regex) on project qad-webshell-pom:
Execution set-properties-with-regex of goal
org.codehaus.mojo:build-helper-maven-plugin:1.9.1:regex-properties failed:
Plugin org.codehaus.mojo:build-helper-maven-plugin:1.9.1 or
one of its dependencies could not be resolved:
Failed to collect dependencies at org.codehaus.mojo:build-helper-maven-plugin:jar:1.9.1 ->
org.beanshell:bsh:jar:2.0b4: Failed to read artifact descriptor
for org.beanshell:bsh:jar:2.0b4:
Could not transfer artifact org.beanshell:bsh:pom:2.0b4 from/to
central (http://repo1.maven.org/maven2):
Cannot access http://repo1.maven.org/maven2 with type default
using the available connector factories:
BasicRepositoryConnectorFactory:
Cannot access http://repo1.maven.org/maven2 using the registered transporter
factories: WagonTransporterFactory: java.util.NoSuchElementException
[ERROR] role: org.apache.maven.wagon.Wagon
[ERROR] roleHint: http'发布于 2019-05-14 17:58:44
我也有同样的问题。
我已经重新启动了Eclipse,然后转到出现错误的特定于项目的maven模块,右键单击> Maven > Update project ...
在特定模块上进行更新后,Maven安装工作正常,没有任何错误。
https://stackoverflow.com/questions/52879856
复制相似问题