添加有<type>bundle</type>标签的依赖时,都会报这个错. 需要在<build/><plugins/>里面追加标签 <plugin> <groupId>org.apache.felix</groupId> <artifactId>maven-bundle-plugin</artifactId> <extensions>true</extensions> <…
在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…
转自https://blog.csdn.net/lovesomnus/article/details/49512777 在maven中央库中查找ojdbc,发现最新的版本是10.2.0.4.0,然后在maven项目中引入ojdbc,发现报错Missing artifact com.oracle:ojdbc14:jar:10.2.0.4.0,如下图1所示: 图1:Missing artifact 发现中央库中明明是有的,但是在项目中却怎么都引入不进来.后来在网上找到解决方案,原来是因为oracle…
新建maven工程时,pom.xml报错:第一行报如下错误:multiple annotations found at this line后添加org.eclipse.m2e相关的plugin配置后,错误消失,完整pom.xml如下: <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schem…
eclipse中创建Maven项目时 pom.xml报错:com.thoughtworks.xstream.io.HierarchicalStreamDriver 解决方案1.在pom文件中加入maven-war-plugin <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-war-plugin</artifactId>…
首先介绍背景,在eclipse中导入一个maven的项目,在我之前的电脑上导入好用,在自己的电脑上导入居然pom报错了Missing artifact junit:junit:jar:4.11,还会有一个什么多行声明的错误,红叉很烦人!我在本地的maven仓库中都看了一遍,jar包都下载了,clean了项目,也重新在项目右键->maven->update project了,pom文件还是报错,文件内容肯定没错.一通烦人,开始很生气,关闭重启IDE导入了很多次,导致了我慌不择路了.有人说是版本不…
1. pom文件中的oracle依赖提示Missing artifact,需要手动下载并导入maven参考 oracle依赖下载地址 (ojdbc6.jar) cd到下载的ojdbc6.jar所在路径,执行命令 mvn install:install-file -DgroupId=com.oracle -DartifactId=ojdbc6 -Dversion=11.2.0.1.0 -Dpackaging=jar -Dfile=ojdbc6.jar mac端一样. 命令和执行结果截图:…
1.eclipse中Maven项目的pom文件报错: 2.解决方法: 直接在pom.xml中加上一个依赖项目: <dependency>      <groupId>jdk.tools</groupId>      <artifactId>jdk.tools</artifactId>     <version>1.7</version>     <scope>system</scope>     …
如题,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…
错误原因: 项目中没有web.xml 解决办法: 在项目中添加web.xml 在pom.xml中添加下面的插件 <build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-war-plugin</artifactId> <version>2.6</version> <confi…
特此声明: json-lib-2.4-jdk15.jar仅它本身不够,必须如下的几个依赖架包都有才能使用!!! 首先 将.json-lib-2.4-jdk15.jar以及其相关的依赖架包的正确配置给出[pom.xml文件]: <dependency> <groupId>net.sf.json-lib</groupId> <artifactId>json-lib</artifactId> <version>2.4</version…
首先是从阿里云上下载了一个样例项目"hbase-demo",然后用eclipse打开,此时eclipse会去下载aliyun.hbase依赖. 等待一段时间后,pom.xml却报错了,第一行左侧出现了红叉. 点击左侧的这个红叉,看见提示的报错信息:"Missing artifact jdk.tools:jdk.tools:jar:1.6". 原始的 pom.xml 文件: <?xml version="1.0" encoding="…
新建的maven项目 报错如下: Cannot detect Web Project version. Please specify version of Web Project through <version> configuration property of war plugin. E.g.: <plugin> <artifactId>maven- war-plugin</artifactId> <configuration> <v…
Multiple annotations found at this line: - Execution default-testResources of goal org.apache.maven.plugins:maven-resources- plugin:2.4.3:testResources failed: Plugin org.apache.maven.plugins:maven-resources-plugin:2.4.3 or one of its dependencies co…
使用集成了maven的Eclipse版本新建maven项目后,配置文件pom.xml会在project以及引用的xsd文件处出现错误(第一.二行报错) 其中一个报错例子: Multiple annotations found at this line:- Plugin execution not covered by lifecycle configuration: org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile (exe…
原文地址:http://blog.csdn.net/u013281331/article/details/40824707 在Eclipse中检出Maven工程,一直报这个错:“Missing artifact jdk.tools:jdk.tools:jar:1.7” 看整个pom.xml文件也不见其他异常. 而tools.jar包是JDK自带的,于是怀疑pom.xml中以来的包隐式依赖tools.jar包,而tools.jar并未在库中, 好比:当前工程依赖A包,而A包在开发打包过程依赖too…
问题: 1.新建项目后会提示一个这样的错 maven-compiler-plugin:3.1:compile(1 errors) maven-compiler-plugin:3.1:testCompile(1 errors) 2.关掉后看pom.xml 3.plugin标签也报错,无法解析 鼠标放红叉上提示 错误:  CoreException: Could not calculate build plan: Plugin org.apache.maven.plugins:maven-compi…
创建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建了一个web工程,总是在pom.xml头的地方报错: 大概是: Original error: Could not transfer artifact org.hamcrest:hamcrest-core:jar:1.1 from/to central (http://repo.maven.apache.org/maven2): No response received after 60000. 试了很多方法 1,删除C:\Users\zenobia\.m2\repository…
引入项目过程中,idea引入磁盘的某个的maven项目 这里以springboot项目以例子,发现pom.xml 的依赖大面积爆红,springboot的版本依赖也报错了,然后发现下面有进度条在下载,下载了非常久还没有下载成功 对于springboot项目版本依赖报错, 解决方式1:更换一个spirngboot版本: 解决方式2:等待继续下载该版本的spirngboot依赖(尤其是第一次使用该版本的springboot依赖会下载比较久): 建议:平时建立springboot项目,springbo…
<dependency> <groupId>net.sf.json-lib</groupId> <artifactId>json-lib</artifactId> <version>2.4</version> 报错误:Missing artifact net.sf.json-lib:json-lib:jar:2.4:compile 原因:json-lib是需要区分jdk版本的,pom.xml中的配置应加上标签classif…
1:pom.xml代码 <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>build-helper-maven-plugin</artifactId> <version>1.8</version> <executions> <execution> <id>add-resource</id> <phase&…
一.关于Cannot change version of project facet Dynamic web module to 2.5 具体查看博客:http://blog.csdn.net/steveguoshao/article/details/38414145 但是按照以上博文进行修改的时候需要根据自己本地jdk的版本来改. 如果你的本地是JDK1.7,就不要按照博文中写的把文件中的1.5改成1.6,而要把1.5改成1.7 二.Missing artifact****和ArtifactD…
1.org.apache.maven.archiver.MavenArchiver.getManifest报错 pom.xml第一行报错,如图: 解决办法: 第一步: help ->Install New Software -> add ->https://otto.takari.io/content/sites/m2e.extras/m2eclipse-mavenarchiver/0.17.2/N/LATEST 或者http://repo1.maven.org/maven2/.m2e/…
在eclipse中搭建maven project时,在不使用模板的情况下,搭建的web项目会报错. 操作步骤如下: 1.勾选Create a simple project ,因为如果不勾选系统会提供模板进行创建maven项目. 2.点击Next,进入如下页面: 3.点击Finish.创建的maven项目如下: 4.pom.xml出错!!!这是因为我们创建的是web项目,以往创建web项目时,在webapp目录下都会有WEB-INF/web.xml文件和WEB-INF/lib文件.所以我们只要在w…
今天使用idea新建的springboot工程pom.xml文件报错如下 1. 问题 'settings.xml' has syntax errors less... (Ctrl+F1) Inspection info: Inspects a Maven model for resolution problems. Parent 'org.springframework.boot:spring-boot-starter-parent:2.1.7.RELEASE' has problems les…
1. 报错信息 2. 解决方法 在pom.xml文件中加入maven版本修改 <maven-jar-plugin.version>3.1.1</maven-jar-plugin.version> 3. 右键项目-->Update Project... 4. 问题解决…
摘要:使用idea,两次在maven上浪费时间,第一次不知道怎么就解决了,第二次记录一下解决办法 参考博客地址: https://blog.csdn.net/u013129944/article/details/53870373 https://blog.csdn.net/lishaoran369/article/details/53994601 情况说明:界面如下图,pom.xml中存在多个jar,报错,依赖没有找到,检查maven模型以解决问题 即报错:dependencies not fi…
Maven项目报 Failure to transfer org.apache.maven.plugins:maven-*-plugin:pom 原因是maven的plugin并未下载到本地 或者本地下载了,但原有文件被部分覆盖或有新文件添加进来,例如maven-*-plugin-*.pom.lastUpdate添加进来了 打开maven的本地库...\repository\org\apache\maven\plugins\maven-*-plugin\会发现:里面有一个maven-*-plug…
这里之前有个红色叉叉 改完了pom.xml文件之后需要:右键工程-MavenMyEclipse-Update Project 刷新Maven web 工程,即可解决此问题…