jira.codehaus.org

  • Log In Access more options
    • Online Help
    • Keyboard Shortcuts
    • About JIRA
    • JIRA Credits
    • What?s New
  • Dashboards Access more options (Alt+d)
  • Projects Access more options (Alt+p)
  • Issues Access more options (Alt+i)
Signup
Maven 2.x WAR Plugin
  • Maven 2.x WAR Plugin
  • MWAR-10

war-plugin feature

  • Log In
  • Views
    • XML
    • Word
    • Printable

Details

  • Type: Improvement Improvement
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Duplicate
  • Affects Version/s: None
  • Fix Version/s: None
  • Component/s: None
  • Labels:
    None
  • Environment:
    all
  • Number of attachments :
    1

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">$

{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
  • Options
    • Sort By Name
    • Sort By Date
    • Ascending
    • Descending
    • Download All

Attachments

  1. File
    MNG-1669
    24/Nov/05 4:02 PM
    9 kB
    Olivier Lamy

Activity

Ascending order - Click to sort in descending order
  • All
  • Comments
  • Work Log
  • History
  • Activity
Hide
Permalink
Olivier Lamy added a comment - 24/Nov/05 4:02 PM

The attached file contains the patch to implements this + MNG-1655
Thanks.
Olivier

Show
Olivier Lamy added a comment - 24/Nov/05 4:02 PM The attached file contains the patch to implements this + MNG-1655 Thanks. Olivier
Hide
Permalink
Olivier Lamy added a comment - 25/Nov/05 11:25 AM

Not apply patch. A bigger one will be provided with issue MNG-1683

Show
Olivier Lamy added a comment - 25/Nov/05 11:25 AM Not apply patch. A bigger one will be provided with issue MNG-1683

People

  • Assignee:
    Unassigned
    Reporter:
    Olivier Lamy
Vote (0)
Watch (0)

Dates

  • Created:
    23/Nov/05 11:14 AM
    Updated:
    08/Mar/06 11:10 PM
    Resolved:
    25/Nov/05 11:25 AM
  • Atlassian JIRA (v5.2.7#850-sha1:b2af0c8)
  • Report a problem
  • Powered by a free Atlassian JIRA open source license for Codehaus. Try JIRA - bug tracking software for your team.