1. pom.xml modification
<!-- context path -->
<finalName>tz.sheepshare</finalName>
<!-- ibatis mapping xml copy -->
<resources>
<resource>
<directory>${basedir}/src/main/java</directory>
<excludes>
<exclude>**/*.java</exclude>
</excludes>
</resource>
</resources>
<!-- ㅇ maven goal : tomcat:run -->
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>tomcat-maven-plugin</artifactId>
<version>1.1</version>
<configuration>
<path>/</path> <!-- context path -->
<port>8080</port>
</configuration>
</plugin>
<!-- ㅇ maven goal : jetty:run -->
<plugin>
<groupId>org.mortbay.jetty</groupId>
<artifactId>maven-jetty-plugin</artifactId>
<configuration>
<scanIntervalSeconds>3</scanIntervalSeconds>
<contextPath>/</contextPath> <!-- context path -->
<connectors>
<connector implementation="org.mortbay.jetty.nio.SelectChannelConnector">
<port>8080</port>
</connector>
</connectors>
</configuration>
</plugin>
2. maven clean / install
3. maven tomcat:run / maven jetty:run
cf. http://mojo.codehaus.org/tomcat-maven-plugin/configuration.html
Comments
Post a Comment