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

Why is my jar producing a NoClassDefFoundError when the class is listed in MANIFEST.MF?

I have created jar in the following folder usr/local/bin/niidle.jar and my MANIFEST.MF file is as follows: Manifest-Version: 1.0 Main-Class: com.ensarm.niidle.web.scraper.NiidleScrapeManager Class-Path: hector-0.6.0-17.jar I verified that…
dhananjay
  • 57
  • 1
  • 2
  • 6
0
votes
0 answers

JAR Manifest - field "D" containing weird hash

I opened jar application with archive manger and under META-INF there was file MANIFEST.MF containing: Manifest-Version: 9.9 Ant-Version: Apache Ant 1.9.6 Class-Path: app.jar Created-By: 1.7.0_80-b15 (Oracle Corporation) Main-Class: test.App Name:…
andrzej1_1
  • 1,151
  • 3
  • 21
  • 38
0
votes
1 answer

META.MF already exists n VCS in IntelliJ Idea

My project contains Application classes having main(), which is also mentioned in manifest file as below Manifest-Version: 1.0 Main-Class: org.carleton.cep.Application Till now, build artifact option is greyed out, so I tried to add it to artifacts…
Amarjit Dhillon
  • 2,718
  • 3
  • 23
  • 62
0
votes
1 answer

What does dollar signs do in manifest.mf class-path?

I have a Spring Boot project using Jersey. spring-jersey3 has a dependency to HK2: org.glassfish.hk2 hk2 ${hk2.version} The HK2's manifest…
0
votes
0 answers

no main manifest attribute: intellij java ide

I am attempting to run an plugin for the itellij ide, the plugin consists of a jar file. However the file cannot open on my mac as it generates message "app could not be launched". Further reference to the console revealed the problem lay in "no…
jamarcus_13
  • 55
  • 2
  • 10
0
votes
0 answers

How sync `Build-Version` in manifest.fm jar file and maven repository?

Maven has SNAPSHOT which is resolved only when jar is deployed into repository. But manifest.fm contains Build-Version, which should be resolved during build time. E.g. when jar published there will be a gap between jar version and Build-Version.…
Cherry
  • 31,309
  • 66
  • 224
  • 364
0
votes
1 answer

How do I set the version info in a manifest file when building a netbeans project with jenkins?

I have a project built using the netbeans IDE (Internally uses Ant to build if I am not mistaken) The CI server we use is jenkins. I would like to add version info to the manifest for the jar that is produced. How do I do that?
Tim
  • 20,184
  • 24
  • 117
  • 214
0
votes
0 answers

exporting java app as jar which contains other libraries

I have exported my simple java application as normal jar file which contains all the source file and the dependent libraries ie jar files. Here all the jars I have kept inside the lib folder of my application. so these things I am able to do but…
0
votes
1 answer

Build JAR with custom manifest in maven

I am trying to get maven to create the artifact jar with a custom MANIFEST.MF. Sounds like an easy task using the following snippet: maven-jar-plugin
Nitek
  • 2,515
  • 2
  • 23
  • 39
0
votes
1 answer

Compiling basic java project

I want to compile a basic java project, https://sourceforge.net/projects/pdfformfiller2 its installation instructions are quite short: Make sure that iText library, itext-xtra-5.x.0.jar and itextpdf-5.x.0.jar, are accessible to JAVA, e.g. these…
Adobe
  • 12,967
  • 10
  • 85
  • 126
0
votes
0 answers

Class.getResourceAsStream don't work in the installed eclipse plug-in

I have following code in the my plug-in project Class.getResourceAsStream("/file.png"); And my file is placed in the src/main/resources. When I run my plug-in application from the eclipse run configuration dialog everything is fine. But, when I…
0
votes
1 answer

Modified manifest file partially not working

My manifest file (Manifest.txt) looks like this: Main-Class: packageName.ClassName Class-Path: jarFile1.jar: However, when I execute the following command in Linux: jar cfm jarFile.jar Manifest.txt -C Classes . When I look at jarFile's…
ndi equals
  • 187
  • 1
  • 9
0
votes
0 answers

How to configure Manifest.mf in soapui?

As you know, I have to add the following jars in META-INF\MANIFEST.MF file for wildfly ws-security configuration, Manifest-Version: 1.0 Dependencies: org.apache.cxf.impl, org.apache.ws.security, org.jboss.ws.api services Class-Path: What is the…
Joseph Hwang
  • 1,337
  • 3
  • 38
  • 67
0
votes
1 answer

Spring Boot Actuator info

I have a spring boot project and I would like to add some information for the info endpoint. To add the spring-boot-actuator I added it to the gradle.build. Now, I want to have something like this: { "app" : { "version" : "1.0.0", …
Manuelarte
  • 1,658
  • 2
  • 28
  • 47
0
votes
1 answer

gradle-release-plugin - use git commitid in manifest.mf

I would like to use the git commitId in the manifest.mf file. In the current gradle-release-plugin version tagging will be done after build task. So git commitId can not be used in manifest.mf file. Are there any plans to support something like…