AE
Size: a a a
AE
R
AE
AE
R
AE
RS
ZV
G
AT
<plugin>
<groupId>org.liquibase</groupId>
<artifactId>liquibase-maven-plugin</artifactId>
<version>3.5.3</version>
<configuration>
<propertyProviderClass>ru.universesoft.ucrm.configuration.LiquibaseProperties</propertyProviderClass>
<promptOnNonLocalDatabase>false</promptOnNonLocalDatabase>
<changeLogFile>../migrations/changelog.dev.xml</changeLogFile>
<defaultSchemaName>public</defaultSchemaName>
</configuration>
</plugin>
@Configuration
public class LiquibaseProperties extends Properties {
private static final Logger logger = LoggerFactory.getLogger(LiquibaseProperties.class);
public LiquibaseProperties() {
logger.info("Simple.....");
System.out.println(" => ");
this.put("driver", "sdfdsfsdf");
this.put("url", "fdsfdsfsd");
this.put("username", "fsdfsdfsd");
this.put("password", "fsdfdsfdsf");
}
}
The database URL has not been specified either as a parameter or in a properties file
VS
<plugin>
<groupId>org.liquibase</groupId>
<artifactId>liquibase-maven-plugin</artifactId>
<version>3.5.3</version>
<configuration>
<propertyProviderClass>ru.universesoft.ucrm.configuration.LiquibaseProperties</propertyProviderClass>
<promptOnNonLocalDatabase>false</promptOnNonLocalDatabase>
<changeLogFile>../migrations/changelog.dev.xml</changeLogFile>
<defaultSchemaName>public</defaultSchemaName>
</configuration>
</plugin>
@Configuration
public class LiquibaseProperties extends Properties {
private static final Logger logger = LoggerFactory.getLogger(LiquibaseProperties.class);
public LiquibaseProperties() {
logger.info("Simple.....");
System.out.println(" => ");
this.put("driver", "sdfdsfsdf");
this.put("url", "fdsfdsfsd");
this.put("username", "fsdfsdfsd");
this.put("password", "fsdfdsfdsf");
}
}
The database URL has not been specified either as a parameter or in a properties file
AT
propertyProviderClass
как раз и нужен для того, чтобы классом указывать.AT
liquibase.properties
всё работаетAT
R
R
СЭ