[英]Maven tomcat7:run for multi-module project in IntelliJ
We have a multi-module Maven project: project-war
depends on project-api
. 我们有一个多模块的Maven项目:
project-war
取决于project-api
。
I have imported the modules into IntelliJ, and I would like to use tomcat7:run
to run run the project-war
application in Tomcat. 我已经将模块导入到IntelliJ中,并且我想使用
tomcat7:run
在Tomcat中运行project-war
应用程序。 I do so, the application runs fine. 我这样做,应用程序运行正常。
I make a change to project-api
, stop Tomcat, restart Tomcat. 我对
project-api
进行了更改,停止了Tomcat,然后重新启动了Tomcat。 The project-war
application runs again fine, but the changes to project-api
are not reflected as expected. project-war
应用程序再次正常运行,但是对project-api
的更改未按预期反映。
How to get the transitive changes from my workspace to be reflected when running tomcat7:run
? 如何在运行
tomcat7:run
时从我的工作空间获取传递性更改以反映出来?
I've tried " Resolve Workspace artifacts
". 我已经尝试过“
Resolve Workspace artifacts
”。 It didn't help. 它没有帮助。 In fact, I don't get this setting at all.
实际上,我根本没有这个设置。
I've tried " Before launch:
" " Make
". 我尝试过“
Before launch:
”“ Make
”。 It does what appears to be a build (compile) but it didn't help either. 它确实执行了似乎是构建(编译)的操作,但也没有帮助。
I think what I"m looking for is pretty much what m2e/Eclipse calls workspace resolution . Can't get it to work in IntelliJ. Your help much appreciated! 我认为我正在寻找的几乎是m2e / Eclipse所谓的工作区分辨率 。无法使其在IntelliJ中工作。非常感谢您的帮助!
This is a good repository to test this out. 这是一个很好的测试库。
As it turns out, this problem existed using IntelliJ 12.1.7, but not anymore using IntelliJ 13.1.5. 事实证明,使用IntelliJ 12.1.7存在此问题,但使用IntelliJ 13.1.5不再存在。
Workspace resolution works with a combination of the described configuration: 工作空间解析可与上述配置结合使用:
Resolve Workspace Artifacts
Before launch:
Make
Before launch:
Make
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.