I know this is a quite old post, if you want to go agnostic from the implementation, then you should use the Java EE API dependency instead.
Just add to your POM:
<dependency>
<groupId>javax</groupId>
<artifactId>javaee-api</artifactId>
<version>${jee.version}</version>
<scope>provided</scope>
</dependency>
Where the ${jee.version} is your desired Java EE version. I’m currently using 7.0. It has all EJB, JPA and JSF APIs dependencies.