Doesn't work with this solution as well. On Mon, Sep 9, 2019 at 6:59 AM Sven Meier <s...@meiers.net> wrote:
> Hi, > > I don't know why, but WebJars doesn't seem to be able to determine the > 'current' version of your dependency. > > Try with "jquery.scrollto/2.1.1/jquery.scrollto.js" instead. > > Hope this helps > Sven > > Am 8. September 2019 14:27:34 MESZ schrieb Sibgha Nazir < > sibgha...@gmail.com>: > >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 >