Message:
The following issue has been closed.
Resolver: Brett Porter
Date: Mon, 21 Feb 2005 11:22 PM
ok, this won't be explicitly added to the POM.
However: in future versions of Maven - all of the plugin configuration will be
in the POM anyway in a usable format. So these will remain properties of the
dist plugin.
If the dist plugin can't do any of these things, please open a new issue
against it.
---------------------------------------------------------------------
View the issue:
http://jira.codehaus.org/browse/MAVEN-1381
Here is an overview of the issue:
---------------------------------------------------------------------
Key: MAVEN-1381
Summary: add POM section to specify additional files/dirs to be included in
distribution
Type: Improvement
Status: Closed
Priority: Major
Resolution: WON'T FIX
Original Estimate: Unknown
Time Spent: Unknown
Remaining: Unknown
Project: maven
Components:
model additions
Versions:
1.0
Assignee:
Reporter: Ian Springer
Created: Mon, 19 Jul 2004 10:50 AM
Updated: Mon, 21 Feb 2005 11:22 PM
Environment: n/a
Description:
There should be an optional section in project.xml for specifying additional
files/dirs to be included in the distribution that is build by the dist plugin.
Something along the lines of:
<dist>
<filesets>
<fileset>
<directory>${maven.war.webapp.dir}</directory>
<prefix>webapps/wsdm</prefix>
<excludes>
<exclude>**/.*</exclude>
</excludes>
</fileset>
</filesets>
</dist>
Otherwise, one ends up having to do a bunch of Ant copies in maven.xml, like so:
<!-- ================================================================== -->
<!-- D I S T : P R E P A R E - B I N - F I L E S Y S T E M -->
<!-- P O S T - G O A L -->
<!-- ================================================================== -->
<!-- Make sure our webapp dir is included in the binary distribution. -->
<!-- Make sure miscellaneous resources go into the distribution. -->
<!-- ================================================================== -->
<postGoal name="dist:prepare-bin-filesystem">
<attainGoal name="war:webapp" />
<mkdir dir="${maven.dist.bin.assembly.dir}/webapps/wsdm" />
<copy todir="${maven.dist.bin.assembly.dir}/webapps/wsdm">
<fileset dir="${maven.war.webapp.dir}" />
</copy>
<!-- make sure the dist includes our docs, examples and other resources -->
<copy todir="${maven.dist.bin.assembly.dir}/docs">
<fileset dir="${basedir}/docs" />
</copy>
<copy todir="${maven.dist.bin.assembly.dir}/examples">
<fileset dir="${basedir}/examples" />
</copy>
<copy todir="${maven.dist.bin.assembly.dir}">
<fileset dir="${basedir}">
<include name="readme.htm"/>
<include name="WsdmWsdl2Java.cmd"/>
</fileset>
</copy>
</postGoal>
MUCH easier and cleaner to be able to specify it via the POM.
---------------------------------------------------------------------
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]