question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

4.9.0 MANIFEST.MF has invalid Import-Package instructions

See original GitHub issue

Environment

Liquibase Version: 4.9.0

Liquibase Integration & Version: maven

Liquibase Extension(s) & Version: none

Database Vendor & Version: n/a

Operating System Type & Version: n/a

Description

The MANIFEST.MF file inside liquibase-core-4.9.0.jar is not valid. It has Import-Package instructions for liquibase packages that require a version range of [4.9.0,1) but this cannot be satisfied: a version >= 4.9.0 and !>= 1.0.0 is not possible to satisfy.

Steps To Reproduce

To see the contents of the file:

  • download liquibase-core-4.9.0.jar from Maven Central
  • extract/unpack files inside liquibase-core-4.9.0.jar
  • open META-INF/MANIFEST.MF
  • verify Import-Package statements

Actual Behavior

Bundle exporting the liquibase package does not resolve, leading to OSGi bundles being unable to import any liquibase packages.

Expected/Desired Behavior

OSGi bundles can import liquibase packages.

Screenshots (if appropriate)

Greenshot 2022-03-24 11 20 59

Additional Context

n/a

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:7 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
SparxySyscommented, Mar 25, 2022

I’m afraid we don’t have a trivial test set-up for this ready right now, we ran into this issue while upgrading from a liquibase 3.x version to 4.x - at least the issue we were stuck on (the liquibase bundle not resolving) appears to have been resolved with RC1 👍 .

After quickly trying out the new version, we’re currently seeing a liquibase.exception.UnexpectedLiquibaseException: Cannot find default log service - but right now I’m assuming this may just be related to our specific setup. I’ll let you know once we get everything working.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Plug-In Error in Eclipse - Stack Overflow
The manifest.mf line. Export-Package: ;version="1.0.0". is wrong, it should contain a package name such as: Export-Package: package.name ...
Read more >
3 Module Layer - OSGi Core 7
Contains a manifest file describing the contents of the JAR file and providing ... The Import-Package header declares the imported packages for this...
Read more >
511117 – Attempts to start runtime workbench in ... - Bugs
I get the error "The following problems were detected: org.apache.xmlrpc Missing Constraint: Import-Package: javax.xml.bind; version="0.0.0"" when launching a ...
Read more >
Apache Karaf Container 4.x - Documentation
Any change in a configuration file is noticed and reloaded. ... These instructions should help you get Apache Karaf up and running in...
Read more >
Example: OSGi bundle manifest file - IBM
An OSGi bundle, which can be a JAR or web application archive (WAR) file, contains a bundle manifest file META-INF/MANIFEST.MF. In addition to...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found