JHipster和Liquibase - 任务liquibaseClearChecksums的执行失败

时间:2018-02-13 17:31:45

标签: gradle jhipster liquibase

我使用这些值生成了一个JHipster应用程序:

{   
    "generator-jhipster": 
    {
        "jhipsterVersion": "4.13.0",
        "baseName": "app",
        "packageName": "my.app",
        "packageFolder": "my/app",
        "serverPort": "8080",
        "authenticationType": "session",
        "hibernateCache": "ehcache",
        "clusteredHttpSession": "no",
        "websocket": "no",
        "databaseType": "sql",
        "devDatabaseType": "h2Disk",
        "prodDatabaseType": "postgresql",
        "searchEngine": "elasticsearch",
        "buildTool": "gradle",
        "enableSocialSignIn": false,
        "rememberMeKey": "",
        "clientFramework": "angularX",
        "useSass": true,
        "applicationType": "monolith",
        "testFrameworks": [
          "gatling",
          "cucumber",
          "protractor"
         ],
        "jhiPrefix": "jhi",
        "enableTranslation": false  
    }  
}

当我尝试运行此任务./gradlew liquibaseClearChecksums时出现此错误:

FAILURE: Build failed with an exception.

Where:
Script '/home/james/appz/1-current-projects/jhipster/angelstore/gradle/liquibase.gradle' line: 36

What went wrong:
Execution failed for task ':liquibaseClearChecksums'.
> Could not resolve all files for configuration ':liquibase'.
   > Could not find org.liquibase.ext:liquibase-hibernate5:.
     Required by:
         project :

我在build.gradle文件中添加了这一行:

compile group: 'org.liquibase.ext', name: 'liquibase-hibernate5', version: '3.6'

但是当我运行./gradlew liquibaseClearChecksums

时,错误仍然会出现

有什么建议吗?

谢谢

1 个答案:

答案 0 :(得分:1)

请升级到JHipster 4.14.0(运行jhipster upgrade)或修补您的gradle文件,如this commit