I got an embarassing question. We just started programming a new project with Java in NetBeans. In School we once loaded it to sonarqube, but if I try http://localhost:9000/ (after starting sonarqube) in explorer there is only the old version of the project on my dashboard. I forgot the way to upload the current version of my project to sonarqube.
我有一个令人尴尬的问题。我们刚刚开始在NetBeans中使用Java编写一个新项目。在学校我们曾经把它加载到sonarqube,但如果我在资源管理器中尝试http:// localhost:9000 /(在启动sonarqube之后),我的仪表板上只有旧版本的项目。我忘记了将当前版本的项目上传到sonarqube的方法。
Thank you for your help
感谢您的帮助
1 个解决方案
#1
3
You need to run an analysis. Assuming yours is a Maven project, open a command prompt, and:
您需要运行分析。假设您的是Maven项目,请打开命令提示符,然后:
cd my/project/dir
mvn clean install
mvn sonar:sonar
Note that the two Maven commands could be combined: mvn clean install sonar:sonar
请注意,可以组合两个Maven命令:mvn clean install sonar:sonar
#1
3
You need to run an analysis. Assuming yours is a Maven project, open a command prompt, and:
您需要运行分析。假设您的是Maven项目,请打开命令提示符,然后:
cd my/project/dir
mvn clean install
mvn sonar:sonar
Note that the two Maven commands could be combined: mvn clean install sonar:sonar
请注意,可以组合两个Maven命令:mvn clean install sonar:sonar