![](/img/trans.png)
[英]Why does Maven not find/figure out the version of the artifact in the child pom?
[英]Sonarqube with maven does not find artifact
我正在嘗試使用sonarqube分析我的項目。
我在網站上配置我的項目,但是運行時會顯示以下錯誤
mvn sonar:sonar
錯誤:
Caused by: org.apache.maven.project.ProjectBuildingException: POM 'org.codehaus.
mojo:sonar-maven-plugin' not found in repository: Unable to download the artifac
t from any repository
org.codehaus.mojo:sonar-maven-plugin:pom:2.0-SNAPSHOT
為什么要尋找2.0-SNAPSHOT ?
我剛剛將此插件添加到我的pom.xml中,它可以正常工作。
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>sonar-maven-plugin</artifactId>
<version>1.0</version>
</plugin>
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.