Created
February 16, 2012 16:30
-
-
Save folkengine/1846255 to your computer and use it in GitHub Desktop.
embeds Tomcat into Maven
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<plugin> | |
<!-- mvn tomcat6:run --> | |
<!-- http://tomcat.apache.org/maven-plugin-2.0-SNAPSHOT/run-mojo-features.html Fixed version --> | |
<groupId>org.apache.tomcat.maven</groupId> | |
<artifactId>tomcat6-maven-plugin</artifactId> | |
<!-- or if you want to use tomcat 6.x <artifactId>tomcat6-maven-plugin</artifactId> --> | |
<version>2.0-beta-1</version> | |
<configuration> | |
<!-- http port --> | |
<port>9180</port> | |
<!-- application path always starts with / --> | |
<path>/</path> | |
<!-- optionnal path to a context file <contextFile>/Users/olamy/dev/tomcat-context-archiva-gmail.xml</contextFile> --> | |
<!-- optionnal system propoerties you want to add <systemProperties> | |
<appserver.base>/Users/olamy/dev/sources/tomcat/maven-plugin/target/appserver-base</appserver.base> | |
<appserver.home>/Users/olamy/dev/sources/tomcat/maven-plugin/target/appserver-home</appserver.home> | |
<derby.system.home>/Users/olamy/dev/sources/tomcat/maven-plugin/target/appserver-base/logs</derby.system.home> | |
<java.io.tmpdir>/Users/olamy/dev/sources/tomcat/maven-plugin/target</java.io.tmpdir> | |
</systemProperties> --> | |
<!-- if you want to use test dependencies rather than only runtime --> | |
<useTestClasspath>false</useTestClasspath> | |
<!-- optionnal if you want to add some extra directories in the class | |
loader --> | |
<additionalClasspathDirs> | |
<additionalClasspathDir></additionalClasspathDir> | |
</additionalClasspathDirs> | |
</configuration> | |
<!-- if you need some extra dependencies only for running the embeded | |
tomcat add them in the plugin dependencies <dependencies> <dependency> <groupId>org.apache.derby</groupId> | |
<artifactId>derby</artifactId> <version>${derbyVersion}</version> </dependency> | |
<dependency> <groupId>javax.mail</groupId> <artifactId>mail</artifactId> | |
<version>1.4</version> </dependency> </dependencies> --> | |
</plugin> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment