<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>com.cloudst</groupId>
<artifactId>cloudst</artifactId>
<version>0.1.2</version>
<packaging>jar</packaging>
<name>cloudst</name>
<url>http://maven.apache.org</url>
<repositories>
<repository>
<id>com.springsource.repository.bundles.release</id>
<url>http://repository.springsource.com/maven/bundles/release/</url>
</repository>
<repository>
<id>EclipseLink</id>
<url>http://download.eclipse.org/rt/eclipselink/maven.repo</url>
</repository>
<repository>
<id>java.net2</id>
<name>Repository hosting the jee6 artifacts</name>
<url>http://download.java.net/maven/2</url>
</repository>
</repositories>
<dependencies>
<dependency>
<groupId>org.kitchen-eel</groupId>
<artifactId>json-schema-validator</artifactId>
<version>${kitchen-eel.version}</version>
</dependency>
<build>
<finalName>cloudst</finalName>
<plugins>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<version>2.5.1</version>
<configuration>
<source>1.6</source>
<target>1.6</target>
</configuration>
</plugin>
</build>
</project>
Am có thể thành công trong sạch, biên dịch và cài đặt dự án này từ dòng lệnh sử dụng lệnh mvn tiêu chuẩn ...m2eclipse vấn đề ArtifactTransferException - Nhưng pom.xml biên dịch/cài đặt từ dòng lệnh
Tuy nhiên , trong cửa sổ vấn đề Eclipse Juno, tôi có 2 lỗi sau đây:
Thiếu vật org.kitchen-lươn: json-schema-validator: jar: 1.2.1 pom.xml dòng /com.cloudst 45 Maven Sự cố phụ thuộc
ArtifactTransferException: Thất bại trong việc chuyển org.kitchen-lươn: json-schema-validator: jar: 1.2.1
từ http://repo.maven.apache.org/maven2 được lưu trữ trong kho địa phương, độ phân giải sẽ không được thử lại cho đến khi cập nhật khoảng thời gian trung tâm có thời gian trôi qua hoặc cập nhật bắt buộc. Lỗi gốc: Không thể chuyển tạo phẩm org.kitchen-eel: json-schema-validator: jar: 1.2.1 từ/đến trung tâm (http://repo.maven.apache.org/maven2):
Không chuyển được http://repo.maven.apache.org/maven2/org/kitchen-eel/json-schema-validator/1.2.1/json-schema-validator-1.2.1.jar.
Tại sao nó hoạt động trong dòng lệnh nhưng m2eclipse đang đăng sự cố?
Cảm ơn đã dành thời gian để đọc ...
bạn có thể giải thích về nguyên nhân khiến phụ thuộc có mặt ở nơi đầu tiên không? –