use netbeans 6.5 and use the command line execution within netbeans.
The embedded builds are broken on many levels and since 6.5 they are
only used as backup if no maven binaries are found on your PATH.

Milos

On Thu, Feb 12, 2009 at 10:50 AM, Madeye <m...@madeye.com> wrote:
>
> 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:
>
> &lt;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"&gt;
>  &lt;modelVersion&gt;4.0.0&lt;/modelVersion&gt;
>  &lt;groupId&gt;com.somecompany.product.final.generic&lt;/groupId&gt;
>  &lt;artifactId&gt;generic&lt;/artifactId&gt;
>  &lt;packaging&gt;pom&lt;/packaging&gt;
>  &lt;name&gt;Generic Final Build&lt;/name&gt;
>  &lt;url&gt;http://www.somecompany.com&lt;/url&gt;
>  &lt;parent&gt;
>    &lt;groupId&gt;com.somecompany.product.final&lt;/groupId&gt;
>    &lt;artifactId&gt;someproduct-final&lt;/artifactId&gt;
>    &lt;version&gt;3.1.0.3-SNAPSHOT&lt;/version&gt;
>  &lt;/parent&gt;
>  &lt;dependencies&gt;
>    &lt;dependency&gt;
>      &lt;artifactId&gt;someproduct-web&lt;/artifactId&gt;
>      &lt;groupId&gt;com.somecompany.product&lt;/groupId&gt;
>      &lt;type&gt;war&lt;/type&gt;
>      &lt;version&gt;3.1.0.3-SNAPSHOT&lt;/version&gt;
>    &lt;/dependency&gt;
>    &lt;dependency&gt;
>      &lt;artifactId&gt;black&lt;/artifactId&gt;
>      &lt;groupId&gt;com.somecompany.product.gui&lt;/groupId&gt;
>      &lt;version&gt;3.1.0.3-SNAPSHOT&lt;/version&gt;
>      &lt;type&gt;zip&lt;/type&gt;
>      &lt;classifier&gt;gui&lt;/classifier&gt;
>    &lt;/dependency&gt;
>    &lt;dependency&gt;
>      &lt;artifactId&gt;generic&lt;/artifactId&gt;
>      &lt;groupId&gt;com.somecompany.product.customer&lt;/groupId&gt;
>      &lt;version&gt;3.1.0.3-SNAPSHOT&lt;/version&gt;
>      &lt;type&gt;zip&lt;/type&gt;
>      &lt;classifier&gt;customer&lt;/classifier&gt;
>    &lt;/dependency&gt;
>   &lt;/dependencies&gt;
>  &lt;build&gt;
>    &lt;plugins&gt;
>      &lt;plugin&gt;
>        &lt;artifactId&gt;maven-assembly-plugin&lt;/artifactId&gt;
>        &lt;configuration&gt;
>              &lt;filters&gt;
>
> &lt;filter&gt;${basedir}/config.properties&lt;/filter&gt;
>              &lt;/filters&gt;
>          &lt;descriptorRefs&gt;
>            &lt;descriptorRef&gt;final&lt;/descriptorRef&gt;
>          &lt;/descriptorRefs&gt;
>        &lt;/configuration&gt;
>        &lt;dependencies&gt;
>          &lt;dependency&gt;
>            &lt;groupId&gt;com.somecompany.maven&lt;/groupId&gt;
>            &lt;artifactId&gt;someproduct-assemblies&lt;/artifactId&gt;
>            &lt;version&gt;3.1.0.2-SNAPSHOT&lt;/version&gt;
>          &lt;/dependency&gt;
>        &lt;/dependencies&gt;
>        &lt;executions&gt;
>          &lt;execution&gt;
>            &lt;id&gt;assemble&lt;/id&gt;
>            &lt;phase&gt;package&lt;/phase&gt;
>            &lt;goals&gt;
>              &lt;goal&gt;single&lt;/goal&gt;
>            &lt;/goals&gt;
>          &lt;/execution&gt;
>        &lt;/executions&gt;
>      &lt;/plugin&gt;
>    &lt;/plugins&gt;
>  &lt;/build&gt;
> &lt;/project&gt;
>
> --
> 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.
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org

Reply via email to