Reputation: 9118
We have a multi-module Maven project: project-war
depends on 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. I do so, the application runs fine.
I make a change to project-api
, stop Tomcat, restart Tomcat. The project-war
application runs again fine, but the changes to project-api
are not reflected as expected.
How to get the transitive changes from my workspace to be reflected when running tomcat7:run
?
I've tried "Resolve Workspace artifacts
". It didn't help. In fact, I don't get this setting at all.
I've tried "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!
Upvotes: 1
Views: 1513
Reputation: 9118
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.
Workspace resolution works with a combination of the described configuration:
Resolve Workspace Artifacts
Before launch:
Make
Upvotes: 1