Error:Cannot read lifecycle mapping metadata for artifact org.apache.maven.plugins:mav ... invalid END header (bad central directory offset) 装了win10 pro后,按照我平时在win7上的安装步骤等,正常应该能在Eclipse上创建maven的Java Web项目,不过我就导入了自己原来的项目也不行,出现上面的错误,接着就直接创建个新的项目也一样出现上面…
1.导致问题原因:从装系统,从win7改到win10 由于重装了系统,打开eclipse时,maven验证会出错,点击pom文件,会发现有红色的Cannot read lifecycle mapping metadata for artifact org.apache.maven.plugins:mav.点击它时是空白.... 2.追踪错误原因 alt+f5,update所有,会提示错误信息,原来是C:\Users\Administrator\.m2\repository这里面找不到啥啥啥引起的…
Cannot read lifecycle mapping metadata for artifact org.apache.maven.plugins:maven-compiler-plugin:maven-compiler-plugin:3.5.1:runtime Cause: error in opening zip file 问题: 创建后pom报错: 只是POM报错,其他都没有报错 解决办法: 问题定位是本地Repository: 找到org.apache.maven.plugins/…
Cannot read lifecycle mapping metadata for artifact org.apache.maven.plugins:maven-war-plugin:maven-plugin:2.1.1:runtime Cause: error in opening zip file 创建后pom报错: 查看具体的报错信息,点上去显示出来是空的 然后右键项目>maven>update project>勾选fouce后 出现的错误有提示,如下:…
今天换了个maven仓库,结果新建maven工程的时候,忽然报错: Cannot read lifecycle mapping metadata for artifact org.apache.maven.plugins... 在网上面找了很多种解决方案,都无济于事,后来在stackoverflow上看到一个靠谱的: 直接在pom.xml中增添如下代码即可: <build> <plugins> <plugin> <groupId>org.apache.mav…
出现该错误是因为jar包版本不匹配,比如linux上的jar包导入到windows上了.可以将.m2\repository的org.apache.maven.plugins删掉然后让maven重新下载试试. .m2文件夹的位置可以在eclipse的jar包中查到,打开maven dependencies即可看到jar包所在的.m2文件夹位置.…
今天在学习maven框架的时候出现Could not transfer artifact org.apache.maven.plugins问题,后面根据很多博客综合总结,终于解决了,现在分享一下我的方法 1.首先保证你的settings配置没问题 这里打开File - settings进行路径配置,选择自己的maven路径进行设置. 2.maven中的settings.xml文件中的镜像资源配置,代码如下 <mirror> <id>alimaven</id> <m…
maven编译工程报错 [ERROR] Failed to execute goal net.alchim31.maven:scala-maven-plugin:3.2.2:add-source (scala-compile-first) on project trade: Execution scala-compile-first of goal net.alchim31.maven:scala-maven-plugin:3.2.2:add-source failed: Plugin net.…
问题: maven安装完成,环境变量配置没有问题,cmd窗口运行mvn compile的时候报错如下: Plugin org.apache.maven.plugins:maven-resources-plugin:2.6 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-resources-plugin:ja…
错误: Could not resolve archetype org.apache.maven.archetypes:maven-archetype-quickstart:1.1 from any of the configured repositories.Could not resolve artifact org.apache.maven.archetypes:maven-archetype-quickstart:pom:1.1 解决思路:在本地库中装载maven-archetype-q…
在用Eclipse IDE for Java EE Developers进行maven项目的开发时,报错Could not calculate build plan: Plugin org.apache.maven.plugins:maven-resources-plugin:2.6 or one of:解决方法: 1.查看windows -> Preferences -> maven->user Settings 中的user settings目录: 的settings.xml文件中.…
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-archetype-plugin:2 .3:create (default-cli) on project standalone-pom: Unable to parse configuration of mojo org.apache.maven.plugins:maven-archetype-plugin:2.3:create for paramete r #: Abs…
Maven install失败 Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on project autotest_fchtgl: Compilation failure[ERROR] No compiler is provided in this environment. Perhaps you are running on a JRE r…
今天用maven在命令行打包项目的时候出现错误: Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.12.4:test (default-test) on project xxx: There are test failures. 但是项目用maven编译没问题,之前测试也都过了.从上面描述可以确定是单元测试部分有问题,然后仔细研究了错误内容,发现是因为我定义了一个测试基类,里面没有任何测试方法,抛出了…
报错内容: Failed to execute goal org.apache.maven.plugins:maven-javadoc-plugin:2.10.2:jar (attach-javadocs) on project SLXFWZ: MavenReportException: Error while creating archive: Exit code: 1 - ����: δ֪��ö�ٳ��� FieldFill.INSERT ԭ��: �Ҳ���com.baomidou.myb…
最近换了台电脑,所以重新在IEDA上搭建Spring Boot环境,遇到一个问题,网上查了很久,又实践了一通,终于解决,这里把步骤详细记录下来. 问题描述:创建IDEA的Maven项目后,出现 Maven插件无法下载的问题.…
对Pom文件进行配置(亲自尝试,已成功解决) <build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-surefire-plugin</artifactId> <version>2.4.2</version> <!--这个版本根据自己--> <configura…
今天碰到一个奇怪的问题,就是我在eclipse中使用maven命令:clean package 命令打完包之后,通过FlashFXP将jar包上传到Linux服务器后,由于其他原因,我想要修改下程序重新打包,问题来了,重新打包的时候就报错了,并且我的那个存放jar包的target文件夹也被锁住了,直接打不开,会提示没有权限,下面放上截图: 1.首先我想通过给这个文件夹开放权限来解决问题,虽然我也不知道为什么突然这个文件夹就没有权限了,但是照着网络教程也没搞定权限,放弃. 2.尝试重启eclisp…
Windows-Preferences 在搜索框输入maven,点击下面的Archetypes--->Add Remote Catalog... 对应输入 http://repo1.maven.org/maven2/archetype-catalog.xml maven_catalog 然后点击OK 再次创建maven项目,在select an Archetype 的 Catalog下面选择刚刚添加的maven_catalog,等待右下角的进度条加载,同时中间的框框会有内容 选择 maven-a…
如题,maven项目eclipse提示pom.ml有错,提示信息就是org.apache.maven.plugin.war.WarMojo. 然后执行 maven install 出现如下错误提示 [INFO] --- maven-war-plugin:2.2:war (default-war) @ ams-web --- [WARNING] Error injecting: org.apache.maven.plugin.war.WarMojo java.lang.TypeNotPresent…
maven在build构建时,加载资源文件时需要配置资源文件插件: 1,在pom.xml文件中加入 <build> <finalName>${project.build.target.file.name}</finalName> <directory>${basedir}/target</directory>  <sourceDirectory>${basedir}/src/main/java</sourceDirectory&…
报错信息如下: Could not resolve archetype org.apache.maven.archetypes:maven-archetype-quickstart:RELEASE from any of the configured repositories. Could not resolve artifact org.apache.maven.archetypes:maven-archetype-quickstart:pom:RELEASE Failed to resolv…
问题描述: 才刚新建的工程,什么都没做,就显示pom.xml有问题,在第一行的标签上 有如下错误: 点击详情: Failure to transfer org.apache.maven:maven-parent:pom:20 from http://repo.maven.apache.org/maven2was cached in the local repository, resolution will not be reattempted until the update interval …
郁闷了两天,创建maven项目时,eclipse报错:Could not resolve artifact org.apache.maven.archetypes:maven-archetype-webapp,详细信息如下图: 此类报错产生的原因分以下两种: 1.Catalog 相关类型缺失:     2.ide下载相关jar包时未能完整下载. 针对以上两种原因的解决方案如下:     1.配置Catalog 在eclipse中,点击window-->preferences-->maven--…
pom文件提示信息: Failure to transfer org.apache.maven.plugins:maven-resources-plugin:pom:2.4.3 from http://repo1.maven.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or upd…
Maven报错:Failure to transfer org.apache.maven 在创建Maven项目时,经常会在pom.xml的第一行处报错,提示信息如下: Failure to transfer org.apache.maven:maven-surefire-plugin:jar:2.5 from http:// repo.maven.apache.org/maven2 was cached in the local repository, resolution will not b…
mvn package的时候报如下错误: Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.5:test 亲测解决方法如下: 在pom文件中添加 <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-surefire-plugin</artifactId> <v…
详细报错: Failure to transfer org.apache.maven.plugins:maven-resources-plugin:pom:2.6 from http://10.74.156.84:8085/nexus/content/groups/public/ was cached in the local repository, resolution will not be reattempted until the update interval of U32_PUBLI…
在maven本地库中找到对应的地址:org.apache.maven.doxia找到对应的文件:doxia-logging-api发现文件中包含有lastUpdated字样,表示该文件并未下载完成,然后将整个2.6版本删除,项目上右键>Maven>Update project 即可. <Failure to find org.apache.maven.doxia:doxia-logging-api:jar:1.1 in http://repo.maven.apache.org/mav&g…
使用eclipse新建maven项目,按下图所示选择后,报错 报错截图 报错详细信息 Could not resolve archetype org.apache.maven.archetypes:maven-archetype-quickstart:1.1 from any of the configured repositories.Could not resolve artifact org.apache.maven.archetypes:maven-archetype-quickstar…