war-plugin feature
------------------

         Key: MNG-1669
         URL: http://jira.codehaus.org/browse/MNG-1669
     Project: Maven 2
        Type: Improvement
  Components: maven-war-plugin  
 Environment: all
    Reporter: Olivier Lamy


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">${basedir}/src/main/web</warSourceDirectory>
<webXml>${basedir}/src/main/resources/war/web.xml</webXml>
<webappDirectory 
implementation="java.io.File">${basedir}/webappdir/OTAStats</webappDirectory>

The generated webapp is :
${basedir}/webappdir/OTAStats/css (ok)
${basedir}/webappdir/OTAStats/scripts (ok)
${basedir}/webappdir/OTAStats/jsp (not good my index.jsp is not in the correct 
directory)
${basedir}/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

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to