Does the tomcat7-maven-plugin depoy all war-files simultaneously?
Is there a way to configure the plugin to delay the deployment of a war to occur after another war has started?
I have configured the tomcat7-maven-plugin to deploy several war-files. ArtifactB has a runtime dependency to artifactA which is resolved when it is starts up. It seems that the tomcat7-maven-plugin deploys all wars simultaneously, causing artifactB to hang and and it will not recover even after artifactA is up and runnig.
<plugin>
<groupId>org.apache.tomcat.maven</groupId>
<artifactId>tomcat7-maven-plugin</artifactId>
<version>2.2</version>
<configuration>
<path>/</path>
<port>8080</port>
<addWarDependenciesInClassloader>true</addWarDependenciesInClassloader>
<warSourceDirectory>${project.build.directory}/${project.build.finalName}/</warSourceDirectory>
<webapps>
<webapp>
<groupId>the.groupId</groupId>
<artifactId>artifactA</artifactId>
<version>1.0-SNAPSHOT</version>
<type>war</type>
<asWebapp>true</asWebapp>
</webapp>
<webapp>
<groupId>the.groupId</groupId>
<artifactId>artifactB</artifactId>
<version>1.0-SNAPSHOT</version>
<type>war</type>
<asWebapp>true</asWebapp>
</webapp>
</webapps>
</configuration>
</plugin>