first of all nice would be a link in a README.md file to https://primefaces.org/designer-jsf/documentation.xhtml
or whatever the product is jsf/ng/vue etc
because if somebody just try's as me, you are running into troubles
PRE-Condition is:
install SASS it should be exectuabel (means in PATH !). then error Nr 2 not happening
Step 1) in unzipped project folder
this you have to run
sass --update src/main/webapp/resources/
it creates the theme.css
Step 2) build with mvn
a few remarks compiler woud be nice to have >= 1.8 / some environments complain this immediately
Code: Select all
mvn clean package
ERROR Nr 1
Code: Select all
package javax.annotation does not exist
Code: Select all
<dependency>
<groupId>javax.annotation</groupId>
<artifactId>javax.annotation-api</artifactId>
<version>1.2</version>
</dependency>
Step 3) run jetty to access the UI (add port because i have running other app on 8080)
Code: Select all
mvn clean jetty:run -Djetty.http.port=8082
ERROR Nr 2
Code: Select all
[INFO] Started Jetty Server
Dec 06, 2019 11:13:25 AM com.sun.faces.application.view.FaceletViewHandlingStrategy handleRenderException
SEVERE: Error Rendering View[/sample.xhtml]
javax.faces.FacesException: Error loading css, cannot find "theme.css" resource of "primefaces-nova-light" library
at org.primefaces.renderkit.HeadRenderer.encodeCSS(HeadRenderer.java:149)
at org.primefaces.renderkit.HeadRenderer.encodeBegin(HeadRenderer.java:81)
....
Dec 06, 2019 11:13:27 AM com.sun.faces.context.ExceptionHandlerImpl log
1100: JSF1073: javax.faces.FacesException caught during processing of RENDER_RESPONSE 6 : UIComponent-ClientId=, Message=Error loading css, cannot find "theme.css" resource of "primefaces-nova-light" library
Dec 06, 2019 11:13:27 AM com.sun.faces.context.ExceptionHandlerImpl log
1100: Error loading css, cannot find "theme.css" resource of "primefaces-nova-light" library
javax.faces.FacesException: Error loading css, cannot find "theme.css" resource of "primefaces-nova-light" library
Code: Select all
[WARNING]
[WARNING] Some problems were encountered while building the effective model for org.primefaces:designer:war:1.0.1
[WARNING] The expression ${build.sourceDirectory} is deprecated. Please use ${project.build.sourceDirectory} instead.
[WARNING]
[WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.
[WARNING]
[WARNING] For this reason, future Maven versions might no longer support building such malformed projects.
[WARNING]