Maven异常:Could not find artifact

用Maven build("clean tomcat7:run" )  Maven聚合工程时,出现了一下问题:

[INFO] Scanning for projects...
[ERROR] [ERROR] Some problems were encountered while processing the POMs:
[FATAL] Non-resolvable parent POM for com.easybuy:easybuy-manager:0.0.1-SNAPSHOT: Could not find artifact com.easybuy:easybuy-parent:pom:0.0.1-SNAPSHOT and ‘parent.relativePath‘ points at wrong local POM @ line 3, column 11
 @
[ERROR] The build could not read 1 project -> [Help 1]
[ERROR]
[ERROR]   The project com.easybuy:easybuy-manager:0.0.1-SNAPSHOT (D:\Users\10856214\workspace-template\easybuy-manager\pom.xml) has 1 error
[ERROR]     Non-resolvable parent POM for com.easybuy:easybuy-manager:0.0.1-SNAPSHOT: Could not find artifact com.easybuy:easybuy-parent:pom:0.0.1-SNAPSHOT and ‘parent.relativePath‘ points at wrong local POM @ line 3, column 11 -> [Help 2]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildingException
[ERROR] [Help 2] http://cwiki.apache.org/confluence/display/MAVEN/UnresolvableModelException

  

注意查看这句:

Could not find artifact com.easybuy:easybuy-parent:pom:0.0.1-SNAPSHOT and ‘parent.relativePath‘ points at wrong local POM @ line 3, column 11 ->

  

原因是本地仓库缺少了easybuy-parent:pom:0.0.1-SNAPSHOT, 原来是忘记了将父工程打包到本地仓库 ,运行聚合工程前记得先将依赖的工程都先Maven install到本地仓库,否则也会出现以上问题

用Maven install 对父工程安装到本地仓库

时间: 2024-11-08 11:30:09

Maven异常:Could not find artifact的相关文章

Maven异常:Missing artifact org.slf4j:slf4j-api:jar:1.6.4

关于Maven的jar包Missing artifact org.slf4j:slf4j-api:jar:1.6.4的问题解决 意思是在本地仓库找不到jar包 和正常的jar包对比 将这三个文件:m2e-lastUpdated.properties.slf4j-api-1.6.4.jar.lastUpdated.slf4j-api-1.6.4-sources.jar.lastUpdated 删除掉.然后maven就可以正常的从私有仓库下载了. 问题原因 原文地址:https://www.cnbl

Maven异常_04_Failed to clean project

异常:Failed to execute goal org.apache.maven.plugins:maven-clean-plugin:2.5:clean (default-clean) on project taotao-manager-web: Failed to clean project 现象:eclipse在使用maven的tomcat控件编译java程序时,报错Failed to execute goal org.apache.maven.plugins:maven-clean-

Maven异常_02_compile faile_Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.2:compile (default-compile) on project

异常:Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.2:compile (default-compile) on project 原因:(1)可能给eclipse配了一个jre而不是jdk,(2)可能是jdk版本过低 解决:window->preferences->java->installed JREs ,发现配了一个假的jdk,它是一个jre........ 配上一个jdk后,问题就解决

Maven异常_06_ Unknown lifecycle phase "mvn"

一.异常现象 在eclipse中执行以下maven命令 时, mvn spring-boot:run 报出如下错误: Unknown lifecycle phase "mvn" 二.异常原因 当我们在eclipse中执行maven命令时,不需要加mvn: 三.解决方法 项目名右键 - > Run as - > maven build.. , 弹出一个编译框,Base directory是要编译项目的跟目录 ,Goals是输入mvn命令的, 输入以下命令即可: spring-

Maven 异常

异常: 十二月 25, 2017 11:04:41 下午 org.apache.tomcat.util.digester.SetPropertiesRule begin 警告: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclipse.jst.jee.server:ssm' did not find a matching property. 十二月 25, 2

invalid LOC header (bad signature)-Maven异常

异常信息: 错误: 读取D:\dev-tool\maven-repository\org\springframework\boot\spring-boot\1.4.2.RELEASE\spring-boot-1.4.2.RELEASE.jar时出错; invalid LOC header (bad signature) 异常原因: 该包没有被完整正确的下载. 解决方法: 把提示的文件删掉,让maven重新下载. 其他建议 把maven下载源由国外转成阿里镜像源,只要花一点时间就可以减少类似低级问

业余草 maven异常:Updating Maven Project 的统一解决方案

现在使用maven的公司和团队越来越多,虽然没有Gradle那么灵活,但是现对于以前的项目构建方式还是很有优势的,下面分享一个maven update 时的异常统一解决方案: 异常案例: 1.An internal error occurred during: "Updating Maven Project".   > Unsupported IClasspathEntry kind=4 <code class="language-java">2.

No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK Maven异常解决方案

出现像以上情况,需要在Eclipse中的preferences->Java->Installed JREs修改JDK的路径 修改之后 在Maven选项中,选择Update project.. 错误应该解决得了!!! 新手,做的笔记!如错误不能解决请另行查找!

maven异常解决:编码GBK的不可映射字符

直接将项目改为UTF-8编码,无效! 要通过修改pom.xml文件,告诉maven这个项目使用UTF-8来编译. 一.问题描述 今天在MyEclipse中使用Maven编译项目源代码时,结果如下了如下的错误 百思不得其解啊,Java源代码在MyEclipse中显示是没有任何错误的,可是执行"maven install"命令编译项目时就会出现上述的错误,导致项目编译失败.这个问题还是第一次遇到,还好在这里http://capslk.iteye.com/blog/1419958看到了解决问