Re: Import Javascript through webjars as maven dependency.

2019-09-09 Thread Martin Grigorov
aResponse.render(JavaScriptHeaderItem.forReference(new WebjarsJavaScriptResourceReference("jquery.scroll*T*o/current/jquery.scroll *T*o.js"))); On Mon, Sep 9, 2019 at 2:06 PM Sibgha Nazir wrote: > Any idea, how to fix it? > > On Mon, Sep 9, 2019 at 10:01 AM Martin Grigorov > wrote: > > > Hi, >

Re: Import Javascript through webjars as maven dependency.

2019-09-09 Thread Sibgha Nazir
Any idea, how to fix it? On Mon, Sep 9, 2019 at 10:01 AM Martin Grigorov wrote: > 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

Re: Import Javascript through webjars as maven dependency.

2019-09-09 Thread Sibgha Nazir
Doesn't work with this solution as well. On Mon, Sep 9, 2019 at 6:59 AM Sven Meier 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

Re: Import Javascript through webjars as maven dependency.

2019-09-09 Thread Martin Grigorov
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 WebjarsJavaScriptResourceReferenc

Re: Import Javascript through webjars as maven dependency.

2019-09-08 Thread Sven Meier
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 : >Hi, > >I am not able to import the follo

Re: Import Javascript through webjars as maven dependency.

2019-09-08 Thread Sven Meier
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 : >Hi, > >I am not able to import the follo

Import Javascript through webjars as maven dependency.

2019-09-08 Thread Sibgha Nazir
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 org.webjars.bowergithub.flesler jquery.scro