I am using tomcat7 with the tomcat-maven plugin. I can do this hotswap my jsp, but it only works if I change it directly to the target. How can I make tomcat also look for changes in my sources directory?
pom.xml
<plugin> <groupId>org.apache.tomcat.maven</groupId> <artifactId>tomcat7-maven-plugin</artifactId> <version>2.2</version> <configuration> <serverXml>${project.build.directory}/config/tomcat-config/${usingDb}/server.xml</serverXml> <tomcatUsers>${project.build.directory}/config/tomcat-config/tomcat-users.xml</tomcatUsers> <configurationDir>${project.build.directory}/config/tomcat-config</configurationDir> <additionalClassesDirs> <classesDir>${project.basedir}/src/main/webapp</classesDir> </additionalClassesDirs> <contextReloadable>true</contextReloadable> <port>${tomcat.http.local.port}</port> <path>/${url.contextPath}</path> </configuration> </plugin>
maven maven-tomcat-plugin
Marc Chery
source share