How to configure Maven to override the settings file for another when running the test?

See the following project generated by Maven

target
    classes
    test-classes
src
    main
        java
        scripts
        resources
            datasource-settings.xml
    test
        java
        resources
            datasource-settings.xml

I would like, when starting the test , to use the parameters found in test / resources / datasource-settings.xml instead of main / resources / datasource-settings.xml. Is it possible? If so, what should I do to achieve my goal?

+5
source share
2 answers

, ${basedir}/src/test/resources ( ), , Maven , , ${basedir}/src/main/resources. , .

+9

POM, , , . ?

+3

All Articles