You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by noah <ia...@gmail.com> on 2007/06/29 21:41:03 UTC
jetty:run - ignore changes to classfiles
Does anyone know how to get jetty to scan the whole webapp but not
restart when class files change? I still want it to scan other files
for changes, just not the class files. When I'm running in a
debugger, hot code replace can generally take care of it, but then
jetty restarts and screws everything up.
I tried using scanTargetPatterns, but it only adds additional targets
and can't seem to be used to exclude 'standard' targets.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: jetty:run - ignore changes to classfiles
Posted by Antony Stubbs <an...@gmail.com>.
I've tried playing with the jetty configuration but can't get it to work.
Does anyone else have any ideas?
[code]
<plugin>
<groupId>org.mortbay.jetty</groupId>
<artifactId>maven-jetty-plugin</artifactId>
<configuration>
<webAppSourceDirectory>
WebContent
</webAppSourceDirectory>
<scanIntervalSeconds>10</scanIntervalSeconds>
<scanTargetPatterns>
<scanTargetPattern>
<directory>WebContent</directory>
<includes>
<include>**/*.xml</include>
<include>**/*.properties</include>
</includes> <excludes>
<exclude>**/*.class</exclude>
<exclude>**/*.java</exclude>
<exclude>target/classes/**</exclude>
</excludes>
</scanTargetPattern>
</scanTargetPatterns>
</configuration>
</plugin>
[/code]
The Jetty documentation talks about jetty:run-exploded not monitoring class
files, only some resource files, but that's not really what we're after.
This might help:
http://docs.codehaus.org/display/JETTY/Which+files+are+scanned+by+the+Jetty+Maven+Plugin
and
http://jetty.mortbay.com/maven-plugin/
Antony Stubbs wrote:
>
> +1 - I also really want to be able to do this. The hot code replace causes
> jetty to restart so much I get jetty eventually throwing errors, so when
> ever i make more than half a dozen changes i have to restart maven from
> scratch. Surely not everyone out there is enduring jetty restarting every
> 3 seconds???
>
>
> noah-22 wrote:
>>
>> Does anyone know how to get jetty to scan the whole webapp but not
>> restart when class files change? I still want it to scan other files
>> for changes, just not the class files. When I'm running in a
>> debugger, hot code replace can generally take care of it, but then
>> jetty restarts and screws everything up.
>> I tried using scanTargetPatterns, but it only adds additional targets
>> and can't seem to be used to exclude 'standard' targets.
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>> For additional commands, e-mail: users-help@maven.apache.org
>>
>>
>>
>
>
--
View this message in context: http://www.nabble.com/jetty%3Arun---ignore-changes-to-classfiles-tf4001614s177.html#a14141617
Sent from the Maven - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: jetty:run - ignore changes to classfiles
Posted by Antony Stubbs <an...@gmail.com>.
+1 - I also really want to be able to do this. The hot code replace causes
jetty to restart so much I get jetty eventually throwing errors, so when
ever i make more than half a dozen changes i have to restart maven from
scratch. Surely not everyone out there is enduring jetty restarting every 3
seconds???
noah-22 wrote:
>
> Does anyone know how to get jetty to scan the whole webapp but not
> restart when class files change? I still want it to scan other files
> for changes, just not the class files. When I'm running in a
> debugger, hot code replace can generally take care of it, but then
> jetty restarts and screws everything up.
> I tried using scanTargetPatterns, but it only adds additional targets
> and can't seem to be used to exclude 'standard' targets.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
>
--
View this message in context: http://www.nabble.com/jetty%3Arun---ignore-changes-to-classfiles-tf4001614s177.html#a14128253
Sent from the Maven - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org