Fortify Sourceanalyzer - 分析 XWiki 时缺少 java 类
缺少的类是com.xpn.xwiki.test.AbstractXWikiComponentTestCase
。 这是唯一无法解决的类。 我跑了:
mvn包
然后我尝试使用 sourceanalyzer 进行构建,这是唯一找不到的类。 我不明白为什么 mvn package 不会为我得到这个。
The missing class is com.xpn.xwiki.test.AbstractXWikiComponentTestCase
. This is the only class that cannot be resolved. I have run:
mvn package
Then I have tried to build with sourceanalyzer and this is the only class that cannot be found. I do not understand why mvn package would not have gotten this for me.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
如果您在使用 Fortify SCA Maven2 插件构建时缺少依赖项,则应该尝试“安装”目标而不是“打包”目标。
“安装”将依赖项放入您的存储库中。 Fortify SCA Maven2 插件在存储库中查找依赖项。
我希望这有帮助! 请告诉我们。
If you're getting missed dependencies when building with the Fortify SCA Maven2 plugin, you should try the "install" goal instead of the "package" goal.
"install" puts the dependencies into your repository. The Fortify SCA Maven2 Plugin looks in the repository for dependencies.
I hope this helps! Please let us know.
看起来你缺少一个罐子。 您是否在构建之前看到任何尝试下载依赖项的行?
XWiki jar 不托管在中心,但您可以使用如下配置将 XWiki 存储库添加到您的 pom 中:
添加该配置后,Maven 应该下载所有必需的依赖项。 如果仍然没有,您可以将缺少的依赖项显式添加到 POM 中:
Looks like you're missing a jar. did you see any lines earlier in the build attempting to download dependencies?
The XWiki jars aren't hosted on central, but you can add the XWiki repository to your pom using configuration like this:
Once that configuration is added, Maven should download all the required dependencies. If it still doesn't, you can explicitly add the missing dependency to your POM: