The following comment has been added to this issue:

     Author: Michal Maczka
    Created: Thu, 15 Jan 2004 7:06 AM
       Body:
Well I was using xdoclet and my own generator and I was able to instruct them both to 
generate their stuff into
${maven.war.build.dir}

I don't remember details but I think that it is as simple as

changing from:
maven.xdoclet.webdoclet.destDir=${maven.build.dir}/xdoclet/webdoclet/WEB-INF

to:
maven.xdoclet.webdoclet.destDir=${maven.war.webapp.dir}/WEB-INF


I usually work with "exploded" webapps and generate wars only if I have to.

So in my case (if I have to use Tomcat) 
${maven.war.webapp.dir}=${tomcat.home}/webapps/my_application

I don't see what's more you might need...

Michal
---------------------------------------------------------------------
View the issue:

  http://jira.codehaus.org/secure/ViewIssue.jspa?key=MPWAR-16


Here is an overview of the issue:
---------------------------------------------------------------------
        Key: MPWAR-16
    Summary: war plugin cannot add other files to web-inf without workaround
       Type: Improvement

     Status: Open
   Priority: Major

 Original Estimate: 30 minutes
 Time Spent: Unknown
  Remaining: 30 minutes

    Project: maven-war-plugin

   Assignee: Jason van Zyl
   Reporter: Tim Chen

    Created: Wed, 14 Jan 2004 4:33 PM
    Updated: Thu, 15 Jan 2004 7:06 AM
Environment: maven 1.0 rc-1
war plugin 1.4 and 1.5 SNAPSHOT

Description:
Consider a struts war which might have:

WEB-INF/
  web.xml
  struts-config.xml

The current war plugin does not allow you to copy struts-config.xml into WEB-INF 
without a maven.xml postgoal hack.

A possible patch would be to add the following to war:webapp

<ant:copy todir="${webapp.build.webinf}">
   <ant:fileset dir="${maven.war.webxml.src}"
       includes="${maven.war.webxml.src.includes}"
       excludes="${maven.war.webxml.src.excludes}"/>
</ant:copy>

an example project.properties using this would be:
maven.xdoc.date=left
maven.xdoc.version=${pom.currentVersion}
maven.multiproject.type=war

maven.xdoclet.webdoclet.destDir=${maven.build.dir}/xdoclet/webdoclet/WEB-INF
maven.xdoclet.webdoclet.mergeDir=${maven.src.dir}/merge
maven.xdoclet.webdoclet.fileset.0.include=**/*.java
maven.xdoclet.webdoclet.strutsconfigxml.0=true
maven.xdoclet.webdoclet.strutsconfigxml.0.Version=1.1
maven.xdoclet.webdoclet.strutsconfigxml.0.mergeDir=${maven.src.dir}/merge
maven.xdoclet.webdoclet.jsptaglib.0=false

maven.war.src=${maven.xdoclet.webdoclet.dir}
maven.war.webxml=${maven.xdoclet.webdoclet.destDir}/web.xml
maven.war.webxml.src=${maven.xdoclet.webdoclet.destDir}
maven.war.webxml.src.includes=struts*.xml

The proposed patch could be enhanced by ignoring web.xml if it is in the same 
directory etc.


---------------------------------------------------------------------
JIRA INFORMATION:
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

If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


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

Reply via email to