The details.xhtml
has to end up like /META-INF/resources/details.xhtml
in the JAR. This way you'll be able to just use <ui:include src="details.xhtml">
.
In Maven perspective, that would be /src/main/resources/META-INF/resources/details.xhtml
.