Because in AssemblyMojo, filters are in read-only mode, don't understand why
....
It's binded to filters define in build tag

    /**
     * @parameter default-value="${project.build.filters}"
     * @readonly
     */
    protected List filters;



Saminda Abeyruwan-3 wrote:
> 
> Hi All,
> 
> I'm using assembly plugin according to Maven2 doc
> http://maven.apache.org/plugins/maven-assembly-plugin/examples/single/filtering-some-distribution-files.html.
> 
> I've applied the plugin as follows,
> 
> <plugin>
>                         <groupId>org.apache.maven.plugins</groupId>
>                         <artifactId>maven-assembly-plugin</artifactId>
>                         <version>2.2-beta-1</version>
>                         <configuration>
>                                     <filters>
> 
> <filter>src/assemble/filter.properties</filter>
>                                     </filters>
>                                     <descriptors>
>                                         <descriptor>src/assemble/assembly-
> bin.xml</descriptor>
>                                         <descriptor>src/assemble/assembly-
> src.xml</descriptor>
>                                     </descriptors>
>                                 </configuration>
>      </plugin>
> 
> 
> All my descriptors are in the correct location , When using mvn
> assembly:assembly, it keeps on displaying the error message,
> 
>  Error configuring: org.apache.maven.plugins:maven-assembly-plugin.
> Reason:
> ERROR: Cannot override read-only parameter: filters in goal:
> assembly:assembly
> 
> 
> Wonder why this happen ?
> 
> Saminda
> -- 
> Saminda Abeyruwan
> 
> Senior Software Engineer
> WSO2 Inc. - www.wso2.org
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Assembly-plugin-with-filtering-tf4635144s177.html#a13833735
Sent from the Maven - Users mailing list archive at Nabble.com.


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

Reply via email to