How can I do to use the maven dependency library instead of the Jboss library?
I have the following dependencies in my pom.xml file:
<properties>
<jsf.version>2.2.8-02</jsf.version>
</properties>
...
<dependencies>
<dependency>
<groupId>com.sun.faces</groupId>
<artifactId>jsf-api</artifactId>
<version>${jsf.version}</version>
</dependency>
<dependency>
<groupId>com.sun.faces</groupId>
<artifactId>jsf-impl</artifactId>
<version>${jsf.version}</version>
</dependency>
</dependencies>
But when I start Jboss AS I get the following message:
09:49:57,000 INFO [javax.enterprise.resource.webcontainer.jsf.config] (MSC service thread 1-4) Initializing Mojarra 2.2.6-jbossorg-4 20140501-1134 for context ''
I think Jboss is using it own JSF libraries instead of maven libraries
The same thing happens using Jboss AS 7.1.1 and Wildfly 8.1.0 Final versions