Maven profiles are ignored in Intellij IDEA 12

There are some .JARs in my project that are defined in profiles. For example, load the PostgreSQL JAR if the PostgreSQL profile is active, or load the MySQL JAR if the MySQL profile is active.

I have imported this project into IDEA and set up a PostgreSQL profile, which is active in the Maven panel, but the banner is not added when the artifact is created, so it does not deploy to Tomcat, and then WebApp does not start.

What am I missing?

+4
source share
2 answers

Intellij IDEA looks like a recognized bug .

+2
source

I had a similar problem. In some projects, <activeByDefault>true</activeByDefault> in some profiles, and they won’t build (because I have more than one maven module in my project).

I removed this option and activated each profile for each project. I worked, but the behavior does not match the behavior of IntelliJ 11 or 10. Hope this helps.

+2
source

All Articles