title: How to change the version of JSF in eclipse?
body: <p>First, I'm really sorry for my terrible English.
  I'm starting to study Jboss and Ejb and I bought a book on the topic, I don't want to publicize the book but it's jboss as7development.
  I tried to develop the exercise in chapter 2,3,4 and 5 but I have the same problem.
  The book use a combination of maven Eclipse Jboss. It uses the javaee 6 archetype project, and at a certain point requires to transform the project lifecycle through faces but Eclipse doesn't allow it. I've searched the Internet for this problem but I didn't find any solution.
  I try to use javaee7 archetype but with the same pom.xml but it doesn't work. The version of jsf web module ecc in project facets are correct but Eclipse displays two errors in markers that are: </p>
  
  <p>Cannot change version of project facet Dynamic Web Module to 2.3.<br>
  ticket-agency-jpa  line 1<br>
  Maven Java EE Configuration Problem
  One or more constraints have not been satisfied.    ticket-agency-jpa line 1    Maven Java EE Configuration Problem</p>
  
  <p>I post here my pom.xml:</p>
  
  <pre><code>    &lt;project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
           xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"&gt;
      &lt;modelVersion&gt;4.0.0&lt;/modelVersion&gt;
  
      &lt;groupId&gt;com.packthub.as7development.chapter4&lt;/groupId&gt;
      &lt;artifactId&gt;ticket-agency-cdi&lt;/artifactId&gt;
      &lt;version&gt;0.0.1-SNAPSHOT&lt;/version&gt;
      &lt;packaging&gt;war&lt;/packaging&gt;
  
      &lt;name&gt;ticket-agency-cdi&lt;/name&gt;
      &lt;url&gt;http://maven.apache.org&lt;/url&gt;
  
      &lt;properties&gt;
          &lt;version.jboss.maven.plugin&gt;7.3.Final&lt;/version.jboss.maven.plugin&gt;
  
          &lt;project.build.sourceEncoding&gt;UTF-8&lt;/project.build.sourceEncoding&gt;
          &lt;version.org.richfaces&gt;4.2.0.Final&lt;/version.org.richfaces&gt;
  
          &lt;version.org.jboss.bom&gt;1.0.0.Final&lt;/version.org.jboss.bom&gt;
         &lt;version.jboss.spec.javaee.6.0&gt;3.0.2.Final&lt;/version.jboss.spec.javaee.6.0&gt;
  
          &lt;!-- other plugin versions --&gt;
          &lt;version.compiler.plugin&gt;2.3.1&lt;/version.compiler.plugin&gt;
          &lt;version.surefire.plugin&gt;2.4.3&lt;/version.surefire.plugin&gt;
          &lt;version.war.plugin&gt;2.1.1&lt;/version.war.plugin&gt;
  
          &lt;!-- maven-compiler-plugin --&gt;
          &lt;maven.compiler.target&gt;1.6&lt;/maven.compiler.target&gt;
          &lt;maven.compiler.source&gt;1.6&lt;/maven.compiler.source&gt;
      &lt;/properties&gt;
  
      &lt;dependencyManagement&gt;
          &lt;dependencies&gt;
              &lt;!-- JBoss distributes a complete set of Java EE 6 APIs including 
                  a Bill of Materials (BOM). A BOM specifies the versions of a "stack" (or 
                  a collection) of artifacts. We use this here so that we always get the correct 
                  versions of artifacts. Here we use the jboss-javaee-6.0-with-tools stack 
                  (you can read this as the JBoss stack of the Java EE 6 APIs, with some extras 
                  tools for your project, such as Arquillian for testing) and the jboss-javaee-6.0-with-hibernate
                  stack you can read this as the JBoss stack of the Java EE 6 APIs, with extras 
                  from the Hibernate family of projects) --&gt;
             &lt;dependency&gt;
                  &lt;groupId&gt;org.jboss.spec&lt;/groupId&gt;
                  &lt;artifactId&gt;jboss-javaee-6.0&lt;/artifactId&gt;
                  &lt;version&gt;${version.jboss.spec.javaee.6.0}&lt;/version&gt;
                  &lt;type&gt;pom&lt;/type&gt;
                  &lt;scope&gt;import&lt;/scope&gt;
              &lt;/dependency&gt;
              &lt;dependency&gt;
                  &lt;groupId&gt;org.richfaces&lt;/groupId&gt;
                  &lt;artifactId&gt;richfaces-bom&lt;/artifactId&gt;
                  &lt;version&gt;${version.org.richfaces}&lt;/version&gt;
                  &lt;scope&gt;import&lt;/scope&gt;
                  &lt;type&gt;pom&lt;/type&gt;
              &lt;/dependency&gt;
          &lt;/dependencies&gt;
      &lt;/dependencyManagement&gt;
  
  
      &lt;dependencies&gt;
          &lt;!-- First declare the APIs we depend on and need for compilation. 
              All of them are provided by JBoss AS 7 --&gt;
  
          &lt;!-- Import the CDI API, we use provided scope as the API is included 
              in JBoss AS 7 --&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;javax.enterprise&lt;/groupId&gt;
              &lt;artifactId&gt;cdi-api&lt;/artifactId&gt;
              &lt;scope&gt;provided&lt;/scope&gt;
          &lt;/dependency&gt;
  
          &lt;!-- Import the Common Annotations API (JSR-250), we use provided 
              scope as the API is included in JBoss AS 7.
              Servono per poter annotare i nostri bean --&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.jboss.spec.javax.annotation&lt;/groupId&gt;
              &lt;artifactId&gt;jboss-annotations-api_1.1_spec&lt;/artifactId&gt;
              &lt;scope&gt;provided&lt;/scope&gt;
          &lt;/dependency&gt;
  
          &lt;dependency&gt;
           &lt;groupId&gt;org.jboss.logging&lt;/groupId&gt;
           &lt;artifactId&gt;jboss-logging&lt;/artifactId&gt;
           &lt;version&gt;RELEASE&lt;/version&gt;
        &lt;/dependency&gt;
  
          &lt;!-- Import the EJB API, we use provided scope as the API is included 
              in JBoss AS 7 --&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.jboss.spec.javax.ejb&lt;/groupId&gt;
              &lt;artifactId&gt;jboss-ejb-api_3.1_spec&lt;/artifactId&gt;
              &lt;scope&gt;provided&lt;/scope&gt;
          &lt;/dependency&gt;
  
  
  
          &lt;!-- Import the JSF API, we use provided scope as the API is included 
              in JBoss AS 7 --&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.jboss.spec.javax.faces&lt;/groupId&gt;
              &lt;artifactId&gt;jboss-jsf-api_2.1_spec&lt;/artifactId&gt;
              &lt;scope&gt;provided&lt;/scope&gt;
          &lt;/dependency&gt;
  
            &lt;!-- Import RichFaces runtime dependencies - these will be included
           as libraries in the WAR --&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.richfaces.ui&lt;/groupId&gt;
              &lt;artifactId&gt;richfaces-components-ui&lt;/artifactId&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.richfaces.core&lt;/groupId&gt;
              &lt;artifactId&gt;richfaces-core-impl&lt;/artifactId&gt;
          &lt;/dependency&gt;
  
      &lt;/dependencies&gt;
    &lt;build&gt;
      &lt;finalName&gt;${project.artifactId}&lt;/finalName&gt;
      &lt;plugins&gt;
              &lt;!-- JBoss AS plugin to deploy the application --&gt;
              &lt;plugin&gt;
                  &lt;groupId&gt;org.jboss.as.plugins&lt;/groupId&gt;
                  &lt;artifactId&gt;jboss-as-maven-plugin&lt;/artifactId&gt;
                  &lt;version&gt;${version.jboss.maven.plugin}&lt;/version&gt;
                  &lt;configuration&gt;
                      &lt;filename&gt;${project.build.finalName}.war&lt;/filename&gt;
                  &lt;/configuration&gt;
              &lt;/plugin&gt;
      &lt;/plugins&gt;      
    &lt;/build&gt;
  
  &lt;/project&gt;
  </code></pre>
  
  <p>For my project I'm using eclipse Kepler and I need to use jsf 2.1. The web dynamic module is 3.0 and it's correct, when I try to change the jsf version eclipse says: Cannot change the version of project facet JavaServerFaces to 2.1.
  Any suggestion for how to proceed?</p>