编译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添加如下配置
第三种:手动下载2.1.1版本放到本地仓库对应目录
http://maven.restlet.com/org/restlet/jee/org.restlet.parent/2.1.1/
出现的问题:
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 报:Could not find artifact org.apache.maven.plugins:maven-resources-plugin:pom:2.4.3
- Maven工程聚合错误Could not find artifact cn.itcast.parent:itcast-parent:pom:0.0.1-SNAPSHOT and 'parent.rel
- Android studio 编译项目出现类似“Could not find class 'android.app.*$*”的问题
- Maven新建webapp项目报错Could not resolve artifact org.apache.maven.archetypes:maven-archetype-webapp:pom:RELEASE
- 【gradle】之maven主库找不到Could not find org.restlet.jee:org.restlet:2.1.1
- maven项目启动报错:Non-resolvable parent POM for com.taotao:Taotao-common:0.0.1-SNAPSHOT: Could not find ar
- Maven新建webapp项目报错Could not resolve artifact org.apache.maven.archetypes:maven-archetype-webapp:pom:R
- Maven 报:Could not find artifact org.apache.maven.plugins:maven-resources-plugin:pom:2.4.3
- Maven工程聚合错误Could not find artifact cn.itcast.parent:itcast-parent:pom:0.0.1-SNAPSHOT and 'parent.rel
- Eclipse下创建maven项目时出现Could not resolve archetype org.apache.maven.archetypes:maven-archetype-webapp:R
- Non-resolvable parent POM for **: Could not find artifact **
- Eclipse&Maven导入Maven项目后在pom.xml出现"Missing artifact org.springframework:spring-jdbc:jar:3.2.4.RELEAS"
- 解决Eclipse进行OSGI调试时出现Could not find bundle: org.eclipse.equinox.console的问题
- 访问Storm ui界面,出现org.apache.storm.utils.NimbusLeaderNotFoundException: Could not find leader nimbus from seed hosts ["master"]. Did you specify a valid list of nimbus hosts for confi的问题解决(图文详解)
- Original error: Could not transfer artifact org.apache.maven.plugins:maven-surefire-plugin:pom:2.7.1
- maven报错:Non-resolvable parent POM for com.taotao:Taotao-common:0.0.1-SNAPSHOT: Could not find artifa
- maven项目图标带红色感叹号(红灯、红点、红线)且保存时无法自动编译(无法生成class文件,提示Error: Could not find or load main class,或者代码改动后输出
- maven项目,多个依赖,打成一个可执行jar包,可根据profiles进行打包,出现的Could not find or load main class的解决方法。
- 解决创建maven项目Could not resolve archetype org.apache.maven.archetypes:maven-archetype-quickstart问题
- 访问Storm ui界面,出现org.apache.storm.utils.NimbusLeaderNotFoundException: Could not find leader nimbus from seed hosts ["master" "slave1"]. Did you specify a valid list of nimbus hosts for confi的问题解决(图文详解)