您的位置:首页 > 其它

编译maven项目出现Could not find artifact org.restlet.jee:org.restlet.parent:pom:2.2.1问题

2016-08-17 09:51 1266 查看
经过几天的折腾,问题最终解决了。

出现的问题:

After correcting the problems, you can resume the build with the command

mvn <goals> -rf :csmp-agent-plugin-fc



解决方式三种:

第一种:首先查看maven仓库中保存的版本是多少,再修改编译项目csmp-agent-plugin-fc下pom.xml

修改前:

<dependency>
<groupId>org.restlet.jee</groupId>
<artifactId>org.restlet</artifactId>
<version>2.2.1</version>

</dependency>

修改后:

<dependency>
<groupId>org.restlet.jee</groupId>
<artifactId>org.restlet</artifactId>
<version>2.0.8</version>

</dependency>

第二种:在编译项目csmp-agent-plugin-fc下pom.xml添加如下配置

<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/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion>

<groupId>org.restlet.maven</groupId>
<artifactId>org.restlet.maven.test</artifactId>
<name>${project.artifactId}</name>
<packaging>jar</packaging>
<version>1.0.0-snapshot</version>

<dependencies>
<dependency>
<groupId>org.restlet.jee</groupId>
<artifactId>org.restlet</artifactId>
<version>2.1.1</version>
</dependency>
</dependencies>

<repositories>
<repository>
<id>maven-restlet</id>
<name>Public online Restlet repository</name>
<url>http://maven.restlet.com</url>
</repository>
</repositories>
</project>


第三种:手动下载2.1.1版本放到本地仓库对应目录
http://maven.restlet.com/org/restlet/jee/org.restlet.parent/2.1.1/
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  maven
相关文章推荐