Details
Description
Context
-----------
I want to use maven-jetty-pling in hotdeploy mode.
My web app use Struts Framework.
I also use Xdoclet in order to generate the struts-config.xml and validation.xml
But I want to generate these files in a target directory in order to separate the source and generated files
Unfortunatly, this does seems not possible yet because I need to inform jetty that my web app source directory is split in two differents paths (src/main/webapp and target/xdoclet/)
In fact, I need to configure the struts servlet in the web.xml like this :
<init-param>
<param-name>config</param-name>
<param-value>/generated/struts-config.xml</param-value>
</init-param>
It's important to notice that the solution adding the path (target/xdoclet/) in the classpath do not solve my problem. In fact, the problem is not related to the classpath but rather to the web app source directory.
Need
--------
The only solution seems to add a new feature to jetty in order to be able to use multiple web application source directories.
In our case, we would like to have something like that:
<Call name="addLifeCycle">
<Arg>
<New class="org.mortbay.jetty.deployer.WebAppDeployer">
<Set name="contexts"><Ref id="Contexts"/></Set>
<Set name="webAppDirs">
<Array type="java.lang.String">
<Item>src/main/webapp</Item>
<Item>target/xdoclet/</Item>
</Array>
</Set>
[...]
</New>
</Arg>
</Call>
Issue Links
- is duplicated by
-
JETTY-622
maven-jetty-plugin configuration for Multiple Web Application Source Directory
-
I agree that this feature is very useful when you want to separate the source files and the generated sources files.
I also found no solution for this need.
For the moment, we have to merge the generate source (like generate files from xdoclet ) with our source files, but it's unsatisfactory.