Building From Source

Thomas Andraschko edited this page Sep 3, 2018 · 16 revisions

PrimeFaces uses maven as the build tool. There's a custom maven plugin to generate jsf artifacts. To begin you might need to check out and build PrimeFaces maven-jsf-plugin in case the version used is not available in Prime Repository.

The minimal Java Development Kit (JDK) version to build PrimeFaces is 8.

Build and Install maven-jsf-plugin (not required anymore since 6.3!)

If you already have maven-jsf-plugin in your local maven repository you can skip this step.

git clone

cd to the maven-jsf-plugin directory

cd maven-jsf-plugin

mvn clean install

Building PrimeFaces

Building PrimeFaces Snapshots

Next thing to do is to build PrimeFaces itself, clone the code with git, cd to the primefaces folder and run maven build. Github master branch similar trunk branch in SVN. Building from master will result into SNAPSHOT version of current development.

git clone

cd primefaces

mvn clean install

Building PrimeFaces Release versions

If you would like to build release versions of PrimeFaces from sources, you can use release tags. Follow the steps below to check out 6.0 release.

git clone

cd primefaces

git fetch --tags

git checkout 6_0

mvn clean install

Use 6_0 for 6.0 release, and so on.

How to minimize resources?

mvn clean install -Prelease will minimize resources, creates a javadoc jar and a sources jar.

Component Development

PrimeFaces JSF plugin generates the necessary artifacts including component sources, faces-config.xml, and facelets taglib. Component developers only need to implement the Renderer classes of the components. Component metadata files are defined under src/main/resources-maven-jsf folder.

You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
Press h to open a hovercard with more details.