maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Adrian Herscu <bmf1...@fastmail.fm>
Subject Re: [m2] Jetty 6 Plugin does not recognize custom webapp source directory
Date Mon, 03 Mar 2008 11:21:08 GMT
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 <mraible@gmail.com> 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: users-unsubscribe@maven.apache.org
>> For additional commands, e-mail: users-help@maven.apache.org
>>
>>


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


Mime
View raw message