we have a simple system property set in our pom.xml
<systemPropertyVariables>
<spring.profiles.active>${SPRING_PROFILES_ACTIVE}</spring.profiles.active>
</systemPropertyVariables>
when running maven on the command line, or within eclipse, since the SPRING_PROFILES_ACTIVE environment variable is not set, it gets substituted to a bland string ""
when importing the project into IntelliJ, intelliJ will set the spring.profiles.active system property to the value "${SPRING_PROFILES_ACTIVE}" and in our case, it will then cause spring to think it is an expression and yield
Caused by: java.lang.IllegalArgumentException: Could not resolve placeholder 'SPRING_PROFILES_ACTIVE' in string value [${SPRING_PROFILES_ACTIVE}]
Now, the work around is simple, we can either set the environment variable or we can configure -Dspring.profiles.active= as a VM option in the run configurations. However, it feels like the correct thing would have been to mimic the Maven behavior properly.
any thoughts? is this an issue?
thanks in advance for your time
Filip