liquibase-maven-plugin doesn't look for changelogs in transitive jar dependencies
Description
Environment
Ubuntu 9.10, Maven 2.2.1, Java 1.6.0_20
Attachments
Activity
Nathan Voxland January 22, 2013 at 5:28 AM
I'm trying to finish up the 3.0 release, I'm not sure if I'll get a 2.0.6 release out also or not.
Tony França November 14, 2012 at 4:29 PM
@fioan89 has submitted a pull request for this on branch master (3.0.0-SNAPSHOT).
I wasn't able to test it on this version, but it worked ok when I cherry-picked his commit on branch 2_0_x (2.0.6-SNAPSHOT).
So I made another pull request with the same commit on top of 2_0_x.
How does it look? Any chance this makes it to 2.0.6 soon?
Tony França September 24, 2012 at 3:47 PM
Hi everyone. We need this bug/feature here at TouchHealth so much that we're willing to pay 75.00 bucks for it.
This offer is registered at FreedomSponsors (http://www.freedomsponsors.org/core/issue/30/liquibase-maven-plugin-doesnt-look-for-changelogs-in-transitive-jar-dependencies).
Once you solve it, just create a FreedomSponsors account and mark it as resolved (oh, you'll need a Paypal account too)
We'll then check it out and will gladly pay up!
If anyone else would like to throw in a few bucks to elevate the priority on this issue, you should check out FreedomSponsors!
Tony França September 18, 2012 at 8:15 PM
Another workaround is to redeclare your project dependencies inside the liquibase <plugin> definition.
This might work better if your liquibase module has a big dependency tree below it.
Guillermo Fernandes October 3, 2011 at 8:41 PM
workaround: include a dependency (when it is actually not needed) in artifactD to artifactA. This is not the best the way to handle this because you could have conflicts with the versions, but there is no other way to workaround this.
I have the following maven projects:
org.sample:artifactA:jar that contains a changelog xml with a changeset
org.sample:artifactBom that has two modules
org.sample:artifactC:jar that defines a changelog xml that imports the one from artifactA
org.sample:artifactD:jar that defines another changelog xml that imports the one from artifactC
Having installed (mvn install) artifactA, I'm able to running liquibase during the pre-integration-test phase using the maven plugin on module artifactC. artifactC has a declared dependency to artifactA due to it requires the changelog from artifactA.
In addition to that, the artifactD has a dependency to artifacC due to it requires the xml from artifactC but when I run the liquibase-maven-plugin an error happens due to the plugin is not able to find the xml that is contained in the transitive dependency: artifactD->artifactC->artifactA
Steps to reproduce this issue:
download the zip
unzip it
go to artifactA folder and run: mvn install
go to artifactB folder and run: mvn integration-test
The exception is the following: