简体   繁体   English

是否可以在其他应用程序中为maven项目运行mvn sonar:sonar?

[英]Is it possible to run mvn sonar:sonar for maven project in other application?

I am able to add my maven java web project(say example:ApplicationBuild) to sonar running on my local machine. 我可以将我的Maven Java Web项目(例如example:ApplicationBuild)添加到在本地计算机上运行的声纳中。 Now I want to write a small new java application which should add "Application Build" to sonar instead adding same from command line using mvn sonar:sonar. 现在,我想编写一个小的Java新应用程序,该应用程序应在声纳中添加“ Application Build”,而不是使用mvn sonar:sonar从命令行中将其添加。 Is it possible? 可能吗? I searched but i din't get solution for this. 我搜索了,但是我没有得到解决方案。

Yes you can. 是的你可以。

it check whether your local sonar instance is localhost:9000/ 它检查您的本地声纳实例是否为localhost:9000 /

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM