Hi, when I run the command listed at the top of this output, I get the rest:
- liquibase --changeLogFile=db.cams.yaml --classpath=snakeyaml-1.12.jar update
- INFO 11/06/13 12:18:liquibase: Successfully acquired change log lock
- INFO 11/06/13 12:18:liquibase: Successfully released change log lock
- Liquibase update Failed: org.yaml.snakeyaml.Yaml
- SEVERE 11/06/13 12:18:liquibase: org.yaml.snakeyaml.Yaml
- java.lang.NoClassDefFoundError: org/yaml/snakeyaml/Yaml
- at liquibase.parser.core.yaml.YamlChangeLogParser.parse(YamlChangeLogParser.java:47)
- at liquibase.Liquibase.update(Liquibase.java:128)
- at liquibase.integration.commandline.Main.doMigration(Main.java:851)
- at liquibase.integration.commandline.Main.main(Main.java:138)
- Caused by: java.lang.ClassNotFoundException: org.yaml.snakeyaml.Yaml
- at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
- at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
- at java.security.AccessController.doPrivileged(Native Method)
- at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
- at java.lang.ClassLoader.loadClass(ClassLoader.java:423)
- at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
- at java.lang.ClassLoader.loadClass(ClassLoader.java:356)
- ... 4 more
snakeyaml-1.12.jar is in the current working directory. If I try with --classpath=boo:
- Liquibase update Failed: C:\w\juno\CAMS\CAMSLogicClient\resources\boo does not exist
- SEVERE 11/06/13 12:23:liquibase: C:\w\juno\CAMS\CAMSLogicClient\resources\boo does not exist
- liquibase.exception.CommandLineParsingException: C:\w\juno\CAMS\CAMSLogicClient\
- resources\boo does not exist
- at liquibase.integration.commandline.Main.configureClassLoader(Main.java:641)
- at liquibase.integration.commandline.Main.main(Main.java:137)
So Liquibase is clearly finding the JAR. I’ve looked inside the JAR and org/yaml/snakeyaml/Yaml.class exists.
Has anyone got this working please?