`
starbhhc
  • 浏览: 634511 次
  • 性别: Icon_minigender_2
  • 来自: 深圳
社区版块
存档分类
最新评论

maven项目第一行报错:org.apache.maven.archiver.MavenArchiver.getManifest(org.apache.mave

    博客分类:
  • java
阅读更多

maven项目第一行报错:org.apache.maven.archiver.MavenArchiver.getManifest(org.apache.maven.project.MavenProject, org.apache.maven.archiver.MavenArchiveConfiguration)

1、
From Help > Install New Software.., add a new repository (via the Add.. option), pointing to the following URL:

https://repo1.maven.org/maven2/.m2e/connectors/m2eclipse-mavenarchiver/0.17.2/N/LATEST/

https://otto.takari.io/content/sites/m2e.extras/m2eclipse-mavenarchiver/0.17.2/N/LATEST/

Then follow the update wizard as usual. Eclipse would then require a restart. Afterwards, a further Update Project.. on the concerned Maven project would remove any error and your Maven build could then enjoy the benefit of the latest maven-jar-plugin version.

The reason for this issue is that from version 3.0.0 on, the concerned component, the maven-archiver and the related plexus-archiver has been upgraded to newer versions, breaking internal usages (via reflections) of the m2e integration in Eclipse. The only solution is then to properly update Eclipse, as described above.
Also note: while Eclipse would initially report errors, the Maven build (e.g. from command line) would keep on working perfectly, this issue is only related to the Eclipse-Maven integration, that is, to the IDE.

2、
I had the same problem with a spring boot project. the solution was to downgrade the jar maven-jar-plugin from 3.2 to 2.6 . i had just to add this to the project pom:
<properties>       
    <maven-jar-plugin.version>2.6</maven-jar-plugin.version>
</properties>


分享到:
评论

相关推荐

    新建Maven项目时出错:org.apache.maven.archiver.MavenArchiver.getManifest

    eclipse新建maven项目时,pom.xml文件第一行报错: org.apache.maven.archiver.MavenArchiver.getManifest(org.apache.maven.project.MavenProject, org.apache.maven.archiver.MavenArchiveConfiguration) 解决...

    mavenarchiver.rar

    org.apache.maven.archiver.MavenArchiver.getManifest(org.apache.maven.project.MavenProject, org.apache.maven.archiver.MavenArchiveConfiguration) 网上更新eclipse插件的网址都失效了找了好久才有个离线版 ...

    eclipse-mavenarchiver.rar

    eclipse 解决POM文件错误:org.apache.maven.archiver.MavenArchiver.getManifest(org.apache.maven.project.MavenProject, org.apache.maven.archiver.MavenArchiveConfiguration)

    m2eclipse-mavenarchiver

    org.apache.maven.archiver.MavenArchiver.getManifest(org.apache.maven.project.MavenProject, org.apache.maven.archiver.MavenArchiveConfiguration)

    阿里云Maven仓库镜像.docx

    java idea 2019.2.4版本搭设ssh、ssm、mvc、spring、strus等框架采用maven构建时仓库的本地设置和国内公开仓库链接

    plexus相关jar包

    Failure to transfer org.codehaus.plexus:plexus-archiver:pom:1.0 from http://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update ...

    localHomeDataV2.archiver

    localHomeDataV2.archiver

    mavenarchiver.zip

    pom.xml文件报MavenArchiver错误 org.apache.maven.archiver.MavenArchiver.getManifest(org.apache.maven.project.MavenProject, org.apache.maven.archiver.MavenArchiveConfiguration) 离线包,直接用eclipse的...

    maven jar包

    maven-archiver-2.2.jar maven-artifact-3.2.1-sources.jar maven-assembly-plugin-2.2-beta-5.jar maven-bundle-plugin-1.0.0.jar maven-clean-plugin-2.4.1.jar maven-clean-plugin-2.5.jar maven-common-artifact...

    MavenProject

    MavenProject

    maverarchiver.zip

    离线解决org.apache.maven.archiver.MavenArchiver.getManifest错误,解压后,用eclipse的install new software本地安装,后会要求重启应用,就不会报错了。

    maven-archiver-2.4.2.jar.zip

    java jar包,亲测试可用 ...把一个JAR文件添加到系统的classpath环境变量之后,java通常会把这个JAR文件当做一个路径来处理。通常使用jar命令来压缩,可以把一个或多个路径全部压缩成一个JAR文件。

    maven-archiver-3.5.2.jar

    maven-archiver-3.5.2.jar

    maven-archiver-2.4.1.jar.zip

    java jar包,亲测试可用 ...把一个JAR文件添加到系统的classpath环境变量之后,java通常会把这个JAR文件当做一个路径来处理。通常使用jar命令来压缩,可以把一个或多个路径全部压缩成一个JAR文件。

    maven-archiver-2.5.jar.zip

    java jar包,亲测试可用 ...把一个JAR文件添加到系统的classpath环境变量之后,java通常会把这个JAR文件当做一个路径来处理。通常使用jar命令来压缩,可以把一个或多个路径全部压缩成一个JAR文件。

    rh-maven35-maven-archiver-3.1.1-2.2.el7.noarch.rpm

    官方离线安装包,测试可用。使用rpm -ivh [rpm完整包名] 进行安装

    rh-maven33-maven-archiver-2.5-9.12.el7.noarch.rpm

    官方离线安装包,测试可用。使用rpm -ivh [rpm完整包名] 进行安装

    maven-archiver-javadoc-2.5-9.el7.noarch.rpm

    官方离线安装包,测试可用。请使用rpm -ivh [rpm完整包名] 进行安装

    maven-archiver-2.5-9.el7.noarch.rpm

    官方离线安装包,测试可用。请使用rpm -ivh [rpm完整包名] 进行安装

    dubbo、dubbox编译所需jar包

    plexus-container-default-1.0-alpha-9-stable-1.jar plexus-container-default-1.0-alpha-9.jar plexus-i18n-1.0-beta-7.jar plexus-interactivity-api-1.0-alpha-4.jar plexus-interpolation-1.0.jar plexus-io-...

Global site tag (gtag.js) - Google Analytics