解决eclipse导入maven项目报错:No marketplace entries found to handle atlassian-spring-scanner-maven-plugin:1.

解决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成功,说明此处的报错并不影响项目的运行。直接忽略报错即可。

  • 1
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值