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
3
votes
3 answers

header must be terminated by a line break" eclipse manifest.mf

how to fix "header must be terminated by a line break" eclipse? I know this is known bug but since I am using previous version of eclipse I wanted to know workaround for this compile error in my manifest.mf. Thanks for your help!
user3311644
  • 59
  • 2
  • 6
3
votes
1 answer

java -jar is not able to read classpath from manifest file resulting in NoClassDefFoundError error

My MANIFEST.MF file looks like this My main() prints the classpath - ClassLoader cl = ClassLoader.getSystemClassLoader(); URL[] urls = ((URLClassLoader)cl).getURLs(); for(URL url: urls){ …
user375868
  • 1,288
  • 4
  • 21
  • 45
3
votes
2 answers

Is it possible to add a custom manifest to a Java library compiled in Netbeans 6.7.1?

I tried adding manifest.file=${src.dir}/manifest.mf to project.properties, but looking through the build-impl.xml I see that the manifest.available is usually accompanied by main.class condition, so it makes me believe that my manifest would be…
Remus Rusanu
  • 288,378
  • 40
  • 442
  • 569
3
votes
1 answer

Reading my own Jar's manifest, when the Jar is used in an Android app

I have a Jar that I use in my Android app (it's in the libs folder). The Jar doesn't contains any Android resources or anything like that, but just simple Java classes. Now, I want the Jar to know which version it currently has in the manifest so…
jeremy
  • 904
  • 7
  • 15
3
votes
2 answers

Can I call class files that are within a jar library located in another jar file?

I am trying to access the class files packaged as a library but unfortunately the jar libraries should be packaged in another jar file. As an example say I have a.jar that contains some class libraries. I can call (import) the classes in the jar…
Chathuranga Chandrasekara
  • 20,548
  • 30
  • 97
  • 138
3
votes
3 answers

How do I use manifest.mf class-path for alternative main in same jar?

I have created an executable jar file that contains two main classes. All libraries are included in the jar and the main Main-Class works fine when executing like this: java -jar MyApplication.jar But when I try to run the other main class like…
Blem
  • 796
  • 16
  • 36
2
votes
2 answers

Different MANIFEST.MF for default jar-file and tests.jar

I'm trying to create different MANIFEST.MF files for the jar-packaged artifacts and the test-jar-packaged. The maven-jar-plugin being used to add additional stuff into the MANIFEST.MF - that works perfectly so far. But if I'd like to chose different…
polemoser
  • 59
  • 6
2
votes
1 answer

`Implementation-Version` not in Manifest after `spring-boot-maven-plugin` repackage

Given this plugin config in a Maven pom.xml: org.springframework.boot spring-boot-maven-plugin acme.Main
Stewart
  • 17,616
  • 8
  • 52
  • 80
2
votes
1 answer

How to read data from META/MANIFEST.MF in Spring Boot MVC Web Application?

I have a requirement to read information that is available in the META/MANIFEST.MF file of Spring Boot MVC web application and use this info to perform some business logic. I'm using gradle to build the application as war file and deploying it into…
Ravi
  • 1,614
  • 4
  • 14
  • 27
2
votes
1 answer

Runtime version information from manifest in Java

I have a Java application (compiled with NetBeans 12.5 and OpenJDK 11) where the manifest file is correct, but looks like I'm retrieving the properties from the wrong file(?). Browsing the built jar I have correctly in META-INF/MANIFEST.MF the…
lmattcris
  • 49
  • 3
2
votes
1 answer

How to properly include javax.json jar to a deployed .jar file

I'm trying to include javax.json.jar to my project in Jdeveloper 12c IDE The final phillplugin.jar includes: META-INF folder containing MANIFEST.MF file phillplugin folder which includes my phillplugin.class javax.json-1.0.2.jar…
Phill Alexakis
  • 1,449
  • 1
  • 12
  • 31
2
votes
1 answer

pom.properties customisation in Maven

Maven generates a pom.properties file inside META-INF/maven/${groupId}/${artifactId} than contains the version, groupId and artifactId. Can I add my own entries? If would like to manage information like SVN url, site url, etc. in the artifact.…
J Fabian Meier
  • 33,516
  • 10
  • 64
  • 142
2
votes
0 answers

Reading manifest file of spring boot application

I am working on a multi module Java Spring boot application. The structure looks like below. module 1 (packaging: pom) submodule 1.1 (packaging: jar) submodule 1.2 (packaging: jar) module 2 (packaging: pom) submodule 2.1 (packaging: jar) …
Samiron
  • 5,169
  • 2
  • 28
  • 55
2
votes
2 answers

Powershell Module GUID

Can anyone tell me what the recommended practice is for PowerShell Module GUID's. Initially a new Module gets labeled with a GUID. When I later come back to update/extend/change the module, I increment the ModuleVersion value, but should the GUID…
Porky
  • 890
  • 6
  • 6
2
votes
2 answers

How the MANIFEST file is being generated in my AEM osgi bundle?

I created one maven project with aem-project-archetype version 13. After installing the bundle to AEM, I am getting error in felix console that 3 of the imported bundles could not be resolved. I am trying to find out that from where these are being…
anubhs
  • 566
  • 1
  • 8
  • 26