tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Olivier Lamy <ol...@apache.org>
Subject Re: Tomcat 7 Maven Plugin - embedded reload
Date Fri, 24 Feb 2012 14:11:05 GMT
2012/2/23 David Miller <possum.pie@gmail.com>:
> I'm using the below Tomcat 7 Maven plugin and am not having any luck
> reloading changed classes. Changes made to a jsp are reflected right away
> but class file changes are not.

Frankly I have never tested that :-)

> I have my IDE (Netbeans 7) set to compile on save, I'm using Maven 2.2.1
> and I have reloadable='true' in my context.xml file.

First idea I have in mind, does your ide compile to the same
buildOutput directory as Maven ?

>
> I've not used Tomcat in years, and have never used it with Maven, so I'm
> not really sure if the problem is with the plugin or Tomcat.
>
> Can changed class files be reloaded without having to 'mvn tomcat7:run'
> each time?
>
> <plugin>
>    <groupId>org.apache.tomcat.maven</groupId>
>    <artifactId>tomcat7-maven-plugin</artifactId>
>    <version>2.0-beta-1</version>
>    <configuration>
>        <backgroundProcessorDelay>5</backgroundProcessorDelay>
>
> <contextFile>${project.build.directory}/${project.build.finalName}/META-INF/context.xml</contextFile>
>    </configuration>
>    <dependencies>
>        <dependency>
>            <groupId>com.sybase</groupId>
>            <artifactId>jConnect</artifactId>
>            <version>7.0.0</version>
>        </dependency>
>        <dependency>
>            <groupId>commons-fileupload</groupId>
>            <artifactId>commons-fileupload</artifactId>
>            <version>1.2.2</version>
>        </dependency>
>    </dependencies>
> </plugin>



-- 
Olivier Lamy
Talend: http://coders.talend.com
http://twitter.com/olamy | http://linkedin.com/in/olamy

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message