Вопрос

When trying to use Flyway application integration to test an OSGi application using Pax Exam, I get the following error:

myTest:myTest.myTest:PaxRunnerTestContainer{felix}(com.example.sys.test.paxtests.myTest): 
javax.sql.DataSource not found by com.googlecode.flyway.core [32]

When I instantiate a new Flyway

Flyway flyway = new Flyway(); 

I am provisioning Flyway and javax.sql thusly:

return provision(
...
wrappedBundle("http://mirrors.ibiblio.org/pub/mirrors/maven2/javax/sql/jdbc-stdext/2.0/jdbc-stdext-2.0-sources.jar"),
wrappedBundle(mavenBundle().groupId("com.googlecode.flyway").artifactId("flyway-core").version("1.5")),
...
);

Is there a proper way to do this so that Flyway is aware of javax.sql?

Нет правильного решения

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top