My project has some .JARs that are defined in profiles. For instance, load the PostgreSQL JAR if the PostgreSQL profile is active, or load the MySQL JAR if the MySQL profile is active.
I have this project imported to IDEA, and set the PostgreSQL profile active in the Maven Panel, yet the jar is not added when the artifact is built, so it’s not deployed to Tomcat, and then the WebApp doesn’t start.
What am I missing?
Looks like it’s an acknowledged bug in Intellij IDEA.