Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CLI flyway specified drivers directory via jarDirs not applied #1906

Closed
buuren opened this issue Jan 24, 2018 · 2 comments
Closed

CLI flyway specified drivers directory via jarDirs not applied #1906

buuren opened this issue Jan 24, 2018 · 2 comments

Comments

@buuren
Copy link

@buuren buuren commented Jan 24, 2018

What version of Flyway are you using?

Flyway Community Edition 5.0.6 by Boxfuse

Which client are you using? (Command-line, Java API, Maven plugin, Gradle plugin, SBT plugin, ANT tasks)

Command-line

What database are you using (type & version)?

MSSQL 2012

What operating system are you using?

GNU/Linux

What did you do?

(Please include the content causing the issue, any relevant configuration settings, and the command you ran)

According to:
https://github.com/flyway/flyway/blob/master/flyway-commandline/src/main/java/org/flywaydb/commandline/Main.java#L292

jarDirs : Comma-separated list of dirs for Jdbc drivers & Java migrations

the command line parameter "-jarDirs" should allow to specify directory with JDBC drivers, but this option is only working for Java Migrations and does not apply to JDBC drivers

What did you expect to see?

jarDirs should provide a way to specify path to JDBC drivers according to documentation

If we take a look at https://github.com/flyway/flyway/blob/master/flyway-commandline/src/main/java/org/flywaydb/commandline/Main.java#L318 there is no mention of JAR_DIRS and as a result -jarDirs has no effect on finding JDBC Drivers

What did you see instead?

ERROR: Directory for Jdbc Drivers not found

@axelfontaine
Copy link
Contributor

@axelfontaine axelfontaine commented Jan 25, 2018

Don't delete the drivers directory. Then things should work as expected.

We'll loosen the check on our end as well to make this possible in the future.

@axelfontaine
Copy link
Contributor

@axelfontaine axelfontaine commented Jan 26, 2018

The check for the drivers directory has now been removed.

dohrayme pushed a commit to dohrayme/flyway that referenced this issue Feb 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.