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

Daniel Mutch <[email protected]> Tue, 13 May 2008 17:20:14 -0700 (PDT)
Newsgroups gmane.comp.jakarta.turbine.maven.mevenide.user
Message-ID <[email protected]>

Try changing the goal in the profile from directory to directory-inline.
This will prevent Maven from forking the process when it finds the assembly
profile, which can have some unexpected concequences including building the
project more than once.

cheers
Dan


Magne Nordtveit-2 wrote:
> 
> 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
> 
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/Netbeans-profile-causes-mojos-to-execute-twice-tp17203841p17220998.html
Sent from the mevenide - user mailing list archive at Nabble.com.


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

    http://xircles.codehaus.org/manage_email