JSFのバージョンを確認する方法
簡単に確認できる方法を知っている方は教えてください
方法1. FacesContext
クラスで確認する
-
FacesContext
クラスをimportしているクラスを探す
$ grep -iIr import | grep FacesContext
- デバックしやすいクラスを選んでブレークポイントを張る
- デバックする
- ブレークポイントにきたらEclipseの[Expression]タブなどで以下の結果でバージョンを確認する
FacesContext.class.getPackage().getImplementationVersion();
FacesContext.class.getPackage().getImplementationTitle();
FacesContext
クラスをimportしているクラスを探す
$ grep -iIr import | grep FacesContext
FacesContext.class.getPackage().getImplementationVersion();
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>
参考
Author And Source
この問題について(JSFのバージョンを確認する方法), 我々は、より多くの情報をここで見つけました https://qiita.com/ponsuke0531/items/c6443ff1a368a56f650c著者帰属:元の著者の情報は、元のURLに含まれています。著作権は原作者に属する。
Content is automatically searched and collected through network algorithms . If there is a violation . Please contact us . We will adjust (correct author information ,or delete content ) as soon as possible .