Tôi đã theo directions to integrate Sonar with Maven - settings.xml thay đổi để bao gồm kho sonar tại địa chỉ:Sonar hội nhập maven
http: // localhost: 9000/triển khai/maven
và tôi đã xác minh tôi có thể để xem file readme.txt tại địa chỉ:
http: //localhost:9000/deploy/maven/README.txt
nhưng khi chạy sonar:sonar
tôi tiếp tục nhận được thông báo sau:
[INFO] [sonar:sonar]
[INFO] Sonar host: http: //localhost:9000
[INFO] Sonar version: 1.7
Downloading: http: //localhost:9000/deploy/maven/org/codehaus/sonar/runtime/sonar
-core-maven-plugin/20090803213910/sonar-core-maven-plugin-20090803213910.pom
Downloading: http: //<MY SERVER URL>:8081/nexus/content/groups/public/org/codehaus/
sonar/runtime/sonar-core-maven-plugin/20090803213910/sonar-core-maven-plugin-200
90803213910.pom
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Can not execute Sonar
Embedded error: Unable to build project for plugin 'org.codehaus.sonar.runtime:s
onar-core-maven-plugin': POM 'org.codehaus.sonar.runtime:sonar-core-maven-plugin
' not found in repository: Unable to download the artifact from any repository
org.codehaus.sonar.runtime:sonar-core-maven-plugin:pom:20090803213910
từ các kho từ xa được chỉ định:
sonar (http: // localhost: 9000/triển khai/maven),
mối quan hệ (http: // : 8081/nexus/content/groups/public),
cho dự án org.codehaus.sonar.runtime: sonar-core-maven-plugin [INFO] ------------- -------------------------------------------------- ---------
Bất kỳ ý tưởng nào tôi đang thiếu?
Đúng, dịch vụ Sonar mà tôi đang cố tải lên kết quả đang chạy trên cùng một máy tôi đang chạy mvn sonar: sonar. Tôi cũng đã cài đặt Nexus trên máy tính này (như được hiển thị trong bài đăng gốc), nhưng vì mục đích gỡ lỗi để giải quyết vấn đề này, tôi đã nhận xét cấu hình gương trong tệp settings.xml của Maven - cùng một kết quả. –