JSFのバージョンを確認する方法


簡単に確認できる方法を知っている方は教えてください

方法1. FacesContextクラスで確認する

  1. FacesContextクラスをimportしているクラスを探す
    1. $ grep -iIr import | grep FacesContext
  2. デバックしやすいクラスを選んでブレークポイントを張る
  3. デバックする
  4. ブレークポイントにきたらEclipseの[Expression]タブなどで以下の結果でバージョンを確認する
    1. FacesContext.class.getPackage().getImplementationVersion();
    2. FacesContext.class.getPackage().getImplementationTitle();

方法2. MANIFEST.MFを見る

/META-INF/MANIFEST.MFを開いてみる

方法3. pom.xmlをみる

Mavenのプロジェクトの場合

    <dependency>
      <groupId>org.glassfish</groupId>
      <artifactId>javax.faces</artifactId>
      <version>2.3.9</version>
      <scope>provided</scope>
    </dependency>

参考