在向Eclipse 导入一个 NB生成的项目时子项目 pom 文件报错
CoreException: Could not get the value for parameter compilerId for plugin execution default-compile: PluginResolutionException: Plugin org.apache.maven.plugins:maven-compiler-plugin:3.7.0 or one of its dependencies could not be resolved: The following artifacts could not be resolved: org.apache.maven:maven-plugin-api:jar:3.0, org.apache.maven:maven-model:jar:3.0, org.sonatype.sisu:sisu-inject-plexus:jar:1.4.2, org.apache.maven:maven-artifact:jar:3.0, org.codehaus.plexus:plexus-utils:jar:2.0.4, org.apache.maven:maven-core:jar:3.0, org.apache.maven.shared:maven-shared-utils:jar:3.1.0, org.codehaus.plexus:plexus-component-annotations:jar:1.6, org.codehaus.plexus:plexus-java:jar:0.9.2, org.codehaus.plexus:plexus-compiler-api:jar:2.8.2, org.codehaus.plexus:plexus-compiler-manager:jar:2.8.2, org.codehaus.plexus:plexus-compiler-javac:jar:2.8.2: Failure to transfer org.apache.maven:maven-plugin-api:jar:3.0 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 org.apache.maven:maven-plugin-api:jar:3.0 from/to central (https://repo.maven.apache.org/maven2): The operation was cancelled.
当前情况是,一开始出现这个问题,看某帖子中说并更新了 java SDK ,现在版本是 java 1.8 171并且也配置好了项目和Eclipse 的SDK以及环境变量
但是此问题还存在
报错位置为子项目 pom.xml parent 标签
父项目中写法
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.7.0</version>
<configuration>
<source>1.8</source>
<target>1.8</target>
<compilerArgs>
<arg>-parameters</arg>
</compilerArgs>
<useIncrementalCompilation>false</useIncrementalCompilation>
</configuration>
</plugin>
同时出现的错误还有
Plugin execution not covered by lifecycle configuration
求大神解决方案