Details
-
Type:
Improvement
-
Status:
Closed
-
Priority:
Major
-
Resolution: Duplicate
-
Affects Version/s: None
-
Fix Version/s: None
-
Component/s: None
-
Labels:None
-
Environment:all
-
Number of attachments :
Description
I have some trouble with the war plugin.
With the following source structure :
src/main/web/css (css files)
src/main/web/scripts (javascritpts files)
src/main/web/jsp (jsp files)
src/main/html (static html content)
With the following configuration :
<warSourceDirectory implementation="java.io.File">$
<webXml>${basedir}
/src/main/resources/war/web.xml</webXml>
<webappDirectory implementation="java.io.File">$
The generated webapp is :
${basedir}
/webappdir/OTAStats/css (ok)
$
${basedir}
/webappdir/OTAStats/jsp (not good my index.jsp is not in the correct directory)
$
/webappdir/OTAStats/html (not good too)
My proposal is to add in the mojo (AbstractWarMojo) :
jspSourceDirectory/jspOutputDirectory and the same for css, scripts and html.
Note in an other use case, the html content is provided by an other artifact.
Furthermore, I didn't find any way to add resources (as struts-config files and so on) in the generated WEB-INF directory.
maybe, I didn't search enough ![]()
If this doesn't exists, I propose to add something :
<webInfContentFolders>
<webInfContentFolder implementation="java.io.File">src/main/resources/struts</webInfContentFolder>
<webInfContentFolder implementation="java.io.File">src/main/resources/tiles</webInfContentFolder>
</webInfContentFolders>
I don't know if this interest some but It's easy to implement and I can provide a patch.
Thanks,
- Olivier
The attached file contains the patch to implements this + MNG-1655
Thanks.
Olivier