Currently, I am working on a JSF project with Maven and I am utilizing a JavaScript library for developing a 3D graphics interface. I am looking for a way to add/import this JS library into my project without the need to manually move/copy all the JS files into the webapp/resources directory. I have attempted to do so using the tags <resource>
and <dependency>
within the <dependencies>
tag of the pom.xml file, but unfortunately, it did not yield the desired results.
The specific error I am encountering is related to the following line of code:
<h:outputScript name="Three.js" />
It appears to be indicating that the specified resource cannot be located.
Any guidance or suggestions on how to resolve this issue would be greatly appreciated.
Additional information: I am working with JSF 2.1.