[mevenide-user] Netbeans profile causes mojos to execute twice

Magne Nordtveit <magne.nordtveit-4fgah/[email protected]> Tue, 13 May 2008 10:44:01 +0200
Newsgroups gmane.comp.jakarta.turbine.maven.mevenide.user
Organization Offshore Simulator Centre AS
Message-ID <1210668241.12564.16.camel@osc-magne>
Hello,

I just recently updated to version 3.1.1 of the mevenide plugin to
Netbeans and ran into a little ... snag... Those projects that had a
netbeans-public profile generated to be able to run/debug no longer
built properly! I had a glance at the build plan, and discovered that
the mojos were all executing twice, and thus crashing with the following
error:

[ERROR]
[ERROR]
[ERROR]Your build attempted to attach multiple artifacts with the same
classifier to the main project.
[ERROR]
[ERROR]Mojo responsible for second attachment
attempt:org.apache.maven.plugins:maven-source-plugin:2.0.4:jar
[ERROR]
[ERROR]Reported for project:
[ERROR]Group-Id: no.offsim
[ERROR]Artifact-Id: smallapp
[ERROR]Version: 1.1-SNAPSHOT
[ERROR]From file: /home/magne/work/source/smallapp/pom.xml
[ERROR]
[ERROR]
[ERROR]Artifact attachment:
[ERROR]
[ERROR]Group-Id: no.offsim
[ERROR]Artifact-Id: smallapp
[ERROR]Version: 1.1-SNAPSHOT
[ERROR]Type: java-source
[ERROR]Scope: null
[ERROR]Classifier: sources

which is caused by the maven-source-plugin running twice and trying to
attach two similar files smallapp-1.1-SNAPSHOT-sources.jar.

Does anyone have a solution to this other than "Remove the netbeans
profiles"? 

All the projects are created with the old simple archetype in netbeans
5.5-6.0.1 (Possibly in 6.1 too) and with mevenide 3.0.12 (and preceeding
versions built on Maven 2.0.4).

Cheers,
Magne

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email