我不能通過maven下載jar。我得到這個錯誤信息:jamesdbloom /模擬服務器與maven
[錯誤]未能就項目的執行目標,我的應用程序內:無法解析項目com.mycompany.app:my-app:jar:1依賴關係:找不到神器組織.mock-server:mockserver:jar:3.6.2 in central(http://repo.maven.apache.org/maven2) - > [Help 1] org.apache.maven.lifecycle.LifecycleExecutionException:未能執行項目目標my-app:無法解析項目的依賴關係com.mycompany.app:my-app:jar:1:找不到神器org.mock服務器:mockserver:罐子:3.6.2在中央(http://repo.maven.apache.org/maven2)
這是我的pom.xml:
<?xml version="1.0" encoding="UTF-8"?>
<project>
<modelVersion>4.0.0</modelVersion>
<groupId>com.mycompany.app</groupId>
<artifactId>my-app</artifactId>
<version>1</version>
<dependencies>
<dependency>
<groupId>org.mock-server</groupId>
<artifactId>mockserver</artifactId>
<version>3.6.2</version>
</dependency>
</dependencies>
</project>
maven clean install
本地倉庫後,包含此:
[email protected] ~/.m2/repository/org/mock-server/mockserver/3.6.2 $ ls
total 80
drwxr-xr-x 6 dasralph staff 204B 31 Okt 11:23 ./
drwxr-xr-x 3 dasralph staff 102B 31 Okt 11:23 ../
-rw-r--r-- 1 dasralph staff 156B 31 Okt 11:23 _maven.repositories
-rw-r--r-- 1 dasralph staff 235B 31 Okt 11:23 mockserver-3.6.2.jar.lastUpdated
-rw-r--r-- 1 dasralph staff 25K 31 Okt 11:23 mockserver-3.6.2.pom
-rw-r--r-- 1 dasralph staff 40B 31 Okt 11:23 mockserver-3.6.2.pom.sha1
什麼錯?
拉爾夫