JSF 2.x project. Unable to resolve resources? Follow
IntelliJ IDEA 2020.3.3 (Ultimate Edition)
Build #IU-203.7717.56, built on March 15, 2021
Subscription is active until October 2, 2021.
Runtime version: 11.0.10+8-b1145.96 amd64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
Windows 10 10.0
GC: ParNew, ConcurrentMarkSweep
So (unfortunately) we have a JSF application that we continue to support. We're in the process of updating the platform and gaining significant ground on the process.
One thing that continues to annoy me, is Intellij apparently has an issue recognizing resources in the resources folder (css, images, etc.) ?
though when deployed these references are found with no issues.
I believe I have the requisite plugins installed for supporting jsf development, I don't seem to have issues with any other referencing through the IDE.
Is this a bug or a user problem?
Please sign in to leave a comment.
Does https://stackoverflow.com/a/13541195/104891 help?
It looks like your resources are in the wrong place, should be moved inside webapp directory.
Properties such as resource bundles that should go into the classpath of the application should be still placed in main/resources.
Well I'll be darn. Thanks! Do you know if that should also include property files too?
Yep, figured that out... Thanks for the help again Serge!