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
0
votes
1 answer

Maven: generate MANIFEST in custom location

I am trying to retrieve the implementation title and version for a maven jar module. If I use Myclass.class.getPackage().getImplementationVersion() on the built jar, it works, but the same does not work in a debugging environment where the jar is…
Neel
  • 2,100
  • 5
  • 24
  • 47
0
votes
0 answers

Purpose of MANIFEST file on WAR files

In a very general way I understand what's the purpose of the MANIFEST file in JAR files, it's to specify the MainClass and other metadata that I'm not aware of. I'd like to know if there's a more general definition of the purpose of this file, for…
calbertts
  • 1,513
  • 2
  • 15
  • 34
0
votes
1 answer

A safe way to compare Manifest files containing multiple sections using java.util.jar.Manifest?

I'm creating a unit test for a code that generates an archive based on a jar and I'm trying to compare the generated manifest file with an existing test resource using the code below: Manifest smActual = new Manifest(jar.getInputStream( …
Cristiano
  • 1,414
  • 15
  • 22
0
votes
0 answers

build number in pom is empty

I am trying to create a manifest entry "Build" whose value is build number. The generated buildNumber from the following POM is empty and I cannot figure out why. All the other fields in the manifest.mf file are correct.
ArtIsConfused
  • 17
  • 1
  • 7
0
votes
2 answers

Java Security Exception BIRT and Apache POI Hack

I'm getting a java.lang.SecurityException: class "org.apache.poi.POIXMLDocument"'s signer information does not match signer information of other classes in the same package between the BIRT core jar and an Apache POI jar, as described by this BIRT…
Ring
  • 2,249
  • 5
  • 27
  • 40
0
votes
1 answer

Unzip+Zip Jar => getManifest == null

unzip ../test.jar zip -r ../test2.jar * Using JarInputStream.getManifest() I can read the Manifest from test.jar but NOT from test2.jar where it returns null. However if I recreate the jar using 'jar': jar cf ../test3.jar . I can get the Manifest…
benji
  • 2,331
  • 6
  • 33
  • 62
0
votes
2 answers

Pass output of a target as a value

Is it possible to pass the output of an ant target as the value of something else? Such as: ... …
Dumpcats
  • 453
  • 5
  • 21
0
votes
1 answer

osgi: Bundle is not active

just another question for my osgi project. I get this error code: !SESSION 2015-10-26 10:50:01.671 ----------------------------------------------- eclipse.buildId=unknown java.version=1.8.0_60 java.vendor=Oracle Corporation BootLoader…
0
votes
1 answer

Include dependencies in Storm topology jar

I'm trying to include some jars required by my topology in the jar that I deploy to Storm. When I create the jar file using Ant with the manifestclasspath task, I get a manifest that looks like this: Ant-Version: Apache Ant 1.9.5 Created-By:…
Patrick
  • 261
  • 3
  • 16
0
votes
2 answers

Can't update manifest.mf inside .jar: line too long error

I have one .jar file with only MANIFEST/MANIFEST.MF file inside it. I want to extend classpath in this file. Already googled on how to do this and found this: Extract MANIFEST/MANIFEST.MF - jar xf myfile.jar MANIFEST/MANIFEST.MF Edit manifest file…
0
votes
0 answers

How to set the project to get all dependencies from specific folder (not a folder as a classpath)

I built a maven project, that it copy dependencies jar files in classpath folder (/lib folder near jar file) and look for required dependencies in lib/ folder and use them (set lib/ in manifest.mf). it works…
Ehsan Solimo
  • 23
  • 1
  • 9
0
votes
1 answer

how can set both classpathPrefix and mainClass in pom?

I have pom.xml like this: org.apache.maven.plugins maven-jar-plugin 2.6
Ehsan Solimo
  • 23
  • 1
  • 9
0
votes
0 answers

simpligility android-maven-plugin (4.3.0) -> duplicate manifest.mf

I've got a big problem. I want to build an APK with a AAR-library (using normal JAR dependencies). The AAR is build perfect with the JAR (not Android specific code, so it is used in normal Java project -> server side), but the APK wants to include…
mars3142
  • 2,501
  • 4
  • 28
  • 58
0
votes
1 answer

How to load a MANIFEST.MF file into a JAR properly?

I don't want to create a 'default manifest file', I just want to load the Manifest file(which I already created as per my requirements) into the JAR as it is. I used the command JAR uf, the MANIFEST.MF is not even loaded into the JAR. And then I…
Adharsh
  • 21
  • 8
0
votes
1 answer

Stop eclipse from resetting root context when Maven->Update Project / MANIFEST.MF file not found

I am building an application using Eclipse, Maven, Tomcat, and Spring Framework. Every time I need to "Clean ..." or "Clean Work Directory" for Tomcat, I also end up having to use the "Maven->Update Project" tool in order to stop the MANIFEST.MF…
oxenfree
  • 516
  • 6
  • 20