Question

I have a Maven Web Project and I have a problem with the Javax.Faces library.

I've added the library to my pom.xml but I get an error message. I attached a few screenshots:

My Problem is:

Problem

And that problem show in markers:

Errors list

My Project Facets File:

Project Facets File

My Build Path:

Build Path

And my pom.xml file:

pom.xml

How can I resolve those error messages?

Was it helpful?

Solution

Seams that everything is fine with your configuration and maven dependencies get imported and added to project classpath.

Howerver I can see you are specifying version 2.2 in JSF Facets configuration while you are declaring a 2.1.10 jsf-api version in your pom file. So try to update your jsf-api and jsf-impl artifacts version to an onward one:

<!-- JSF 2.2 dependencies -->
<dependency>
    <groupId>com.sun.faces</groupId>
    <artifactId>jsf-api</artifactId>
    <version>2.2.6</version>
</dependency>
<dependency>
    <groupId>com.sun.faces</groupId>
    <artifactId>jsf-impl</artifactId>
    <version>2.2.6</version>
</dependency>
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top