Return to Snippet

Revision: 53194
at November 16, 2011 00:07 by sabanulutas


Updated Code
<configuration>
        <!-- scan period (this effects scan period also for java class files changes) -->
	<scanIntervalSeconds>5</scanIntervalSeconds>

        <!-- i don't know the reason for setting extraClasspath, but it should be set -->
	<webAppConfig>
		<extraClasspath>${basedir}/src/main/resources</extraClasspath>	
	</webAppConfig>
	
        <!-- will be scanned paths for changes by jetty additionally (here is the path where js, css, etc... are exist) -->
	<scanTargets>
		<scanTarget>src/main/webapp</scanTarget>
	</scanTargets>
	
</configuration>

Revision: 53193
at November 16, 2011 00:04 by sabanulutas


Updated Code
<configuration>
        <!-- scan period (also for java class file changes) -->
	<scanIntervalSeconds>5</scanIntervalSeconds>

        <!-- i don't know the reason for setting extraClasspath, but it should be set -->
	<webAppConfig>
		<extraClasspath>${basedir}/src/main/resources</extraClasspath>	
	</webAppConfig>
	
        <!-- will be scanned paths for changes by jetty additionally (here the path where js, css, etc... will exist) -->
	<scanTargets>
		<scanTarget>src/main/webapp</scanTarget>
	</scanTargets>
	
</configuration>

Revision: 53192
at November 15, 2011 23:46 by sabanulutas


Updated Code
...
...

<configuration>
        <!-- scan period (also for java class file changes) -->
	<scanIntervalSeconds>5</scanIntervalSeconds>

        <!-- i don't know the reason for setting extraClasspath, but it should be set -->
	<webAppConfig>
		<extraClasspath>${basedir}/src/main/resources</extraClasspath>	
	</webAppConfig>
	
        <!-- will be scanned paths for changes by jetty additionally (here the path where js, css, etc... will exist) -->
	<scanTargets>
		<scanTarget>src/main/webapp</scanTarget>
	</scanTargets>
	
</configuration>

...
...

Revision: 53191
at November 15, 2011 23:38 by sabanulutas


Initial Code
...
...

<configuration>
	<scanIntervalSeconds>5</scanIntervalSeconds>
	<stopKey>foo</stopKey>
	<stopPort>9999</stopPort>
	<webXml>${project.build.directory}/web.xml</webXml>
	<webAppConfig>
		<contextPath>/airadmin</contextPath>
		<extraClasspath>${basedir}/src/main/resources</extraClasspath>	
	</webAppConfig>
	
	<scanTargets>
		<scanTarget>src/main/webapp</scanTarget>
	</scanTargets>
	
	<connectors>
		<connector
			implementation="org.mortbay.jetty.nio.SelectChannelConnector">
			<port>8081</port>
			<maxIdleTime>60000</maxIdleTime>
		</connector>
	</connectors>
</configuration>

...
...

Initial URL


Initial Description
add following parts to the appropriate places in the pom.xml

Initial Title
maven jetty plugin configuration to scan static sources (js,css,etc...)

Initial Tags


Initial Language
XML