Issue when used with Virgo/OSGi #914
Comments
Please upgrade to 3.1 and try again |
Thank you for your reply. The latest version listed at: http://mvnrepository.com/artifact/com.googlecode.flyway/flyway-core is: <dependency> <groupId>com.googlecode.flyway</groupId> <artifactId>flyway-core</artifactId> <version>2.3.1</version> </dependency> Can you kindly update the Maven repository by adding a note to help the users to go to the new location (similar to: http://mvnrepository.com/artifact/commons-lang/commons-lang)? I believe that the latest versions can be found at: http://mvnrepository.com/artifact/org.flywaydb Thank you again and wish you all the best for the coming year. |
Hi. Downloaded the new version as recommended using the new group and artifact ids as shown next. <dependency> <groupId>org.flywaydb</groupId> <artifactId>flyway-core</artifactId> <version>3.1</version> </dependency> This version seems to have an issue related with SLF4J. It did not work until I modified the manifest of the library and imported the Import-Package: javax.sql,org.apache.commons.logging;version="[1.1,2)" ;resolution:=optional,org.osgi.framework;version="1.3.0";resolution:= mandatory,org.springframework.jdbc.core;version="[2.5,5.0)";resolutio n:=optional,org.springframework.jdbc.datasource;version="[2.5,5.0)";r esolution:=optional,org.slf4j;resolution:=optional This library makes use of SLF4J but does not import it. Please do let me know if I am missing something or doing something wrong. For clarity I am using Eclipse Virgo 3.6.3.RELEASE. Thanks again for your help. |
Hi,
Thank you for this library.
I had some issues when using this library with Virgo/OSGi (http://eclipse.org/virgo/) and MySQL database. The issue seems to be related to the exported packages. In the POM file, the library is exporting only two packages.
I am not sure about the effect of the
.*
(org.flywaydb.core.api.*;version=${project.version}
) has the expected effect. When using this with a MySQL database, I got the following errorIt looks like Virgo cannot load the file
createMetaDataTable.sql
within the package:com.googlecode.flyway.core.dbsupport.mysql
. Modified the flyway library manifest and included the MySQL package:com.googlecode.flyway.core.dbsupport.mysql
to the manifest file and all worked.Can you kindly add all packages to the POM file within the
Export-Package
? This should solve the issue.The text was updated successfully, but these errors were encountered: