解决eclipse导入maven项目报错:No marketplace entries found to handle atlassian-spring-scanner-maven-plugin:1.2.13:atlassian-spring-scanner in Eclipse. Please see Help for more information.
原因:报错的插件的生命周期不被eclipse识别,通过以下步骤添加 lifecycle-Mapping-Metadata.xml文件,问题得以解决。
第一种方法
打开:Window→Preferences→Maven→Lifecycle Mapping,点击Open workspace lifecycle mappings metadata按钮,在其中添加内容
<?xml version="1.0" encoding="UTF-8"?>
<lifecycleMappingMetadata>
<pluginExecutions>
<pluginExecution>
<pluginExecutionFilter>
<groupId>com.atlassian.maven.plugins</groupId>
<artifactId>jira-maven-plugin</artifactId>
<goals>
<goal>filter-test-plugin-descriptor</goal>
<goal>filter-plugin-descriptor</goal>
<goal>compress-resources</goal>
<goal>generate-rest-docs</goal>
</goals>
<versionRange>[8.0.0,)</versionRange>
</pluginExecutionFilter>
<action>
<ignore />
</action>
</pluginExecution>
<pluginExecution>
<pluginExecutionFilter>
<groupId>com.atlassian.plugin</groupId>
<artifactId>atlassian-spring-scanner-maven-plugin</artifactId>
<goals>
<goal>atlassian-spring-scanner</goal>
</goals>
<versionRange>[1.2.13,)</versionRange>
</pluginExecutionFilter>
<action>
<ignore />
</action>
</pluginExecution>
</pluginExecutions>
</lifecycleMappingMetadata>
其中<groupId>、<artifactId>、<versionRange>以及<goal>需要与报错信息内容相对应的,需要注意的是同一个plugin报错信息有几条,对应填写几个<goal>,楼主正是因为不够细心,一开始只写了一个,导致一直没有成功解决。这种方法在使用时会忽略掉你报错的plugin,有可能导致你的一些功能不可用。
第二种方法:
在你的pom 文件的 <build>标签下方添加以下内容:
<defaultGoal\>compile</defaultGoal\>
就像这样:
<build\>
<defaultGoal\>compile</defaultGoal\>
<plugins\>
....................
</plugins\>
</build\>
这个标签会默认编译你的plugin。
第三种方法:
直接maven build,如果build成功,说明此处的报错并不影响项目的运行。直接忽略报错即可。
博客主要讲述Eclipse导入Maven项目时,出现插件报错‘No marketplace entries found...’的解决办法。原因是插件生命周期不被Eclipse识别,提供三种解决方法,包括添加lifecycle - Mapping - Metadata.xml文件、在pom文件添加内容、直接maven build。

349

被折叠的 条评论
为什么被折叠?



