What will be the path of liquibase changlog.xml which exists in jar to include into current project

StackOverflow https://stackoverflow.com/questions/21711613

  •  10-10-2022
  •  | 
  •  

Question

I've a jar which has its own changelog.xml under src/main/resources, and I want to include that changelog.xml into my current project. Example :

Project1 -> src/main/resources ->project1.changelog-1.0.xml

Project 2 -> src/main/resources ->project2.changelog-1.0.xml

What will be the path of project2.changelog-1.0.xml to include into project1.changelog-1.0.xml ?.

Was it helpful?

Solution 2

I found the solution for this problem. Use maven-dependency-plugin to unpack the project2 jar and then use maven-resources-plugin to extract the project2.changelog-1.0.xml into project1->src->main->resources.

After extracting use tag to include project2.changelog-1.0.xml. in project1.changelog-1.0.xml.

This solved my problem. I'm not sure if this is expensive but i think it's a good solution.

OTHER TIPS

See the documentation. Assuming Project 1 has Project 2 as a dependency, you should be able to list it simply as:

project2.changelog-1.0.xml

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top