File tree 6 files changed +49
-31
lines changed
webapp/WEB-INF/jsp/fragments
6 files changed +49
-31
lines changed Original file line number Diff line number Diff line change
1
+ {
2
+ "directory": "src/main/webapp/bower_components"
3
+ }
Original file line number Diff line number Diff line change
1
+ {
2
+ "name" : " spring-petclinic" ,
3
+ "authors" : [
4
+ " ihabritane.faycal@gmail.com"
5
+ ],
6
+ "dependencies" : {
7
+ "bootstrap" : " ~2.3.0" ,
8
+ "jquery" : " ~2.0.3" ,
9
+ "jquery-ui" : " ~1.10.3"
10
+ }
11
+ }
Original file line number Diff line number Diff line change 36
36
<mysql-driver .version>5.1.36</mysql-driver .version>
37
37
38
38
<!-- Web dependencies -->
39
- <webjars-bootstrap .version>2.3.0</webjars-bootstrap .version>
40
- <webjars-jquery-ui .version>1.10.3</webjars-jquery-ui .version>
41
- <webjars-jquery .version>2.0.3-1</webjars-jquery .version>
42
39
<dandelion .version>1.1.1</dandelion .version>
43
40
<dandelion .datatables.version>1.1.0</dandelion .datatables.version>
44
41
223
220
</exclusion >
224
221
</exclusions >
225
222
</dependency >
226
- <!-- Webjars (static dependencies distributed as JAR files) -->
227
- <dependency >
228
- <groupId >org.webjars</groupId >
229
- <artifactId >bootstrap</artifactId >
230
- <version >${webjars-bootstrap.version} </version >
231
- </dependency >
232
- <dependency >
233
- <groupId >org.webjars</groupId >
234
- <artifactId >jquery-ui</artifactId >
235
- <version >${webjars-jquery-ui.version} </version >
236
- </dependency >
237
- <dependency >
238
- <groupId >org.webjars</groupId >
239
- <artifactId >jquery</artifactId >
240
- <version >${webjars-jquery.version} </version >
241
- </dependency >
242
-
223
+
243
224
<!-- Test Artifacts -->
244
225
<dependency >
245
226
<groupId >org.springframework</groupId >
408
389
</plugin >
409
390
</plugins >
410
391
</reporting >
392
+ <profiles >
393
+ <profile >
394
+ <id >bower-install</id >
395
+ <build >
396
+ <plugins >
397
+ <plugin >
398
+ <groupId >org.codehaus.mojo</groupId >
399
+ <artifactId >exec-maven-plugin</artifactId >
400
+ <executions >
401
+ <execution >
402
+ <phase >generate-sources</phase >
403
+ <goals >
404
+ <goal >exec</goal >
405
+ </goals >
406
+ </execution >
407
+ </executions >
408
+ <configuration >
409
+ <executable >bower</executable >
410
+ <arguments >
411
+ <argument >install</argument >
412
+ </arguments >
413
+ <workingDirectory >${basedir} </workingDirectory >
414
+ </configuration >
415
+ </plugin >
416
+ </plugins >
417
+ </build >
418
+ </profile >
419
+ </profiles >
411
420
412
421
<url >demopetclinic</url >
413
422
</project >
Original file line number Diff line number Diff line change 28
28
(see header.jsp for more details) -->
29
29
<mvc : resources mapping =" /resources/**" location =" /resources/" />
30
30
31
- <!-- uses WebJars so Javascript and CSS libs can be declared as Maven dependencies (Bootstrap, jQuery...) -->
32
- <mvc : resources mapping =" /webjars/**" location =" classpath:/META-INF/resources/webjars/" />
33
-
34
31
<mvc : view-controller path =" /" view-name =" welcome" />
35
32
36
33
<!-- serve static resources (*.html, ...) from src/main/webapp/
Original file line number Diff line number Diff line change @@ -9,25 +9,23 @@ PetClinic :: a Spring Framework demonstration
9
9
<title >PetClinic :: a Spring Framework demonstration</title >
10
10
11
11
12
- <spring:url value =" /webjars /bootstrap/2.3.0/ css/bootstrap.min .css" var =" bootstrapCss" />
12
+ <spring:url value =" /bower_components /bootstrap/docs/assets/ css/bootstrap.css" var =" bootstrapCss" />
13
13
<link href =" ${ bootstrapCss } " rel =" stylesheet" />
14
14
15
15
<spring:url value =" /resources/css/petclinic.css" var =" petclinicCss" />
16
16
<link href =" ${ petclinicCss } " rel =" stylesheet" />
17
17
18
- <spring:url value =" /webjars /jquery/2.0.3 /jquery.js" var =" jQuery" />
18
+ <spring:url value =" /bower_components /jquery/jquery.js" var =" jQuery" />
19
19
<script src =" ${ jQuery } " ></script >
20
20
21
21
<!-- jquery-ui.js file is really big so we only load what we need instead of loading everything -->
22
- <spring:url value =" /webjars/jquery -ui/1.10.3 /ui/jquery.ui.core.js" var =" jQueryUiCore" />
22
+ <spring:url value =" /bower_components/query -ui/ui/jquery.ui.core.js" var =" jQueryUiCore" />
23
23
<script src =" ${ jQueryUiCore } " ></script >
24
24
25
- <spring:url value =" /webjars/jquery -ui/1.10.3 /ui/jquery.ui.datepicker.js" var =" jQueryUiDatePicker" />
25
+ <spring:url value =" /bower_components/query -ui/ui/jquery.ui.datepicker.js" var =" jQueryUiDatePicker" />
26
26
<script src =" ${ jQueryUiDatePicker } " ></script >
27
27
28
28
<!-- jquery-ui.css file is not that big so we can afford to load it -->
29
- <spring:url value =" /webjars/jquery -ui/1.10.3/ themes/base/jquery-ui .css" var =" jQueryUiCss" />
29
+ <spring:url value =" /bower_components/query -ui/themes/base/jquery.ui.base .css" var =" jQueryUiCss" />
30
30
<link href =" ${ jQueryUiCss } " rel =" stylesheet" ></link >
31
31
</head >
32
-
33
-
Original file line number Diff line number Diff line change 135
135
<stringProp name =" HTTPSampler.response_timeout" ></stringProp >
136
136
<stringProp name =" HTTPSampler.protocol" ></stringProp >
137
137
<stringProp name =" HTTPSampler.contentEncoding" ></stringProp >
138
- <stringProp name =" HTTPSampler.path" >${CONTEXT_WEB}/webjars /jquery/2.0.3 /jquery.js</stringProp >
138
+ <stringProp name =" HTTPSampler.path" >${CONTEXT_WEB}/bower_components /jquery/jquery.js</stringProp >
139
139
<stringProp name =" HTTPSampler.method" >GET</stringProp >
140
140
<boolProp name =" HTTPSampler.follow_redirects" >true</boolProp >
141
141
<boolProp name =" HTTPSampler.auto_redirects" >false</boolProp >
You can’t perform that action at this time.
0 commit comments