我有一个使用 Restlet 2.3.1 (JSE) 的项目。我们根据 Restlet 网站使用 maven:
<properties>
<restlet-version>2.3.1</restlet-version>
</properties>
<repositories>
<repository>
<id>maven-restlet</id>
<name>Public online Restlet repository</name>
<url>http://maven.restlet.com</url>
</repository>
</repositories>
<dependencies>
<dependency>
<groupId>org.restlet.jse</groupId>
<artifactId>org.restlet</artifactId>
<version>${restlet-version}</version>
</dependency>
<dependency>
<groupId>org.restlet.jse</groupId>
<artifactId>org.restlet.ext.jackson</artifactId>
<version>${restlet-version}</version>
</dependency>
<dependency>
<groupId>org.restlet.jse</groupId>
<artifactId>org.restlet.ext.jetty</artifactId>
<version>${restlet-version}</version>
</dependency>
</dependencies>
这一切都很好,但是当我尝试添加 RAML 扩展时:
<dependency>
<groupId>org.restlet.jse</groupId>
<artifactId>org.restlet.ext.raml</artifactId>
<version>${restlet-version}</version>
</dependency>
我收到以下错误:
ArtifactDescriptorException: Failed to read artifact descriptor for org.raml:raml-parser:jar:0.8.7:
ArtifactResolutionException: Failure to transfer org.raml:raml-parser:pom:0.8.7 from http://download.java.net/maven/1 was cached in the local repository, resolution will not be reattempted until the update interval of maven1-java has elapsed or updates are forced.
Original error: Could not transfer artifact org.raml:raml-parser:pom:0.8.7 from/to maven1-java (http://download.java.net/maven/1): No connector available to access repository maven1-java (http://download.java.net/maven/1) of type legacy using the available factories AetherRepositoryConnectorFactory, WagonRepositoryConnectorFactory