Hi,

What if I have an additional webapp source folder, like:

      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-war-plugin</artifactId>
        <configuration>
          <webResources>
            <resource>
              <directory>src-gen/main/webapp</directory>
            </resource>
          </webResources>
         </configuration>
       </plugin>

How can I tell Jetty to deploy this folder as well?

TIA,
Adrian.

Brett Porter wrote:
Hi Matt,

Check out the Jetty docs:
http://jetty.mortbay.org/jetty6/maven-plugin/howto.html

You can configure the web resources path. Unfortunately, we haven't
enabled a mechanism for the war plugin to share its configuration.

- Brett

On 1/11/06, Matt Raible <[EMAIL PROTECTED]> wrote:
I decided to try Brett's Jetty 6 HowTo this morning:

http://blogs.codehaus.org/people/brett/archives/001306_developing_with_jetty_where_have_you_been_all_my_life.html

Unfortunately, it doesn't seem to work with my custom webapp source
directory.  Here's my pom.xml:

      <plugin>
        <artifactId>maven-war-plugin</artifactId>
        <configuration>
          <warSourceDirectory>web</warSourceDirectory>
        </configuration>
      </plugin>
      <plugin>
        <groupId>org.mortbay.jetty</groupId>
        <artifactId>maven-jetty6-plugin</artifactId>
        <configuration>
            <scanIntervalSeconds>10</scanIntervalSeconds>
            <contextPath>/</contextPath>
        </configuration>
      </plugin>

[INFO] [jetty6:run]
[INFO] Configuring Jetty for project: Equinox
[INFO] -------------------------------------------------------------------------
---
[ERROR] BUILD ERROR
[INFO] -------------------------------------------------------------------------
---
[INFO] Webapp source directory C:\Source\equinox\src\main\webapp does not exist
[INFO] -------------------------------------------------------------------------
---
[INFO] For more information, run Maven with the -e switch
[INFO] -------------------------------------------------------------------------
---
[INFO] Total time: 3 minutes 25 seconds
[INFO] Finished at: Tue Jan 10 07:40:45 MST 2006
[INFO] Final Memory: 4M/8M
[INFO] -------------------------------------------------------------------------

Matt

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to