I think I found a bug in the assembly plugin. When I specify a single
file in my assembly, like so:
<files>
<file>
<source>src/main/resources/faxing.sh</source>
<outputDirectory>/</outputDirectory>
<filtered>true</filtered>
</file>
</files>
it is filtered properly using the <project><build><filters>.
But if I specify a fileset, like so:
<fileSets>
<fileSet>
<directory>src/main/resources</directory>
<outputDirectory>/</outputDirectory>
<includes>
<include>*.sh</include>
</includes>
<filtered>true</filtered>
</fileSet>
</fileSets>
the resources are *not* filtered. This isn't intentional, is it?
Dave
On 9/21/07, Dave Feltenberger <[EMAIL PROTECTED]> wrote:
> All,
>
> I'm having an issue filtering resources with the assembly plugin.
>
> In the documentation at:
> http://maven.apache.org/plugins/maven-assembly-plugin/examples/single/filtering-some-distribution-files.html
>
> there is an example of using the assembly plugin. Here is the part in
> the pom that says how to specify the filter file:
>
> <plugin>
> <artifactId>maven-assembly-plugin</artifactId>
> <configuration>
> <filters>
> <filter>src/assemble/filter.properties</filter>
> </filters>
> <descriptors>
> <descriptor>src/assemble/distribution.xml</descriptor>
> </descriptors>
> </configuration>
> </plugin>
>
> When I add a <filters> tag in my pom in the location specified above,
> I get the following error:
> [INFO] Error configuring:
> org.apache.maven.plugins:maven-assembly-plugin. Reason: ERROR: Cannot
> override read-only parameter: filters in goal: assembly:assembly
>
> I've tried lots of permutations: adding the filters tag to the
> <project><build> structure, configuring it to run the attached goal,
> etc., and nothing will work. When I specify the filters in the
> <build> tag, I get no error, but it also doesn't filter.
>
> Is this an error in the documentation or an issue with 2.2-beta1? Or
> am I just doing something incorrectly?
>
> Dave
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]