I would like to define database url, username, password
in one place. Currently I have
application.properties
with
spring.datasource.url=....
spring.datasource.username=sa
spring.datasource.password=00
And pom.xml
with
<plugin>
<groupId>org.flywaydb</groupId>
<artifactId>flyway-maven-plugin</artifactId>
<version>4.1.2</version>
<configuration>
<url>....</url>
<user>sa</user>
<password>00</password>
</configuration>
</plugin>
So probably I need to reuse property values defined in application.properties
.
This <password>${spring.datasource.password}</password>
doesn't work.
Also I tried
<systemProperties>
<systemProperty>
<name>url</name>
<value>....</value>
</systemProperty>
...
</systemProperties>
Neither approach is working.