Failed to read dbchangelog-2.0.xsd with maven behind a proxy


I just spent several hours trying to solve this:

    Error setting up or running Liquibase: Error parsing line 5 column 86 of src/main/resources/db/changeLogMaster.xml: schema_reference.4: Failed to read schema document '', because 1) could not find the document; 2) the document could not be read; 3) the root element of the document is not .

For information:

  • I have no problem with the schema version 1.9
  • I have no desire to command line
  • I do not worry if I do not use proxy (this works in my home, but not at work)
  • liquibase maven-plugin version

Is this a configuration error?

The liquibase code looks for the xsd in the jar file if available, so it doesn’t even try to get the 1.9 xsd off the internet.

The 2.0 xsd is not included in the 1.9 jar, though, so it does try to pull it down to validate the XML. 

You will want to stick with the 1.9 xsd until you upgrade liquibase to 2.0.