maven configuration problem unknown

eclipse导入maven项目以后, 报错maven configuration problem unknown

查了一下大概是没有指明maven-jar-plugin的问题,有人说是在在pom.xml配置中指明可以解决

<properties>
    <java.version>11</java.version>
    <maven-jar-plugin.version>3.1.1</maven-jar-plugin.version>
</properties>

但是也有的不行。所以再往下找。发现有人说这是eclipse的一个Bug

相关链接

https://bugs.eclipse.org/bugs/show_bug.cgi?id=547340

解决方案如下:

Eclipse > Help > Install New Software > Work with= https://download.eclipse.org/m2e-wtp/signed/mavenarchiver/0.17.4/, <Enter>, m2e extensions= Y > Next...

具体重现过程

Eclipse error in 'Problems' view

1. Go to https://start.spring.io and generate a project .zip
2. Unzip the project
3. Go to Eclipse and File -> Import -> Maven -> Existing Maven Project
4. Point to the unzipped location and import the project

You will see an error on your project, with 'Maven Configuration Problem' on the pom.xml file.

Spring Boot 2.1.5.RELEASE updated the maven-jar-plugin from 3.1.1 to 3.1.2. Downgrading maven-jar-plugin to 3.1.1 resolves the issue.

Attached is the image that illustrates the issue in the IDE.

遇到问题如何解决。

通过这个问题,我在想,其它人如果遇到这种问题的时候 ,都是怎么解决的。所以我找了一下来源。发现是在eclipse的论坛上来的。是eclipse本身的一个bug ,所以有问题的时候 先去官网提供的途径查询下,如果没有,在各种搜索引擎。说不定是eclipse发布的bug呢,可以最后在eclipse的论坛 上提一个ticket .

官网bug地址。

https://bugs.eclipse.org/bugs/

如果感兴趣,要以添加rss的订阅。 以后可以及时的了解新的bug

最新7天的订阅如下:

https://bugs.eclipse.org/bugs/buglist.cgi?chfield=%5BBug%20creation%5D&chfieldfrom=7d&ctype=atom&title=Bugs%20reported%20in%20the%20last%207%20days

也有其它类似的错误

如果右击,quick fix 是可以选的,可以选择quick fix 去修复。


本文由 hcb 创作,采用 知识共享署名 3.0,可自由转载、引用,但需署名作者且注明文章出处。

还不快抢沙发

添加新评论