Skip to end of metadata
Go to start of metadata

Using MyFaces in a project built with Maven

MyFaces can easily be added to a project built with Maven. The instruction below should work with version MyFaces 1.1.2+ and Maven 2.0.4+

Addition to your project's pom.xml

  • Add MyFaces as a dependency. The example below add MyFaces v1.1.4, myfaces-api and myfaces-impl, and Tomahawk v1.1.4. All dependencies required by MyFaces and Tomahawk are automatically included.

Using SNAPSHOT versions

If you want to use SNAPSHOT versions of MyFaces code, ie the bleeding edge that is not yet an official release, then add the following repository to your project's pom or your settings.xml file.

Some useful Maven commands

  • mvn -Declipse.downloadSources=true eclipse:eclipse will setup the eclipse project files and download the source the dependencies.
  • mvn war:inplace will copy dependencies into WEB-INF/lib and copy resources into WEB-INF/classes

For more information on Maven see

  • No labels