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]

Reply via email to