I have been trying to include shufflejs in a Liferay (6.2) portlet.
I have added the following dependency to my
pom.xml
file:<dependency> <groupId>org.webjars.bower</groupId> <artifactId>shufflejs</artifactId> <version>4.0.0</version> <scope>compile</scope> </dependency>
- I have confirmed that on my tomcat server, the
webapps/my-portlet/WEB-INF/lib/shufflejs-4.0.0.jar
is present and contains, within it, theMETA-INF/resources/webjars/shufflejs/4.0.0/dist/shuffle.js
I have included the following line in my
liferay-portlet.xml
file:<header-portlet-javascript> /webjars/shufflejs/4.0.0/dist/shuffle.js </header-portlet-javascript>
- When I load my portlet's page with my browser, I get everything except I get a '404 Not Found' error for
http://localhost:20080/my-portlet/webjars/shufflejs/4.0.0/dist/shuffle.js?browserId=other&minifierType=js&languageId=en_US&b=6210&t=1465296591338
What am I missing?
Thank you