我的pom.xml文件中有以下配置。我正在尝试强制测试阶段在调用 flyway:migrate 目标时自动运行。我尝试过推荐的执行,执行,阶段和目标配置无济于事。有没有人知道如何正确配置这个pom.xml来实现它?
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>1.8</source>
<target>1.8</target>
</configuration>
</plugin>
<plugin>
<groupId>org.flywaydb</groupId>
<artifactId>flyway-maven-plugin</artifactId>
<version>4.0.3</version>
<configuration>
<url>${flyway.configuration.url}</url>
<user>postgres</user>
<password>secret</password>
<cleanDisabled>true</cleanDisabled>
</configuration>
<executions>
<execution>
<id>1-test</id>
<phase>test</phase>
<goals>
<goal>info</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>