Liquibase includeAll doesn't find base path












0















while migrating a project from maven to gradle I ran in the following problem.



My file structure looks like this:



Filesystem



The changelog-master.xml includes the changelog-v1-0.xml, which then should include the directory v1-0 with following line:
<includeAll path="src/main/resources/liquibase/changelogs/v1-0/" errorIfMissingOrEmpty="true" />.
This works just fine. This: <includeAll path="/liquibase/changelogs/v1-0/" errorIfMissingOrEmpty="true" relativeToChangelogFile="true" /> doesn't.
I get following errormessage:



Cannot find base path 'src/main/resources/liquibase/changelogs/changelog-v1-0.xml' 


with liquibase in version 3.6.2. I also tried the versions 3.6.0, 3.6.1 and 3.5.5. I am using gradle to build my project in version 4.9 and the plugin in version 2.0.1 and also tried 1.2.4 and 2.0.0. I tried all possible combinations of paths and with or without the relativeToChangelogFile="true" set and nothing worked so far. I need the path to be relative to the changelog file. I also red various issues in jira, github and stackoverflow and nothing worked so far.



Why this doesn't work?



I guess this bug can only be solved by the liquibase community as it seems to be a problem with liquibase itself.










share|improve this question









New contributor




Philipp Schöppner is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.





















  • What are you liquibase settings in application.properties?

    – htshame
    2 days ago











  • I dont have a application.properties. I think that is a file only used in maven and since i use gradle with the gradle plugin i dont need one. The only property interesting in this case would be the changeLogFile and that is set correctly. The problem occures in the changelog-v1-0.xml file

    – Philipp Schöppner
    2 days ago
















0















while migrating a project from maven to gradle I ran in the following problem.



My file structure looks like this:



Filesystem



The changelog-master.xml includes the changelog-v1-0.xml, which then should include the directory v1-0 with following line:
<includeAll path="src/main/resources/liquibase/changelogs/v1-0/" errorIfMissingOrEmpty="true" />.
This works just fine. This: <includeAll path="/liquibase/changelogs/v1-0/" errorIfMissingOrEmpty="true" relativeToChangelogFile="true" /> doesn't.
I get following errormessage:



Cannot find base path 'src/main/resources/liquibase/changelogs/changelog-v1-0.xml' 


with liquibase in version 3.6.2. I also tried the versions 3.6.0, 3.6.1 and 3.5.5. I am using gradle to build my project in version 4.9 and the plugin in version 2.0.1 and also tried 1.2.4 and 2.0.0. I tried all possible combinations of paths and with or without the relativeToChangelogFile="true" set and nothing worked so far. I need the path to be relative to the changelog file. I also red various issues in jira, github and stackoverflow and nothing worked so far.



Why this doesn't work?



I guess this bug can only be solved by the liquibase community as it seems to be a problem with liquibase itself.










share|improve this question









New contributor




Philipp Schöppner is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.





















  • What are you liquibase settings in application.properties?

    – htshame
    2 days ago











  • I dont have a application.properties. I think that is a file only used in maven and since i use gradle with the gradle plugin i dont need one. The only property interesting in this case would be the changeLogFile and that is set correctly. The problem occures in the changelog-v1-0.xml file

    – Philipp Schöppner
    2 days ago














0












0








0








while migrating a project from maven to gradle I ran in the following problem.



My file structure looks like this:



Filesystem



The changelog-master.xml includes the changelog-v1-0.xml, which then should include the directory v1-0 with following line:
<includeAll path="src/main/resources/liquibase/changelogs/v1-0/" errorIfMissingOrEmpty="true" />.
This works just fine. This: <includeAll path="/liquibase/changelogs/v1-0/" errorIfMissingOrEmpty="true" relativeToChangelogFile="true" /> doesn't.
I get following errormessage:



Cannot find base path 'src/main/resources/liquibase/changelogs/changelog-v1-0.xml' 


with liquibase in version 3.6.2. I also tried the versions 3.6.0, 3.6.1 and 3.5.5. I am using gradle to build my project in version 4.9 and the plugin in version 2.0.1 and also tried 1.2.4 and 2.0.0. I tried all possible combinations of paths and with or without the relativeToChangelogFile="true" set and nothing worked so far. I need the path to be relative to the changelog file. I also red various issues in jira, github and stackoverflow and nothing worked so far.



Why this doesn't work?



I guess this bug can only be solved by the liquibase community as it seems to be a problem with liquibase itself.










share|improve this question









New contributor




Philipp Schöppner is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.












while migrating a project from maven to gradle I ran in the following problem.



My file structure looks like this:



Filesystem



The changelog-master.xml includes the changelog-v1-0.xml, which then should include the directory v1-0 with following line:
<includeAll path="src/main/resources/liquibase/changelogs/v1-0/" errorIfMissingOrEmpty="true" />.
This works just fine. This: <includeAll path="/liquibase/changelogs/v1-0/" errorIfMissingOrEmpty="true" relativeToChangelogFile="true" /> doesn't.
I get following errormessage:



Cannot find base path 'src/main/resources/liquibase/changelogs/changelog-v1-0.xml' 


with liquibase in version 3.6.2. I also tried the versions 3.6.0, 3.6.1 and 3.5.5. I am using gradle to build my project in version 4.9 and the plugin in version 2.0.1 and also tried 1.2.4 and 2.0.0. I tried all possible combinations of paths and with or without the relativeToChangelogFile="true" set and nothing worked so far. I need the path to be relative to the changelog file. I also red various issues in jira, github and stackoverflow and nothing worked so far.



Why this doesn't work?



I guess this bug can only be solved by the liquibase community as it seems to be a problem with liquibase itself.







gradle liquibase






share|improve this question









New contributor




Philipp Schöppner is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











share|improve this question









New contributor




Philipp Schöppner is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









share|improve this question




share|improve this question








edited Jan 18 at 19:19









elbraulio

730113




730113






New contributor




Philipp Schöppner is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









asked Jan 18 at 15:31









Philipp SchöppnerPhilipp Schöppner

12




12




New contributor




Philipp Schöppner is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.





New contributor





Philipp Schöppner is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.






Philipp Schöppner is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.













  • What are you liquibase settings in application.properties?

    – htshame
    2 days ago











  • I dont have a application.properties. I think that is a file only used in maven and since i use gradle with the gradle plugin i dont need one. The only property interesting in this case would be the changeLogFile and that is set correctly. The problem occures in the changelog-v1-0.xml file

    – Philipp Schöppner
    2 days ago



















  • What are you liquibase settings in application.properties?

    – htshame
    2 days ago











  • I dont have a application.properties. I think that is a file only used in maven and since i use gradle with the gradle plugin i dont need one. The only property interesting in this case would be the changeLogFile and that is set correctly. The problem occures in the changelog-v1-0.xml file

    – Philipp Schöppner
    2 days ago

















What are you liquibase settings in application.properties?

– htshame
2 days ago





What are you liquibase settings in application.properties?

– htshame
2 days ago













I dont have a application.properties. I think that is a file only used in maven and since i use gradle with the gradle plugin i dont need one. The only property interesting in this case would be the changeLogFile and that is set correctly. The problem occures in the changelog-v1-0.xml file

– Philipp Schöppner
2 days ago





I dont have a application.properties. I think that is a file only used in maven and since i use gradle with the gradle plugin i dont need one. The only property interesting in this case would be the changeLogFile and that is set correctly. The problem occures in the changelog-v1-0.xml file

– Philipp Schöppner
2 days ago












0






active

oldest

votes











Your Answer






StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");

StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});






Philipp Schöppner is a new contributor. Be nice, and check out our Code of Conduct.










draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f54257030%2fliquibase-includeall-doesnt-find-base-path%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























0






active

oldest

votes








0






active

oldest

votes









active

oldest

votes






active

oldest

votes








Philipp Schöppner is a new contributor. Be nice, and check out our Code of Conduct.










draft saved

draft discarded


















Philipp Schöppner is a new contributor. Be nice, and check out our Code of Conduct.













Philipp Schöppner is a new contributor. Be nice, and check out our Code of Conduct.












Philipp Schöppner is a new contributor. Be nice, and check out our Code of Conduct.
















Thanks for contributing an answer to Stack Overflow!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f54257030%2fliquibase-includeall-doesnt-find-base-path%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

How to use setInterval in EJS file?

Petrus Granier-Deferre