You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by "Weichselbaumer Michael (MWE 4170)" <mi...@ntswincash.com> on 2009/02/11 15:13:11 UTC

Excluding Manifest.MF when generating jar-files

Hello list,
 
I am currently trying to create jar-files without the MANIFEST.MF
included.
How can i tell Maven2 to not include those?
 
I have already figured out that adding:
 
<plugin>
    <groupId>org.apache.maven.plugins</groupId>
    <artifactId>maven-jar-plugin</artifactId>
    <configuration>
        <archive>
            <addMavenDescriptor>false</addMavenDescriptor> 
        </archive>
    </configuration>
</plugin>

helps me removing that "maven" subfolder in "META-INF", which contains
pom.properties and stuff. But now I would like to not include a
MANIFEST.MF either. Anyway, I can't figure out how to configure that.
Could anyone help me with this?!


Re: Excluding Manifest.MF when generating jar-files

Posted by Heinrich Nirschl <he...@gmail.com>.
On Thu, Feb 12, 2009 at 8:29 AM, Weichselbaumer Michael (MWE 4170)
<mi...@ntswincash.com> wrote:
> Manifest.MF files are created dynamically, but I need to compare newly
> built jar-artifacts to older ones in order to find out if they have
> changed. This is done by simply checking md5 hashes. Those hashes are
> modified by the manifest.mf ... therefore I need to get rid of it ...

The jar file stores also the file date of the individual files. I am
not sure I fully understand what you are trying to do, but the
MANIFEST.MF file is probably not your only problem.

Henry

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


RE: Excluding Manifest.MF when generating jar-files

Posted by "Weichselbaumer Michael (MWE 4170)" <mi...@ntswincash.com>.
Manifest.MF files are created dynamically, but I need to compare newly
built jar-artifacts to older ones in order to find out if they have
changed. This is done by simply checking md5 hashes. Those hashes are
modified by the manifest.mf ... therefore I need to get rid of it ... 


-----Original Message-----
From: Wayne Fay [mailto:waynefay@gmail.com] 
Sent: Mittwoch, 11. Februar 2009 18:55
To: Maven Users List
Subject: Re: Excluding Manifest.MF when generating jar-files

> I am currently trying to create jar-files without the MANIFEST.MF 
> included.
> How can i tell Maven2 to not include those?

What possible reason do you have for needing this functionality? I'm
curious.

Wayne

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


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


Re: Excluding Manifest.MF when generating jar-files

Posted by Wayne Fay <wa...@gmail.com>.
> I am currently trying to create jar-files without the MANIFEST.MF
> included.
> How can i tell Maven2 to not include those?

What possible reason do you have for needing this functionality? I'm curious.

Wayne

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