打开pom.xml文件,查看错误,如果错误类型为:Failure to transfer.........之类的,则表明你的pom中依赖的jar包没有完全下载. 解决方法:找到你本地的maven仓库,如果你没有修改过maven的本地仓库,则需要在maven中的settings.xml文件中找到默认 的仓库,打开本地仓库所在目录,通过windows文件夹的搜索功能,查找 *.lastUpdated ,然后将找到的文件全部删除. 注:在本地仓库中以.lastUpdated为后缀的文件表明该jar包没…
[错误一:]maven 编译级别过低 [解决办法:] 使用 maven-compiler-plugin 将 maven 编译级别改为 jdk1.6 以上: <!-- java编译插件 --> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <version>2.3.2<…
新建项目依赖下载时网络中断导致资源损坏 删除.m2\repository中后缀名为lastUpdated的文件 cd %userprofile%\.m2\repository for /r %i in (*.lastUpdated) do del %i…
用的是eclipse 1.Window------>Show View------->Maven Repositories(这个选项一般不直接显示,而在others里面) 2.操作完毕后会在 Console同属的状态栏位置出现一个 …
因为maven下载依赖jar包时,特别慢,所以取消了下载过程,再次打开eclipse时,maven的pom.xml文件报错如下: ArtifactTransferException: Failure to transfer xom:xom:jar:1.2.5 from http://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until th…
第一次构建spring,实现简单的注入方式,就发生了beans.xml文件报错,报错信息如下图 org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line 9 in XML document from class path resource [beans.xml] is invalid; nested exception is org.xml.sax.SAXParseException; lineNumb…
第一次用 Spring Starter Project 创建一个Spring应用时,POM 文件报错: Project build error: Non-resolvable parent POM for com.example:demo-1:0.0.1-SNAPSHOT: Failure to transfer org.springframework.boot:spring-boot-starter-parent:pom:1.5.2.RELEASE from https://repo.mave…
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"       xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">       <!…
<project xmlns="http://maven.apache.org/POM/4.0.0"  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd "> <!-- 父项目的坐标.…
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> <modelVersion&…
web.xml is missing and <failOnMissingWebXml> is set to true 是因为项目中没有web.xml文件, 步骤如下:…
原因:该错误原因为maven库中jar包无法更新 解决方法:找到maven库中对应的jar包路径,删除文件夹中的红框中的三个文件…
报错如下: Cannot read lifecycle mapping metadata for artifact org.apache.maven.plugins 解决方法: 出现该错误是因为jar包版本不匹配 可以将~.m2\repository的org.apache.maven.plugins删掉,也可以直接删除掉repository 然后右击项目->Maven->Upadate Project,最后问题解决…
首先我的STS版本时:3.7.3 解决办法:->help->Install New Software -> add->location ->输入: http://repo1.maven.org/maven2/.m2e/connectors/m2eclipse-mavenarchiver/0.17.2/N/LATEST/  ,然后一路 next 安装就行…
这个错误原因是因为项目无法加载到web.xml,所以需要配置web项目的目录.具体解决,配置步骤如下: 1.右键项目属性,配置项目目录  /src/main/webapp,如果没有,新增一条 2.配置完成后,在菜单栏Project中,选择清理项目clean,即可解决.本人亲测可用.…
百度了好几次,说是在本地仓库下少plugin,但是找了之后,发现并没有少呀…
问题: Eclipse中新导入的项目pom.xml文件报错: Plugin execution not covered by lifecycle configuration: org.jacoco:jacoco-maven-plugin:0.6.4.201312101107:prepare-agent (execution: pre-test, phase: process-classes 解决: 步骤一: 在eclipse中打开 Preferences --> Maven --> Lifec…
在今天的学习Maven项目中遇到的这个错误:pom.xml文件报xxx\target\classes\META-INF\MANIFEST.MF (系统找不到指定的路径) 在Maven项目学习中,缓存问题时刻存在 我的解决办法为:选择工程右击--Maven--Update Project 网上也有其他的一些办法:大致三类 1.找到eclipse的project菜单选择clean...选项 2.选中pom.xml右击--Maven clean 3.eclipse工具栏Project--clean 总…
创建maven项目时pom.xml时: 出现如下报错信息: Failure to transfer commons-lang:commons-lang:jar:2.1 from https://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or u…
maven项目pom.xml突然报错,在Java Build Path 中并没有引用的jar包出现在了Maven Dependencies的依赖包中. 这个错误直接导致了pom.xml文件中 <plugin> 标签报错. 怀疑是自己的alibaba 的druid所依赖的包: <dependency> <groupId>com.alibaba</groupId> <artifactId>druid</artifactId> <ve…
在使用别人的项目的时候,导入到eclipse中发现js文件报错,解决办法是关闭eclipse的js校验功能. 三个步骤: 1. 右键点击项目->properties->Validation->Errors/Warming 将Enable Javascript Sematic validation前面的钩子去掉 2.打开.project 文件下面代码去掉 <buildCommand> <name>org.eclipse.wst.jsdt.core.javascrip…
解决:eclipse导入android时工程下没有R文件的问题,以及style.xml文件报错…
解决方式一:   1.查看.m2\repository\org\apache\maven\plugins\maven-resources-plugin\下maven-resources-plugin-2.6.jar文件是否存在,用rar打开是否正常的,如果都正常,则说明jar包没有问题   2.重新执行一遍maven install 即可   解决方式二: 在用Eclipse IDE for Java EE Developers进行maven项目的开发时,报错Could not calculat…
从SVN导出一个Maven项目,pom.xml首行报错: Failure to transfer org.codehaus.plexus:plexus-components:pom:1.1.20 from http://maven.oschina.net/content/groups/public/ was cached in the local repository, resolution will not be reattempted until the update interval of…
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd "> <!-- 父项目的坐标.如…
解决Eclipse+maven中的无故报错 错误: One or more constraints have not been satisfied. Deployment Assembly跟java版本不匹配 解决方法 在pom.xml文件中添加以下代码,即可解决该类型报错 <profile> <id>jdk-1.8</id> 另外一种激活方式 <activation> <activeByDefault>true</activeByDefa…
在使用maven进行项目开发时,我们需要在pom.xml文件中添加自己所需要的jar包.这就要求我们获取jar包的groupId和artifactId. 我们可以在一些maven仓库上搜索我们所需要的jar包,它会根据我们选择的版本给出相应的groupId和artifactId. 免费maven仓库有很多,本人常使用的是:http://www.mvnrepository.com/ 以mysql-connector-java-5.1.24.jar为例,我们现在网站上搜索mysql, 点击Searc…
一.发现问题 建立maven项目后,pom.xml在显示红叉.鼠标放上去,显示Executiondefault-testResources of goalorg.apache.maven.plugins:maven-resources-plugin:2.4.3错误. 二.原因分析 缺少maven-resources-plugin-2.4.3.jar或该文件下载不对,可到repository\org\apache\maven\plugins\maven-resources-plugin\文件夹看看…
pom英文全称: project object model 1.概述 pom.xml文件描述了maven项目的基本信息,比如groupId,artifactId,version等.也可以对maven项目的远程仓库,打包形式,资源依赖关系等进行配置.一个最简单的pom.xml文件至少需要包含四个元素:modelVersion, groupId, artiffactId和version. 在一个pom文件中,如没有显式声明parent标签,则表明该项目默认继承一个原始的pom.xml文件(见参考资料…
问题介绍: 在maven项目中,最关键的就是pom.xml这个文件,这个文件是用来导入maven项目依赖的jar包以及一些插件等. 在这个文件中导入jar包使用的标签是<dependency>,而在这个标签下有一个子标签,叫做<scope>,它是有什么用处呢?下面我就来讲讲它的作用. 内容讲解: <scope>这个标签的主要作用有三个: 1.确定导入的jar包的有效区域.这里说的区域分别为: a)主程序区域: b)测试程序区域: 2.是否参与maven项目的打包: 项目…