New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Liquibase.jar does not have MANIFEST.MF as the 2nd entry in the archive #2648
Comments
The jar needs the manifest.mf 2nd in the file contents??? Seriously Java??? |
Hi @nvoxland, to make current 4.8.0 version work I use OSGi wrapping technique with following
<plugin>
<groupId>biz.aQute.bnd</groupId>
<artifactId>bnd-maven-plugin</artifactId>
<version>4.3.0</version>
<executions>
<execution>
<goals>
<goal>bnd-process</goal>
</goals>
</execution>
</executions>
<dependencies>
<dependency>
<groupId>biz.aQute.bnd</groupId>
<artifactId>biz.aQute.bndlib</artifactId>
<version>4.3.0</version>
</dependency>
</dependencies>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<version>3.2.0</version>
<configuration>
<archive>
<manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile>
</archive>
</configuration>
</plugin>
|
Unrelated to manifest order in the JAR, but could you please re-open #2361 as the issue still exists. I updated the ticket with the details. |
@driessamyn just in case you don't see my comment on #2361 we are fixing this here #2672 (comment) and are actually looking for user verification on the new format if you have a moment that issue has a copy of the new MANIFEST.MF. We'd love for you and others who were impacted by this to take a look and verify it works before we do the full new release. Thanks!! |
Description
Some tools expect the MANIFEST.MF file to be physically the 2nd entry in the jar archive. It's java.util.jar.JarInputStream that requires this: See https://bugs.openjdk.java.net/browse/JDK-8215788
Because we have it in the wrong spot, many tools will not correctly use the liquibase.jar file.
See also:
Repro Steps
should start with:
The text was updated successfully, but these errors were encountered: