We use Maven with -pl and -am parameters in our build. This might look like:
mvn clean install -pl :my-module -am
In the above example Maven will run the clean and install goals on my-module and all it's dependencies. This is very helpful when using the Tomcat plugin's run-war goal:
mvn tomcat7:run-war -pl :my-web-module -am
In IDEA I can just run the goal inside my-web-module, but this won't include the dependencies. Is there a solution?