maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jason van Zyl <ja...@maven.org>
Subject Re: Maven Jetty Plugin won't honor webAppSourceDirectory
Date Tue, 06 Sep 2011 14:03:57 GMT
You probably want to use the newer versions of Jetty, and the Jetty Maven Plugin, which is
now an Eclipse project[1]. You can find the mailing lists here[2].

http://www.eclipse.org/jetty/mailinglists.php

[1]: http://www.eclipse.org/jetty/
[2]: http://www.eclipse.org/jetty/

On Sep 6, 2011, at 9:59 AM, dizzyd wrote:

> Based on the documentation the Jetty plugin is supposed to allow you to be
> able to change the default location of the webapp directory
> (http://docs.codehaus.org/display/JETTY/Maven+Jetty+Plugin)
> 
> when I issue a mvn jetty:run in the plugin configuration I keep seeing this:
> 
> ...
> [INFO] webAppSourceDirectory : [PROJ-PATH]\src\main\webapp\ does not exist.
> Defaulting to [PROJ-PATH]\src\main\webapp. 
> ...
> [INFO] web.xml file =  [PROJ-PATH]\src\main\webapp\WEB-INF\web.xml
> [INFO] webapp directory = [PROJ-PATH]\src\main\webapp
> ...
> 
> In my directory structure I do have the src\main\webapp directory, so I an
> not sure why jetty isn't seeing it.  Also when I attempt to change the
> webapp directory jetty doesn't see that and attempts to use the default
> again. 
> 
> directory structure:
> 
> PROJ
> PROJ\src
> PROJ\src\webapp
> PROJ\src\webapp\WEB-INF
> PROJ\src\webapp\WEB-INF]web.xml
> PROJ\src\webapp2
> PROJ\src\webapp2\WEB-INF
> PROJ\src\webapp2\WEB-INF]web.xml
> 
> Plugin config:
> ...
> <plugin>
>   <groupId>org.mortbay.jetty<groupId>
>   <artifactId>maven-jetty-plugin</artifactId>
>   <version>6.1.22</version>
>   <configuration>
> 
> <webAppSourceDirectory>${basedir}/src/main/webapp2</webAppSourceDirectory>
>      <webXml>${basedir}/src/main/webapp2/WEB-INF/web.xml</webXml>
>   </configuration>
> <plugin>
> ...
> 
> I have tried to use the webapp2 for the source dir and it doesn't recognize
> it at all, maven doesn't seem to be reading the configuration at all. Also
> tried to use the webpp default configuration, and that initial error is
> still displayed:
> 
> [INFO] webAppSourceDirectory : [PROJ-PATH]\src\main\webapp\ does not exist.
> Defaulting to [PROJ-PATH]\src\main\webapp. 
> 
> Any direction on this?  All of the documentation suggests that this should
> work. 
> 
> --
> View this message in context: http://maven.40175.n5.nabble.com/Maven-Jetty-Plugin-won-t-honor-webAppSourceDirectory-tp4774500p4774500.html
> 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
> 

Thanks,

Jason

----------------------------------------------------------
Jason van Zyl
Founder,  Apache Maven
http://twitter.com/jvanzyl
---------------------------------------------------------

the course of true love never did run smooth ...

 -- Shakespeare




Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message