我有一些問題需要正確配置我的日食與Maven的工作。插件org.apache.maven.plugins:Maven的編譯器插件或它的一個依賴無法解析
我創建一個新項目,這個人是正確地構建在命令行(mvn install
)行家,但在Eclipse中我得到這個錯誤:
CoreException: Could not get the value for parameter compilerId for plugin execution default-compile: PluginResolutionException: Plugin org.apache.maven.plugins:maven-compiler-plugin:3.1 or one of its dependencies could not be resolved: Failed to collect dependencies for org.apache.maven.plugins:maven-compiler-plugin:jar:3.1(): ArtifactDescriptorException: Failed to read artifact descriptor for org.apache.maven:maven-settings:jar:2.2.1: ArtifactResolutionException: Failure to transfer org.apache.maven:maven-settings:pom:2.2.1 from http://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 org.apache.maven:maven-settings:pom:2.2.1 from/to central : NullPointerException pom.xml /test line 9 Maven Project Build Lifecycle Mapping Problem
這裏是我的settings.xml的conf:
<proxy>
<active>true</active>
<protocol>http</protocol>
<username>myuser</username>
<password>$mymdp</password>
<host>myhost</host>
<port>8080</port>
<nonProxyHosts>some.host.com</nonProxyHosts>
</proxy>
....
<repository>
<id>central</id>
<name>central repo m2</name>
<url>http://central.maven.org/maven2</url>
</repository>
我選擇了正確的Maven安裝(以偏好 - >的Maven - >安裝)
我還直接在正確的settings.xml我的用戶設置(設置 - > Maven的 - >用戶設置)
但我仍然在Eclipse中得到這個錯誤,一切都與Maven命令行順利。你有沒有想法?
我有同樣的問題。嘗試幾乎所有提到的在stackoverflow中,仍然無法解決問題。你能幫忙嗎?我得到這個錯誤:「無法計算構建計劃:插件org.apache.maven.plugins:maven-resources-plugin:2.6或其依賴項之一無法解析:無法讀取org.apache.maven的工件描述符.plugins:maven-resources-plugin:jar:2.6「,在某處我也看到」無法識別的SSL消息,明文連接?「 –