Re: [mevenide-user] Netbeans profile causes mojos to execute twice
Magne Nordtveit <magne.nordtveit-4fgah/[email protected]> Wed, 14 May 2008 10:57:00 +0200
| Newsgroups | gmane.comp.jakarta.turbine.maven.mevenide.user |
|---|---|
| Organization | Offshore Simulator Centre AS |
| Message-ID | <1210755420.7655.1.camel@osc-magne> |
Cheers, that did solve the problem without breaking anything. BUT I now
have a deprecated warning when I am building
[WARN]DEPRECATED: Binding aggregator mojos to lifecycle phases in the
POM is considered dangerous.
[WARN]This feature has been deprecated. Please adjust your POM files
accordingly.
On Tue, 2008-05-13 at 17:20 -0700, Daniel Mutch wrote:
>
> 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
> >
> >
> >
> >
>
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email