I have a maven project with JPA and Hibernate:
<dependency>
<groupId>jakarta.persistence</groupId>
<artifactId>jakarta.persistence-api</artifactId>
<version>3.1.0</version>
</dependency>
<dependency>
<groupId>org.hibernate.orm</groupId>
<artifactId>hibernate-core</artifactId>
<version>6.2.13.Final</version>
</dependency>
<dependency>
<groupId>org.hibernate.orm</groupId>
<artifactId>hibernate-envers</artifactId>
<version>6.2.13.Final</version>
</dependency>
<!-- API for 2nd Level Cache -->
<dependency>
<groupId>org.hibernate.orm</groupId>
<artifactId>hibernate-jcache</artifactId>
<version>6.2.13.Final</version>
</dependency>
But IntelliJ IDEA doesn't recognize it and also doesn't add the JPA facet to the project settings.
Yes, I can manually add the JPA facet to the project settings. However, this is stored in the .iml file, which should not be shared via VCS. (share project settings).
The documentation (Add framworks) also describes that facets should be added through Maven and not through project settings.
What do I need to do to make IntelliJ IDEA automatically add the JPA facet? Are the dependencies not enough?
Update1: Info added
I have received the following information from Support. According to IDEA-308710 IDEA no longer automatically creates JPA Facets and provides the corresponding functionality without them.