I declared some properties specific to Maven profiles. Part of my pom.xml:
<profiles> <profile> <id>release</id> <activation> <activeByDefault>true</activeByDefault> </activation> <properties> <my.properties.file>foo.xml</my.properties.file> </properties> </profile> <profile> <id>ci</id> <properties> <my.properties.file>bar.xml</my.properties.file> </properties> </profile> </profiles>
I'm having some problem using Maven's "ci" profile when I run Junit tests through IntelliJ IDEA 2016.
I activate my profile through the Maven Projects panel, then run the tests. The problem is that the value of the property "my.properties.file" is equal to "foo.xml" and not "bar.xml".
I have no problem with the command line (I can use the "-Pci" flag). How can I tell IntelliJ to use the "ci" profile? thanks.
java intellij-idea maven junit
Jonathan lermitage
source share