Skip to content

Instantly share code, notes, and snippets.

@jm2dev
Created June 29, 2011 09:21
Show Gist options
  • Save jm2dev/1053505 to your computer and use it in GitHub Desktop.
Save jm2dev/1053505 to your computer and use it in GitHub Desktop.
Maven tomcat and jetty plugins
<project>
<plugins>
<plugin>
<groupId>org.mortbay.jetty</groupId>
<artifactId>maven-jetty-plugin</artifactId>
<version>6.1.25</version>
<configuration>
<scanIntervalSeconds>10</scanIntervalSeconds>
<stopPort>9966</stopPort>
<stopKey>foo</stopKey>
<connectors>
<connector
implementation="org.mortbay.jetty.nio.SelectChannelConnector">
<port>9964</port>
<maxIdleTime>60000</maxIdleTime>
</connector>
</connectors>
</configuration>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>tomcat-maven-plugin</artifactId>
<version>1.1</version>
<configuration>
<url>${tomcat.url}</url>
<server>${tomcat.server}</server>
<path>/</path>
</configuration>
</plugin>
</plugins>
<properties>
<tomcat.url>http://localhost:9191/manager</tomcat.url>
<tomcat.server>tc-9191</tomcat.server>
</properties>
</project>
<settings>
<servers>
<server>
<id>tc-9191</id>
<username>tc-user-9191</username>
<password>tc-password-9191</password>
</server>
</servers>
</settings>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment