从maven的pom.xml中调用ant的build.xml中指定的liquibase扩展时无法加载

时间:2019-09-10 05:43:39

标签: liquibase

    
        
    

<path id="driver.classpath"> 
       <filelist dir="C:\ws_liquibase\mavenantprj1\lib" > 
                <file name="sqlmxdb-liquibase3.5.5-extension-v2.jar" />
                 <file name="t4sqlmx.jar" />                                
        </filelist>             
      </path>

 <property name="jdbc.driver" value="<>"/>
 <property name="jdbc.url" value="<>"/> 
 <property name="db.user" value="<>"/>
 <property name="db.password" value="<>"/>  

<target name = "target1">
<liquibase:database id="my-database" driver="${jdbc.driver}" url="${jdbc.url}" user="${db.user}" password="${db.password}" />   
<liquibase:updateDatabase databaseref="my-database" changelogfile="C:\ws_liquibase\mavenantprj1\src\main\resources\sqlmx_liquibase\regression_featuretests\updateCmd\sqlmx-master-updateCmd.xml" classpathref="driver.classpath" />
<liquibase:tagDatabase databaseref="my-database" tag="new-tag" classpathref="driver.classpath" />
</target>

使用maven-antrun-plugin从maven的pom.xml调用上述build.xml无效。

从maven的pom.xml中运行时,它无法选择liquibase扩展罐,但使用ant的独立运行成功。 从maven的pom.xml运行时看到的错误是: 目标1: [liquibase:updateDatabase]启动Liquibase。 警告19/10/9上午10:43:liquibase:未知数据库:NonStop SQL / MX

因为pom.xml无法使用liquibase扩展名,所以请在此处输入代码jar,而不是与liquibasejar一起运行。因此可以看到上述错误。enter code here

有人可以告诉我如何解决这个问题。

0 个答案:

没有答案