That depends on how you are using it - but most likely <plugins>.

plugins introduces the plugin and configures it, where
pluginManagement applies configuration anywhere it is introduced
(useful for inheritence). Since the jar plugin is introduced
automatically due to the packaging, they are functionally equivalent.
I recommend using <plugins> unless you have a special need to use the
management feature.

- Brett

On 8/29/05, Sachin Patel <[EMAIL PROTECTED]> wrote:
> Thanks Brett.  By "passing the following configuration" do I put this
> under configuration for <pluginManagement> or <plugins> ?
> 
> Brett Porter wrote:
> > Add the following configuration to the jar plugin:
> >
> > If you place your own manifest file in the resources directory (by
> > default this would be src/main/resources/META-INF/MANIFEST.MF), this
> > should be used. If not, it is a bug.
> >
> > You can also pass the following configuration to the JAR plugin as a
> > complete alternative:
> >
> > <archive>
> >   <manifestFile>...</manifestFile>
> > </archive>
> >
> > Cheers,
> > Brett
> >
> > On 8/29/05, Sachin Patel <[EMAIL PROTECTED]> wrote:
> >
> >> I am running M2 and when running m2 install to build my jar, a manifest
> >> file is included in the snapshot.jar.  How do I prevent this, as I
> >> already have a MANIFEST in my project that I want to include and it
> >> seems as if the Maven one always overwrites it.
> >>
> >> Thanks.
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: [EMAIL PROTECTED]
> >> For additional commands, e-mail: [EMAIL PROTECTED]
> >>
> >>
> >>
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> >
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to