我们有一个用apache 3.0.5构建的多模块项目。
下面是设置:
以下是我在运行声纳作业时收到的警告。
**这些警告似乎对服务器结果没有影响。SonarQube服务器显示违反规则的情况,似乎没有遗漏任何类。
分析前:
[WARNING] The following dependencies could not be resolved at this point of the build but seem to be part of the reactor:
15:04:52 [WARNING] o com.company.product.plugins:com.company.product.external.libraries:jar:1.0.0-SNAPSHOT (provided)
15:04:52 [WARNING] Try running the build up to the lifecycle phase "package"
15:04:52 [WARNING] The following dependencies could not be resolved at this point of the build but seem to be part of the reactor:
15:04:52 [WARNING] o com.company.product.plugins:com.company.product.capturetool.core:jar:1.0.0-SNAPSHOT (provided)
在分析期间:
Class 'com/company/product/core/tools/ocraction/MyClass' is not accessible through the ClassLoader.
[WARN] [15:05:25.731] Class 'com/company/product/core/tools/ocraction/MyClass' is not accessible through the ClassLoader.
经分析后:
[INFO] com.company.product.core.feature ................ SKIPPED
[INFO] com.company.product.common.feature ... SKIPPED
[INFO] My Product ............................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
我不明白为什么会发生这种事。我在互联网上搜遍了没有答案。在Sonar分析之前,我得到了一些响应,比如运行"mvn干净包“而不是"mvn干净安装”的.m2目录损坏。
发布于 2014-07-23 08:51:01
我设法解决了这个问题。我发现Sonar插件并没有单独运行命令"mvn干净安装“。相反,它只是运行"mvn声纳:声纳“以及任何附加的参数。
我执行"mvn清洁安装“之前,声纳的后构建步骤。这有助于解决我的问题。
https://stackoverflow.com/questions/24916140
复制相似问题