Are there any wicket/eclipse/maven/m2eclipse users out there?  I'm
trying to get my development environment working properly and need
your help.

Up until now, I've been developing WIcket applications in Eclipse and
have not been using maven.  As long as my web.xml is set to
development rather than deployment mode, changes I made to HTML files
while debugging were immediately applied.

Not anymore... I am now managing my projects with maven, having just
added a pom file to my project.  I'm using the m2eclipse plugin in
Eclipse and enabled dependency management on my project.
Unfortunately, now my HTML file changes aren't being recognized any
longer even with development mode turned on. I have to stop and start
the app to see the HTML changes.

My project's maven properties show these goals to invoke on resource
changes:  process-resources resources:testResources.

My pom includes:

    <build>
        <sourceDirectory>src/main/java</sourceDirectory>
        <testSourceDirectory>src/test/java</testSourceDirectory>
        <resources>
            <resource>
                <filtering>false</filtering>
                <directory>src/main/resources</directory>
                <includes>
                    <include>**</include>
                </includes>
            </resource>
            <resource>
                <filtering>false</filtering>
                <directory>src/main/java</directory>
                <includes>
                    <include>**</include>
                </includes>
                <excludes>
                    <exclude>**/*.java</exclude>
                </excludes>
            </resource>
        </resources>
    ...
    </build>

So, I'm wondering, does eclipse not think that a resource has been
changed because the HTML files are within src/main/java instead of
src/main/resources?  If I change my CSS files, which are in
/src/main/webapp, the changes are reflected with a browser refresh.
But if I change an HTML file, it is not.

How do I configure this to work right?  Everything else seems to be
working right, just not HTML refreshing.

Thanks,
Tauren

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to