I create one project with springboot and in my pom.xml I put some arguments to use when run mvn spring-boot:run just like this:
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<configuration>
<arguments>
<argument>--DATABASE_IP=localhost</argument>
<argument>--DATABASE_PORT=5432</argument>
<argument>--DATABASE=rtdpjlite_test</argument>
<argument>--DATABASE_USERNAME=user</argument>
<argument>--DATABASE_PASSWORD="</argument>
</arguments>
<jvmArguments>
-Xms1024m -Xmx1024m -XX:NewSize=256m -XX:MaxNewSize=512m -XX:PermSize=256m -XX:MaxPermSize=512m
</jvmArguments>
</configuration>
</plugin>
so when I run mvn spring-boot:run he will use this properties in my code, but now I need to run a mvn test, so it's possible to create something like the code above to use when I run the test?
tks