dizzyd
2011-09-06 13:59:07 UTC
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.
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.