PrimeFaces is a lightweight library with one jar, zero-configuration and no required dependencies. You just need to add PrimeFaces and import the namespace into your XHTMLs to get started.
PrimeFaces is usally added as Apache Maven dependency. (Or alternatively Gradle dependency or manual download.)
<dependency>
<groupId>org.primefaces</groupId>
<artifactId>primefaces</artifactId>
<version>15.0.0</version>
<classifier>jakarta</classifier>
</dependency>
PrimeFaces namespace is necessary to add PrimeFaces components to your pages.
<html xmlns:p="primefaces">
</html>
That’s it, now you can add a test component to see if everything is ok..
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:h="jakarta.faces.html"
xmlns:f="jakarta.faces.core"
xmlns:p="primefaces">
<h:head>
</h:head>
<h:body>
<p:spinner />
</h:body>
</html>