Hi, I think the problem is in the packaging of this webjar. The folder name in the .jar file is: /META-INF/resources/webjars/jquery.scroll*T*o/ . Note the capiral T in scrollTo. It does not match with the Maven artifact id - it uses lower case 't'. Because of this WebjarsJavaScriptResourceReference cannot find it.
On Sun, Sep 8, 2019 at 3:27 PM Sibgha Nazir <[email protected]> wrote: > Hi, > > I am not able to import the following through webjar as maven dependency in > my project. > > https://github.com/flesler/jquery.scrollTo > > I deployed it to the webjar using *bower install jquery.scrollTo* and it is > also visible on the webjars.org > > <dependency> > <groupId>org.webjars.bowergithub.flesler</groupId> > <artifactId>jquery.scrollto</artifactId> > <version>2.1.1</version> > </dependency> > > Add it to the project like > > aResponse.render(JavaScriptHeaderItem.forReference(new > > WebjarsJavaScriptResourceReference("jquery.scrollto/current/jquery.scrollto.js"))); > > > > The wicket shows the error > > > GET > > http://localhost:8080/wicket/resource/de.agilecoders.wicket.webjars.request.resource.WebjarsJavaScriptResourceReference/webjars/jquery.scrollto/null/jquery.scrollto.js > net::ERR_ABORTED 404 > > What could be the problem? > > Best Regards, > SIbgha >
