Comment #12 on issue 239 by
rostrzy...@gmail.com: Flyway 1.6 classpath
I have the same problem:
Maven 2.2,1, jenkins 1.468, Linux OS
Stacktrace:
[INFO] [flyway:migrate {execution: default-cli}]
[DEBUG] Scanning URL:
file:/var/lib/jenkins/jobs/proj-core/workspace/nil-core/nil-admdb/target/classes/db/migration
[DEBUG] Scanning starting at classpath root in filesystem:
/var/lib/jenkins/jobs/proj-core/workspace/nil-core/nil-admdb/target/classes/
[DEBUG] Scanning for resources in path:
/var/lib/jenkins/jobs/proj-core/workspace/nil-core/nil-admdb/target/classes/db/migration
(classpath location: db/migration)
[DEBUG] Found resource: gration/V_MSSQL_7_0_0_0_005__LOGGER_AUDIT.sql
[DEBUG] Found resource:
gration/V_MSSQL_7_0_0_0_20110609_A__LOGGER_AUDIT_event_dateV_MSSQL_7_0_0_0_2011_06_09_A__LOGGER_AUDIT_event_date.sql
[DEBUG] Found resource:
gration/V_MSSQL_7_1_0_0_20101005__DDL_adm_createV_MSSQL_7_1_0_0_2010_10_05__DDL_adm_create.sql
[DEBUG] Found resource:
gration/V_MSSQL_7_1_0_0_20110123_A__DDL_adm_alterV_MSSQL_7_1_0_0_2011_01_23_A__DDL_adm_alter.sql
[DEBUG] Found resource:
gration/V_MSSQL_7_1_0_0_20110123_B__DDL_adm_view_alterV_MSSQL_7_1_0_0_2011_01_23_B__DDL_adm_view_alter.sql
[DEBUG] Found resource:
gration/V_MSSQL_7_1_0_0_20110123_C__DDL_adm_view_alter0V_MSSQL_7_1_0_0_2011_01_23_C__DDL_adm_view_alter0.sql
[DEBUG] Found resource:
gration/V_MSSQL_7_1_0_0_20110123_D__DDL_adm_view_alter1V_MSSQL_7_1_0_0_2011_01_23_D__DDL_adm_view_alter1.sql
[DEBUG] Found resource:
gration/V_MSSQL_7_1_0_0_20110415_A__DDL-adm-changetracerV_MSSQL_7_1_0_0_2011_04_15_A__DDL-adm-changetracer.sql
[DEBUG] Found resource:
gration/V_MSSQL_7_1_0_0_20110415_B__DDL-adm-vxmlobjexttestV_MSSQL_7_1_0_0_2011_04_15_B__DDL-adm-vxmlobjexttest.sql
[DEBUG] Found resource:
gration/V_MSSQL_7_1_0_0_20110420_A__DDL-adm-changetracerV_MSSQL_7_1_0_0_2011_04_20_A__DDL-adm-changetracer.sql
[DEBUG] Found resource:
gration/V_MSSQL_7_1_0_0_20110517_A__accessRulesV_MSSQL_7_1_0_0_2011_05_17_A__accessRules.sql
[DEBUG] Found resource:
gration/V_MSSQL_7_1_0_0_20110518_A__accessRulesV_MSSQL_7_1_0_0_2011_05_18_A__accessRules.sql
[DEBUG] Found resource:
gration/V_MSSQL_7_1_0_0_20110519_A__Alter-ANILKeyRulesV_MSSQL_7_1_0_0_2011_05_19_A__Alter-ANILKeyRules.sql
[DEBUG] Found resource:
gration/V_MSSQL_7_1_0_0_20110520_A__accessRulesV_MSSQL_7_1_0_0_2011_05_20_A__accessRules.sql
[DEBUG] Found resource:
gration/V_MSSQL_7_1_0_0_20120321_A__menuV_MSSQL_7_1_0_0_2012_03_21_A__menu.sql
[ERROR] com.googlecode.flyway.core.exception.FlywayException: Unable to
obtain inputstream for resource:
gration/V_MSSQL_7_0_0_0_005__LOGGER_AUDIT.sql
[JENKINS] Archiving [...SECRET...]
[INFO]
------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO]
------------------------------------------------------------------------
[INFO] Flyway Error: com.googlecode.flyway.core.exception.FlywayException:
Unable to obtain inputstream for resource:
gration/V_MSSQL_7_0_0_0_005__LOGGER_AUDIT.sql
[INFO]
------------------------------------------------------------------------
[DEBUG] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: Flyway Error:
com.googlecode.flyway.core.exception.FlywayException: Unable to obtain
inputstream for resource: gration/V_MSSQL_7_0_0_0_005__LOGGER_AUDIT.sql
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:719)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:556)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:535)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180)
at
org.apache.maven.lifecycle.LifecycleExecutorInterceptor.execute(LifecycleExecutorInterceptor.java:65)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:616)
at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
at hudson.maven.agent.Main.launch(Main.java:185)
at hudson.maven.MavenBuilder.call(MavenBuilder.java:151)
at hudson.maven.Maven2Builder.call(Maven2Builder.java:77)
at hudson.maven.Maven2Builder.call(Maven2Builder.java:53)
at hudson.remoting.UserRequest.perform(UserRequest.java:118)
at hudson.remoting.UserRequest.perform(UserRequest.java:48)
at hudson.remoting.Request$2.run(Request.java:287)
at
hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
at java.util.concurrent.FutureTask.run(FutureTask.java:166)
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
at java.lang.Thread.run(Thread.java:636)
Caused by: org.apache.maven.plugin.MojoExecutionException: Flyway Error:
com.googlecode.flyway.core.exception.FlywayException: Unable to obtain
inputstream for resource: gration/V_MSSQL_7_0_0_0_005__LOGGER_AUDIT.sql
at
com.googlecode.flyway.maven.AbstractFlywayMojo.execute(AbstractFlywayMojo.java:166)
at
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490)
at
hudson.maven.agent.PluginManagerInterceptor.executeMojo(PluginManagerInterceptor.java:182)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694)
... 28 more
Caused by: com.googlecode.flyway.core.exception.FlywayException: Unable to
obtain inputstream for resource:
gration/V_MSSQL_7_0_0_0_005__LOGGER_AUDIT.sql
at
com.googlecode.flyway.core.util.ClassPathResource.loadAsString(ClassPathResource.java:86)
at
com.googlecode.flyway.core.migration.sql.SqlMigration.<init>(SqlMigration.java:67)
at
com.googlecode.flyway.core.migration.sql.SqlMigrationResolver.resolveMigrations(SqlMigrationResolver.java:107)
at
com.googlecode.flyway.core.migration.MigrationProvider.collectMigrations(MigrationProvider.java:150)
at
com.googlecode.flyway.core.migration.MigrationProvider.doFindAvailableMigrations(MigrationProvider.java:131)
at
com.googlecode.flyway.core.migration.MigrationProvider.findAvailableMigrations(MigrationProvider.java:110)
at com.googlecode.flyway.maven.MigrateMojo.doExecute(MigrateMojo.java:155)
at
com.googlecode.flyway.maven.AbstractFlywayMojo.execute(AbstractFlywayMojo.java:158)
... 31 more