In this section, we are going to turn to the power of Maven to add additional themes. We can do this because the PrimeFaces team has made them available as dependencies. The only difference here is that they haven't made them available on Maven Central Repository. Instead, they are available on PrimeFaces Maven repository.
Note
Did you know that anyone can set up a Maven repository for themselves and provide libraries to the public? Doing this means not having to wait to get your work added to Maven Central Repository.
In order to get Maven to point to the PrimeFaces repository, we need to add an entry in the project's pom.xml
file.
Open the pom.xml
file, which will be found in the project's Project Files folder. Under the name
tag (highlighted in the following code), add everything in the repositories
tag and save the file:
<name>PFThemes</name>
<repositories>
<repository>
<id>prime-repo</id>
<name...