Liquibase multiple classpath

Viewed 3291

I am just trying to execute liquibase update from command line but can't find any way to pass multiple paths for --classpath parameter. I am using command as follow:

liquibase.bat \
      --driver=oracle.jdbc.driver.OracleDriver \
      --classpath="C:/Users/Me/path_to_driver/ojdbc7.jar" \
      --changeLogFile="C:/Users/Me/path_to_changelog_file/changelog.xml" \
      --url="jdbc:oracle:thin:@db_host:1521:xe" \
      --username=user_name \
      --password=some_pass \
      update

It is possible to add one path more to --classpath? I need to add path to changeSet files and I'm using Windows.

2 Answers

--classpath=path:anotherPath should work

The correct usage on windows systems is

--classpath="C:\repository1\;D:\repository2\;D:/"

please note the third path is base root, which is useful in liquibase 4.0+ for backward compatibility

("Specifying files by absolute path was removed in Liquibase 4.0. Please use a relative path or add '/' to the classpath parameter.")

Related