简体   繁体   English

将应用程序安装到Tomcat7中以与sonarqube 4.1一起运行(Maven插件)

[英]installing an application into Tomcat7 to run with sonarqube 4.1 (maven plugin)

Could anyone tell me how to install applications into Tomcat for Sonarqube 4.1 please (or point me to some documentation as I'm failing to find it) 谁能告诉我如何将应用程序安装到Sonarqube 4.1的Tomcat中(或指向一些文档,因为我找不到它)

I have taken over some software I'm still learning about and I'm a bit confused about how the application/tomcat/sonarqube mechanism works. 我已经接管了一些仍在学习的软件,并且对应用程序/ tomcat / sonarqube机制的工作方式有些困惑。 Essentially in Jenkins on our build server I set up a different 'project' which used updated references of spring and elastic search. 本质上,在构建服务器上的Jenkins中,我设置了一个不同的“项目”,该项目使用了spring和elastic search的更新参考。 I ran this and the old 'project' stopped working. 我运行了这个,旧的“项目”停止了工作。 Eventually I tracked this down to the fact that the new version of the java project 'installed' into the base Tomcat directory (D:\\Production\\Tomcat\\webapps\\ROOT\\WEB-INF) and so now the 'running' version of the application Jenkins fires up to test against with a verify command has the wrong version of elastic search and so fails. 最终,我将其归结为以下事实:新版本的Java项目已“安装”到基本的Tomcat目录(D:\\ Production \\ Tomcat \\ webapps \\ ROOT \\ WEB-INF)中,因此现在是詹金斯(Jenkins)应用程序使用验证命令针对弹性搜索的错误版本启动了测试,因此失败。 ie if I run 即如果我跑步

test sonar:sonar -Dsonar.forceAnalysis=true -Dacceptance 测试声纳:声纳-Dsonar.forceAnalysis = true-接受

it runs fine but as the application code is solid but if I add -Dsonar.phase=verify it fails as the application currently installed into Tomcat is not . 它运行正常,但由于应用程序代码稳定,但是如果我添加-Dsonar.phase = verify,则失败,因为当前安装到Tomcat中的应用程序不是。 I'm not sure how I managed to install the new code into Tomcat (perhaps this is automatic on running ?) but I wondered if anyone could tell me how I can safely remove the current version installed into Tomcat and replace it with the version being run by Jenkins now ? 我不确定如何将新代码安装到Tomcat中(也许这是自动运行的吗?),但我想知道是否有人可以告诉我如何安全地删除安装在Tomcat中的当前版本并将其替换为现在由詹金斯(Jenkins)经营?

I can't help feeling I must be missing some documentation somewhere but I just haven't found anything so any help would be appreciated! 我忍不住要在某处丢失一些文档,但是我什么都没找到,所以我们将不胜感激!

Apologies if this is a bit garbled please ask for clarification if you think you can help! 抱歉,如果这有点乱,请请求澄清,如果您认为可以提供帮助!

Many thanks 非常感谢

SonarQube now embeds its own Tomcat server to run. SonarQube现在嵌入了自己的Tomcat服务器来运行。 It is the only supported mode. 这是唯一受支持的模式。 There's no way to make SonarQube run on one your Tomcat servers. 无法使SonarQube在您的Tomcat服务器上运行。

Apologies this was a bit of vague question asked in ignorance & hope. 抱歉,这是一个无知和希望的模糊问题。 I have realised now all this is being done by the maven cargo plugin and that for some reason cargo has stopped working. 我已经意识到,所有这些工作都是由Maven货运插件完成的,由于某种原因,货运已停止工作。

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

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