Use an alternative Maven Profile during test phase

前端 未结 2 657
一个人的身影
一个人的身影 2021-02-11 01:34

I\'m trying to build an application starting from an Appfuse Archetype, but I get some strange problems. For once I\'d like to use a hsqldb for automated unit tests and integrat

2条回答
  •  一个人的身影
    2021-02-11 02:29

    Not sure if this can help you at all but you can specify alternative resource files in the /src/test/resources folder which override the ones in /src/main/resources when running tests only.

    I define an alternative placeholders.properties file here to specify another db connection to be used by the test phase.

提交回复
热议问题