Missing Import-package MANIFEST.MF headers for postgresql #1033
In the rare cases when someone tries to use PostgreSQL COPY FROM STDIN statements in OSGi environment, one will come to receive strange ClassNotFoundExceptions as follows:
[2015-06-16 15:47:40.146] DEBUG region-dm-13 org.flywaydb.core.internal.dbsupport.SqlScript Executing SQL: COPY addresses (id, version, city, country, postal_code, street, tenant_id, address_type) FROM stdin;
This could be avoided if we could have correctly filled MANIFEST.MF with the flyway-core package.
I guess it would be easy to add to the pom.xml the following lines (with appropriately set versions) in the section of maven-bundle-plugin configuration:
I did not check, but there may be some other missing optional imports that should be added so OSGi users can use this tool with full functionality.
I would also recommend revising the LOG.debug("Executing SQL: " + sql); line in SqlScript.java
The text was updated successfully, but these errors were encountered:
As far as I could check these are the remaining missing optional imports: