You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Roberto UserList <rc...@gmail.com> on 2007/01/23 14:12:59 UTC
[M2] How to include artifact version into MANIFEST.MF
Hi all! I'm trying to include artifact's version (variable versao.sis) into
manifest.mf file in a jar, war and ear, but I didn't manager to do this.
I tried to include the lines below, but it didn't work:
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<configuration>
<archive>
<manifestEntries>
*<Implementation-Version>${versao.sis}</Implementation-Version>*
</manifestEntries>
</archive>
</configuration>
</plugin>
How can I do this kind of thing?
Thanks a lot in advance.
Regards,
Roberto.
Re: [M2] How to include artifact version into MANIFEST.MF
Posted by Kalle Korhonen <ka...@gmail.com>.
What does this have to do with the assembly plugin? Isn't this a feature of
archiver - jar/war/ear plugins? The documentation at
http://maven.apache.org/plugins/maven-war-plugin/examples/war-manifest-guide.htmlsays
the syntax is:
<archiver>
<manifest_entry>value</manifest_entry>
</archiver>
And sure enough, it works in maven-war-plugin 2.0, but unexpectedly silently
breaks in 2.0.2. However, in 2.0.2 the syntax you used:
<archive>
<manifestEntries>
<manifest_entry>value</manifest_entry>
</manifestEntries>
</archive>
works, and the old syntax silently breaks. This is just another one of those
not so well document behaviors... I'd check the version of the plugin you
are using.
Kalle
On 1/23/07, berndq <be...@gmx.net> wrote:
>
> Hi Roberto,
>
> this is a bug in the assembly plugin
>
> http://jira.codehaus.org/browse/MASSEMBLY-121
>
> The bug is fixed now but the fix does not work for me.
>
> Let me know if it works for you.
>
> Bernd
>
> > Hi all! I'm trying to include artifact's version (variable versao.sis)
> into
> > manifest.mf file in a jar, war and ear, but I didn't manager to do this.
> > I tried to include the lines below, but it didn't work:
> > <plugin>
> > <groupId>org.apache.maven.plugins</groupId>
> > <artifactId>maven-jar-plugin</artifactId>
> > <configuration>
> > <archive>
> > <manifestEntries>
> > *<Implementation-Version>${versao.sis}</Implementation-Version>*
> > </manifestEntries>
> > </archive>
> > </configuration>
> > </plugin>
> > How can I do this kind of thing?
> > Thanks a lot in advance.
> > Regards,
> > Roberto.
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
Re: [M2] How to include artifact version into MANIFEST.MF
Posted by berndq <be...@gmx.net>.
Hi Roberto,
this is a bug in the assembly plugin
http://jira.codehaus.org/browse/MASSEMBLY-121
The bug is fixed now but the fix does not work for me.
Let me know if it works for you.
Bernd
> Hi all! I'm trying to include artifact's version (variable versao.sis) into
> manifest.mf file in a jar, war and ear, but I didn't manager to do this.
> I tried to include the lines below, but it didn't work:
> <plugin>
> <groupId>org.apache.maven.plugins</groupId>
> <artifactId>maven-jar-plugin</artifactId>
> <configuration>
> <archive>
> <manifestEntries>
> *<Implementation-Version>${versao.sis}</Implementation-Version>*
> </manifestEntries>
> </archive>
> </configuration>
> </plugin>
> How can I do this kind of thing?
> Thanks a lot in advance.
> Regards,
> Roberto.
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org