I found the solution for this. Before this, I had copied the folder src/main/config
into src/main/resouces
in netbeans so it took that folder as package. So the folder name - config/db/1.0.0
got changed to config/db/1/0/0
, but when I created new folder in resources
folder, it worked and all the files in folder 1.0.0
are accessible correctly. Now, my folder structure is like this:
- resources
- config
- db
- 1.0.0
- db.changelog.201412120101.xml
- 1.1.0
- 2.0.0
- db.changelog.xml
I can access db.changelog.xml
file from my Spring class as,springLiquibaseObj.setChangeLog("classpath:db.changelog.xml");
and other changelog files from db.changelog.xml
file as, <include file="classpath:config/db/1.0.0/db.changelog-201412120101.xml" relativeToChangelogFile="false" />
.