Questions tagged [manifest.mf]

In software packaging, it is common to list the contents of a distribution in a manifest file

This file simply enumerates the files which are included in the distribution, either for processing by various packaging tools, or for human consumption.

The term is a loan from shipping, where a ship's manifest would list the crew or cargo of a vessel.

The manifest may optionally contain a cryptographic hash or checksum of each file. By creating a cryptographic signature for such a manifest file, the entire contents of the distribution package can be validated, as altering any of the files will invalidate the checksums in the manifest file.

The manifest files usually have .MF extension.

337 questions
16
votes
1 answer

What are the purposes of files in META-INF folder of an APK file?

What are the purposes of MANIFEST.MF, CERT.SF and CERT.RSA file in the META-INF folder in an android APK.
15
votes
5 answers

"No main manifest attribute" when creating Kotlin jar using IntelliJ IDEA

When creating a jar from my Kotlin code and running it, it says "No main manifest attribute". When looking at the manifest.mf, it has this content: Manifest-Version: 1.0 When looking at the file in the source, it has this content: Manifest-Version:…
Luna
  • 193
  • 1
  • 2
  • 10
15
votes
1 answer

What is Manifest-Version in MANIFEST.MF?

In the MANIFEST.MF file found in JARs, the first line is Manifest-Version: 1.0. According to the Java Tutorials, this first line says that "the default manifest conforms to version 1.0 of the manifest specification". So in what cases would the…
reesjones
  • 704
  • 3
  • 9
  • 28
14
votes
1 answer

Eclipse Plugin Settings - Activation and Singleton Settings

In the Eclipse manifest editor, there exist check boxes for enabling/disabling plug-in activation and singleton behavior, as shown below: [ ] Activate this plug-in when one of its classes is loaded [ ] This plug-in is a singleton Questions: When…
13
votes
6 answers

Shorten classpath (-cp) for command line

My maven build in failing on jdeps plugin (we need it to upgrade to jdk11). The command line is too long for windows. Here is the error I get: [ERROR] Failed to execute goal org.apache.maven.plugins:maven-jdeps-plugin:3.1.1:jdkinternals (default) on…
Fundhor
  • 3,369
  • 1
  • 25
  • 47
13
votes
4 answers

Hiding manifest entries with maven

When building a jar file with maven, it will create a manifest file in META-INF/MANIFEST.MF. Its contents currently are: Manifest-Version: 1.0 Archiver-Version: Plexus…
user3881996
13
votes
2 answers

Eclipse-plugin-dev: How to get current bundle version?

In Eclipse plugin development: How to get current bundle version? It is just in Manifest.MF Manifest-Version: 1.0 Bundle-ManifestVersion: 2 Bundle-Name: Nodeclipse Bundle-SymbolicName: org.nodeclipse.ui;singleton:=true Bundle-Version:…
Paul Verest
  • 60,022
  • 51
  • 208
  • 332
12
votes
6 answers

Should log4.properties be on the classpath?

I'm having some problems putting my log4j.properties file on classpath. I can use it when I'm developing (Eclipse Indigo) but, when I export my app as a JAR, I can't. I've made by hand a MANIFEST.MF file for the exported JAR: Manifest-Version:…
rnunes
  • 2,785
  • 7
  • 28
  • 56
12
votes
2 answers

How to generate MANIFEST.MF file during compile phase

Standard way - using maven-jar-plugin - generates manifest file only during package phase and directly into jar file. What I need is to generate manifest during compile phase and to be available in /classes/META-INF. My goal is to be able to…
Petr Újezdský
  • 1,233
  • 12
  • 13
12
votes
3 answers

Bundling native dll with jar

Possible Duplicate: How to bundle a native library and a JNI library inside a JAR? I need to include native lib (jnotify but I think that it does't matter) to my jar. I want to do it with NetBeans. I added Bundle-NativeCode: /lib/jnotify.dll;…
Maciek Sawicki
  • 6,717
  • 9
  • 34
  • 48
9
votes
2 answers

Apache ant manifest class-path?

I have a standard project layout for a java project: project / src / source_file_1.java ... source_file_N.java build / classes / source_file_X.class ... jar / …
theman_on_vista
9
votes
1 answer

How can I specify a custom MANIFEST.MF file while using the Maven Shade plugin?

When a project uses the Maven-jar-plugin, it's easy to include a custom manifest file in the jar, but I can't find a way to do the same thing with Maven shade. How can I use my own manifest file while using the "Maven-shade-plugin"? Additional…
BlakeTNC
  • 941
  • 11
  • 14
9
votes
1 answer

How do I make the manifest available during a Maven/Surefire unittest run "mvn test"?

How do I make the manifest available during a Maven/Surefire unittest run "mvn test" ? I have an open-source project that I am converting from Ant to Maven, including its unit tests. Here's the project source repository with the Maven…
Ernst de Haan
  • 467
  • 6
  • 12
8
votes
2 answers

Get JAR compilation time

I am trying to get the compilation time of the runnable JAR file I am exporting from Eclipse. One way to do this would probably be to get the modification time of the META-INF/MANIFEST.MF file. Unfortunately I can't seem to find a way to get this…
CAFxX
  • 28,060
  • 6
  • 41
  • 66
8
votes
1 answer

use gradle to embed dependency information into manifest

I would like to embed dependency information into my manifest file, so that I can expose this information at runtime. i.e. I can see which version of a library is used by a particular running instance of my service. I'm using gradle to build my…
Daniel Scott
  • 7,418
  • 5
  • 39
  • 58
1
2
3
22 23