Maven configuration issue one or more constraints have not been satisfied

java, jsf, maven

Solution

Somewhere in your project there is a `web.xml` descriptor, and it declares version number for compliance with some edition of servlet-api. Your application tries to use JSF2 which requires `web.xml` to declare version 2.5 or newer. Apparently yours is too old.

Find this file and check what's there in the root element `<web-app>`. There are examples of this descriptor for version 2.5 and 3 here on SO: link1, link2, link3.

Problem

Got the following error while trying to build our common code. `Description Resource Path Location Type JavaServer Faces 2.0 can not be installed : One or more constraints have not been satisfied. Apps line 1 Maven Java EE Configuration Problem JavaServer Faces 2.0 requires Dynamic Web Module 2.5 or newer. Apps line 1 Maven Java EE Configuration Problem` I tried to find the error inside the code but there is no error. I suspect it's a dependency that is missing. Could someone please explain further if my thoughts are correct?

Original source

Related problems