I have maven project which contains two modules: jar and war. war-module depends on jar:
-pom
--jar
--war
Early I used org.codehaus.mojo tomcat-maven-plugin plugin to deploy my single war project by command:
mvn tomcat:deploy
But here this command doesn't work. How I can deploy war project in multi modules case?
Solution was found: How can I deploy multiple wars using the tomcat plugin in maven?
I added this in my child war project's pom.xml:
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>tomcat-maven-plugin</artifactId>
<version>1.0-beta-1</version>
<executions>
<execution>
<id>deploy</id>
<phase>pre-integration-test</phase>
<goals>
<goal>deploy</goal>
</goals>
</execution>
</executions>
</plugin>
And on parent project I can run:
mvn package tomcat:deploy