I recently upgraded liquibase-core version and liquibase-maven-plugin version to 4.29.1 from 3.10.3. And when i compiled it i got error in liquibaseConfiguration class for this liquibase.setIgnoreClasspathPrefix(true); When i started tomcat i got error as:
Error:
Caused by: liquibase.parser.core.xml.XSDLookUpException: Unable to resolve xml entity dbchangelog-2.0.xsd locally: liquibase.secureParsing is set to ‘true’ which does not allow remote lookups. Set it to ‘false’ to allow remote lookups of xsd files.
Please help me to resolve this issue.
I have a project(SpringBoot Project) and this is my root directory. In this root directory i have databaseScripts directory and in that databaseScripts directory i have database directory and in database directory i have liquibaseUpdation directory and in liquibaseUpdation directory i have installation directory and in installation directory i have tables directory, dbchangelog-2.0.xsd, installing.xml.
In tables directory i have tables xml files.
One of them is:
xyzTable.xml starting like this:
dbchangelog-2.xsd starting is like this:
<?xml version="1.0" encoding="UTF-8"?><xsd:schema xmlns:xsd=“http://www.w3.org/2001/XMLSchema”
targetNamespace=“Liquibase | Liquibase XML Schema Definitions” xmlns=“Liquibase | Liquibase XML Schema Definitions”
elementFormDefault=“qualified”>
installing.xml starting is like this:
<?xml version="1.0" encoding="UTF-8"?>Then i have one upgradation directory in liquibaseUpdation folder. In upgradation directory i have folders with naming as per releases.
In one of the folder i have tag version.xml, which start as:
and 1 table.xml which start as:
<?xml version="1.0" encoding="UTF-8"?>and 1 master.xml which start as:
<?xml version='1.0' encoding='utf-8'?>and in that upgradation directory i have dbchangelog-2.0.xsd and upgrading.xml which starts as:
<?xml version="1.0" encoding="UTF-8"?>and finally master.xml in liquibaseUpdation directory which start as:
<?xml version="1.0" encoding="UTF-8"?><include file="installation/installing.xml" relativeToChangelogFile="true"/>
<include file="upgradation/upgrading.xml" relativeToChangelogFile="true"/>
I have one liquibase.properties file which is in liquibaseUpdation directory.
I have one liquibaseConfiguration class which is in src/main/java.
I have one application.properties in src/main/resources
and one application.properties in configuration/META-INF/spring.