Building From Source - analyticom/primefaces GitHub Wiki
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.
Build and Install maven-jsf-plugin
If you already have maven-jsf-plugin in your local maven repository you can skip this step.
git clone https://github.com/primefaces/maven-jsf-plugin.git
cd to the maven-jsf-plugin directory
cd maven-jsf-plugin
Default clone points to master branch 1.3.3-SNAPSHOT, current project build require version 1.3.2, get it from tags. Fetch all tags to local and check out to 1.3.2 tag.
git fetch --tags
git checkout 1_3_2
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 https://github.com/primefaces/primefaces.git
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 5.2 release.
git clone https://github.com/primefaces/primefaces.git
cd primefaces
git fetch --tags
git checkout 5_2
mvn clean install
Use 5_2
for 5.2 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.