I have some issues running tests from within IntelliJ IDEA which rely on the proper execution of the maven lifecycle.
I have a Maven project which has some custom actions added to the lifecycle. Basically here's what it's doing:
src/test/resources/META-INF/persistence.xml: this file contains a token
i use the maven-antrun-plugin to collect a list of all JPA entities and store them into a file. this list is patched into the persistence.xml.
the persistence.xml later is used during execution of some unit tests.
using maven on the command line this approach works fine. however in the IDE i cannot run my tests. the persistence.xml that's used still contain the unreplaced token.
looking at the Project structure i see that src/test/resources is added as a test sources folder which is correct. however IntelliJ IDEA doesn't seem to execute the maven lifecycle (process-test-resources).
* Should the IDE execute the Lifecycle? Am I doing something wrong?
* If the Lifecycle is not executed. What are my alternatives to hook my custom actions in the IDE build?
thanks for any suggestions.