I am trying to generate a rollback script by rollbackTag using maven
liquibase plugin as follows in offline mode. It failed to find a tag in
offline database(nothing but a changelog.csv file generated on process).
It working by rollbackCount.
I am suspecting the problem with generated changelog file in
offline mode It's not updating changeset tag information in it.
<plugin>
<groupId>org.liquibase</groupId>
<artifactId>liquibase-maven-plugin</artifactId>
<version>${liquibase.maven.plugin.version}</version>
<configuration>
<propertyFileWillOverride>true</propertyFileWillOverride>
</configuration>
<executions>
<execution>
<id>write-application-rollback-script-sql</id>
<phase>generate-sources</phase>
<configuration>
<changeLogFile>changelog/install-hub.xml</changeLogFile>
<propertyFile>env/offline.properties</propertyFile>
<migrationSqlOutputFile>${project.basedir}/target/liquibase/RollbackPatchScript.sql</migrationSqlOutputFile>
<rollbackTag>v3.1.0-1896</rollbackTag>
</configuration>
<goals>
<goal>rollbackSQL</goal>
</goals>
</execution>
</executions>
</plugin>
offline.properties
url: offline:oracle?version=11.0&changeLogFile=changelog.csv&outputLiquibaseSql=true