I have a Maven project (pom.xml below) that builds fine from the command line using Maven 2.0.9. However, when I try to build it with Maven 2.1-SNAPSHOT from Netbeans 6.1 using I get an error. The problem seems to centre around the way I have configured filtering, which is http://maven.apache.org/plugins/maven-assembly-plugin/examples/single/filtering-some-distribution-files.html as per the docs . Googling the error didn't return much useful information. Any tips or pointers gratefully accepted.
Error: [ERROR]The following mojo parameter cannot be configured: [ERROR]Uneditable parameter: [ERROR]Name: filters [ERROR]Alias: null [ERROR]in mojo: [ERROR]Group-Id: org.apache.maven.plugins [ERROR]Artifact-Id: maven-assembly-plugin [ERROR]Version: 2.2-beta-1 [ERROR]Mojo: single [ERROR]brought in via: POM [ERROR]While building project: [ERROR]Group-Id: com.somecompany.product.final.generic [ERROR]Artifact-Id: generic [ERROR]Version: 3.1.0.3-SNAPSHOT [ERROR]From file: /home/matt/development/someproduct/maven/someproduct-unified/someproduct-final/generic/pom.xml [ERROR]Instead of configuring this parameter directly, try configuring your POM or settings.xml file. [ERROR]Using the default-value and expression annotations built into the mojo itself, these values were found in your build: [ERROR]Value: null [ERROR]Using the expression:null [ERROR]Value: null [ERROR]Using the expression:null [ERROR]If one of the above expressions rendered a valid value, it may give some indication of which part of the POM or settings.xml you can modify in order to change this parameter's value. pom.xml: <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> <modelVersion>4.0.0</modelVersion> <groupId>com.somecompany.product.final.generic</groupId> <artifactId>generic</artifactId> <packaging>pom</packaging> <name>Generic Final Build</name> <url>http://www.somecompany.com</url> <parent> <groupId>com.somecompany.product.final</groupId> <artifactId>someproduct-final</artifactId> <version>3.1.0.3-SNAPSHOT</version> </parent> <dependencies> <dependency> <artifactId>someproduct-web</artifactId> <groupId>com.somecompany.product</groupId> <type>war</type> <version>3.1.0.3-SNAPSHOT</version> </dependency> <dependency> <artifactId>black</artifactId> <groupId>com.somecompany.product.gui</groupId> <version>3.1.0.3-SNAPSHOT</version> <type>zip</type> <classifier>gui</classifier> </dependency> <dependency> <artifactId>generic</artifactId> <groupId>com.somecompany.product.customer</groupId> <version>3.1.0.3-SNAPSHOT</version> <type>zip</type> <classifier>customer</classifier> </dependency> </dependencies> <build> <plugins> <plugin> <artifactId>maven-assembly-plugin</artifactId> <configuration> <filters> <filter>${basedir}/config.properties</filter> </filters> <descriptorRefs> <descriptorRef>final</descriptorRef> </descriptorRefs> </configuration> <dependencies> <dependency> <groupId>com.somecompany.maven</groupId> <artifactId>someproduct-assemblies</artifactId> <version>3.1.0.2-SNAPSHOT</version> </dependency> </dependencies> <executions> <execution> <id>assemble</id> <phase>package</phase> <goals> <goal>single</goal> </goals> </execution> </executions> </plugin> </plugins> </build> </project> -- View this message in context: http://www.nabble.com/Uneditable-parameter%3A-filters-upgrading-to-2.1-SNAPSHOT-tp21972856p21972856.html Sent from the Maven - Users mailing list archive at Nabble.com.
