You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Gautham Pamu <ga...@gmail.com> on 2006/04/21 21:17:32 UTC

m2 how to package a manifest file in a jar

Hi Everyone,

Maven jar is create the manifest file but is it possible to package an
existing file from the src directory. I need this to package an eclipse
plugin and it already has a manifest file.

Are there an special plugins to package eclipse plugins ?

--
-Gautham Pamu

Re: m2 how to package a manifest file in a jar

Posted by Gautham Pamu <ga...@gmail.com>.
Thanks Everyone for answering my questions.

Thanks Tim Kettler for sending the code snippet to configure the manifest in
the jar.

Thanks
Gautham Pamu

On 4/22/06, dan tran <da...@gmail.com> wrote:
>
> There are some discussions last couple weeks to have a maven 2 plugin to
> build eclipse PDE artifacts.
>
> May be you can yell out loud, the person that has the plugin may speedup
> the
> submission process to MOJO ;-)
>
> -D
>
>
>
> On 4/21/06, Tim Kettler <ti...@udo.edu> wrote:
> >
> >
> >
> > Wayne Fay schrieb:
> > > Is there a reason you can't move it?? So many people on this list make
> > > their lives "miserable" by ignoring Maven defaults/standards and
> > > rigging things to fit their own layout. I find it easier to simply
> > > adjust my projects to fit the expectations of Maven.
> > >
> >
> > If I remember correctly the Eclipse PDE creates a manifest file with
> > custom information at
> > a fixed location. So in this case it is not possible to just move the
> > manifest file.
> >
> > > And yes, I believe you can configure the location of the MANIFEST.MF
> > > file in the Jar plugin, but I'm not certain of the details.
> >
> > <plugin>
> >   <groupId>org.apache.maven.plugins</groupId>
> >   <artifactId>maven-jar-plugin</artifactId>
> >   <configuration>
> >     <archive>
> >       <manifestFile>${basedir}/MANIFEST.MF</manifestFile>
> >     </archive>
> >   </configuration>
> > </plugin>
> >
> > >
> > > Wayne
> > >
> > > On 4/21/06, Gautham Pamu <ga...@gmail.com> wrote:
> > >> Hi Wayne,
> > >>
> > >> Thanks for responding for my question. my META-INF is in $basedir}
> > >> directory. is it possible to have manifest in a different location.
> > >>
> > >> Thanks
> > >> Gautham Pamu
> > >>
> > >> On 4/21/06, Wayne Fay <wa...@gmail.com> wrote:
> > >>> Your manifest should be in:
> > >>> src/main/resources/META-INF/MANIFEST.MF
> > >>>
> > >>> if you want it to end up in Jar-root/META-INF/MANIFEST.MF
> > >>>
> > >>> Wayne
> > >>>
> > >>> On 4/21/06, Gautham Pamu <ga...@gmail.com> wrote:
> > >>>> Hi Everyone,
> > >>>>
> > >>>> Maven jar is create the manifest file but is it possible to package
> > an
> > >>>> existing file from the src directory. I need this to package an
> > eclipse
> > >>>> plugin and it already has a manifest file.
> > >>>>
> > >>>> Are there an special plugins to package eclipse plugins ?
> > >>>>
> > >>>> --
> > >>>> -Gautham Pamu
> > >>>>
> > >>>>
> > >>
> > >>
> > >> --
> > >> -Gautham Pamu
> > >>
> > >>
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > For additional commands, e-mail: users-help@maven.apache.org
> >
> >
>
>


--
-Gautham Pamu

Re: m2 how to package a manifest file in a jar

Posted by dan tran <da...@gmail.com>.
There are some discussions last couple weeks to have a maven 2 plugin to
build eclipse PDE artifacts.

May be you can yell out loud, the person that has the plugin may speedup the
submission process to MOJO ;-)

-D



On 4/21/06, Tim Kettler <ti...@udo.edu> wrote:
>
>
>
> Wayne Fay schrieb:
> > Is there a reason you can't move it?? So many people on this list make
> > their lives "miserable" by ignoring Maven defaults/standards and
> > rigging things to fit their own layout. I find it easier to simply
> > adjust my projects to fit the expectations of Maven.
> >
>
> If I remember correctly the Eclipse PDE creates a manifest file with
> custom information at
> a fixed location. So in this case it is not possible to just move the
> manifest file.
>
> > And yes, I believe you can configure the location of the MANIFEST.MF
> > file in the Jar plugin, but I'm not certain of the details.
>
> <plugin>
>   <groupId>org.apache.maven.plugins</groupId>
>   <artifactId>maven-jar-plugin</artifactId>
>   <configuration>
>     <archive>
>       <manifestFile>${basedir}/MANIFEST.MF</manifestFile>
>     </archive>
>   </configuration>
> </plugin>
>
> >
> > Wayne
> >
> > On 4/21/06, Gautham Pamu <ga...@gmail.com> wrote:
> >> Hi Wayne,
> >>
> >> Thanks for responding for my question. my META-INF is in $basedir}
> >> directory. is it possible to have manifest in a different location.
> >>
> >> Thanks
> >> Gautham Pamu
> >>
> >> On 4/21/06, Wayne Fay <wa...@gmail.com> wrote:
> >>> Your manifest should be in:
> >>> src/main/resources/META-INF/MANIFEST.MF
> >>>
> >>> if you want it to end up in Jar-root/META-INF/MANIFEST.MF
> >>>
> >>> Wayne
> >>>
> >>> On 4/21/06, Gautham Pamu <ga...@gmail.com> wrote:
> >>>> Hi Everyone,
> >>>>
> >>>> Maven jar is create the manifest file but is it possible to package
> an
> >>>> existing file from the src directory. I need this to package an
> eclipse
> >>>> plugin and it already has a manifest file.
> >>>>
> >>>> Are there an special plugins to package eclipse plugins ?
> >>>>
> >>>> --
> >>>> -Gautham Pamu
> >>>>
> >>>>
> >>
> >>
> >> --
> >> -Gautham Pamu
> >>
> >>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>

Re: m2 how to package a manifest file in a jar

Posted by Tim Kettler <ti...@udo.edu>.

Wayne Fay schrieb:
> Is there a reason you can't move it?? So many people on this list make
> their lives "miserable" by ignoring Maven defaults/standards and
> rigging things to fit their own layout. I find it easier to simply
> adjust my projects to fit the expectations of Maven.
> 

If I remember correctly the Eclipse PDE creates a manifest file with custom information at 
a fixed location. So in this case it is not possible to just move the manifest file.

> And yes, I believe you can configure the location of the MANIFEST.MF
> file in the Jar plugin, but I'm not certain of the details.

<plugin>
   <groupId>org.apache.maven.plugins</groupId>
   <artifactId>maven-jar-plugin</artifactId>
   <configuration>
     <archive>
       <manifestFile>${basedir}/MANIFEST.MF</manifestFile>
     </archive>
   </configuration>
</plugin>

> 
> Wayne
> 
> On 4/21/06, Gautham Pamu <ga...@gmail.com> wrote:
>> Hi Wayne,
>>
>> Thanks for responding for my question. my META-INF is in $basedir}
>> directory. is it possible to have manifest in a different location.
>>
>> Thanks
>> Gautham Pamu
>>
>> On 4/21/06, Wayne Fay <wa...@gmail.com> wrote:
>>> Your manifest should be in:
>>> src/main/resources/META-INF/MANIFEST.MF
>>>
>>> if you want it to end up in Jar-root/META-INF/MANIFEST.MF
>>>
>>> Wayne
>>>
>>> On 4/21/06, Gautham Pamu <ga...@gmail.com> wrote:
>>>> Hi Everyone,
>>>>
>>>> Maven jar is create the manifest file but is it possible to package an
>>>> existing file from the src directory. I need this to package an eclipse
>>>> plugin and it already has a manifest file.
>>>>
>>>> Are there an special plugins to package eclipse plugins ?
>>>>
>>>> --
>>>> -Gautham Pamu
>>>>
>>>>
>>
>>
>> --
>> -Gautham Pamu
>>
>>


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


Re: m2 how to package a manifest file in a jar

Posted by Wayne Fay <wa...@gmail.com>.
Is there a reason you can't move it?? So many people on this list make
their lives "miserable" by ignoring Maven defaults/standards and
rigging things to fit their own layout. I find it easier to simply
adjust my projects to fit the expectations of Maven.

And yes, I believe you can configure the location of the MANIFEST.MF
file in the Jar plugin, but I'm not certain of the details.

Wayne

On 4/21/06, Gautham Pamu <ga...@gmail.com> wrote:
> Hi Wayne,
>
> Thanks for responding for my question. my META-INF is in $basedir}
> directory. is it possible to have manifest in a different location.
>
> Thanks
> Gautham Pamu
>
> On 4/21/06, Wayne Fay <wa...@gmail.com> wrote:
> >
> > Your manifest should be in:
> > src/main/resources/META-INF/MANIFEST.MF
> >
> > if you want it to end up in Jar-root/META-INF/MANIFEST.MF
> >
> > Wayne
> >
> > On 4/21/06, Gautham Pamu <ga...@gmail.com> wrote:
> > > Hi Everyone,
> > >
> > > Maven jar is create the manifest file but is it possible to package an
> > > existing file from the src directory. I need this to package an eclipse
> > > plugin and it already has a manifest file.
> > >
> > > Are there an special plugins to package eclipse plugins ?
> > >
> > > --
> > > -Gautham Pamu
> > >
> > >
> >
>
>
>
> --
> -Gautham Pamu
>
>

Re: m2 how to package a manifest file in a jar

Posted by Gautham Pamu <ga...@gmail.com>.
Hi Wayne,

Thanks for responding for my question. my META-INF is in $basedir}
directory. is it possible to have manifest in a different location.

Thanks
Gautham Pamu

On 4/21/06, Wayne Fay <wa...@gmail.com> wrote:
>
> Your manifest should be in:
> src/main/resources/META-INF/MANIFEST.MF
>
> if you want it to end up in Jar-root/META-INF/MANIFEST.MF
>
> Wayne
>
> On 4/21/06, Gautham Pamu <ga...@gmail.com> wrote:
> > Hi Everyone,
> >
> > Maven jar is create the manifest file but is it possible to package an
> > existing file from the src directory. I need this to package an eclipse
> > plugin and it already has a manifest file.
> >
> > Are there an special plugins to package eclipse plugins ?
> >
> > --
> > -Gautham Pamu
> >
> >
>



--
-Gautham Pamu

Re: m2 how to package a manifest file in a jar

Posted by Wayne Fay <wa...@gmail.com>.
Your manifest should be in:
src/main/resources/META-INF/MANIFEST.MF

if you want it to end up in Jar-root/META-INF/MANIFEST.MF

Wayne

On 4/21/06, Gautham Pamu <ga...@gmail.com> wrote:
> Hi Everyone,
>
> Maven jar is create the manifest file but is it possible to package an
> existing file from the src directory. I need this to package an eclipse
> plugin and it already has a manifest file.
>
> Are there an special plugins to package eclipse plugins ?
>
> --
> -Gautham Pamu
>
>

Re: m2 how to package a manifest file in a jar

Posted by Tim Kettler <ti...@udo.edu>.
Gautham Pamu schrieb:
> Hi Everyone,
> 
> Maven jar is create the manifest file but is it possible to package an
> existing file from the src directory. I need this to package an eclipse
> plugin and it already has a manifest file.
> 
> Are there an special plugins to package eclipse plugins ?

As far as I know there is no eclipse-plugin plugin. There is an OSGi bundle plugin at 
http://mavenosgiplugin.berlios.de/ but that won't help you with the eclipse specific OSGI 
enhencements like plugin.xml.

> 
> --
> -Gautham Pamu
> 

-Tim

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