質問編集履歴
2
JUnit5をmavenに追加
test
CHANGED
File without changes
|
test
CHANGED
@@ -356,6 +356,32 @@
|
|
356
356
|
|
357
357
|
</dependency>
|
358
358
|
|
359
|
+
|
360
|
+
|
361
|
+
<dependency>
|
362
|
+
|
363
|
+
<groupId>org.junit.jupiter</groupId>
|
364
|
+
|
365
|
+
<artifactId>junit-jupiter-api</artifactId>
|
366
|
+
|
367
|
+
<version>5.6.0</version>
|
368
|
+
|
369
|
+
<scope>test</scope>
|
370
|
+
|
371
|
+
</dependency>
|
372
|
+
|
373
|
+
<dependency>
|
374
|
+
|
375
|
+
<groupId>org.junit.jupiter</groupId>
|
376
|
+
|
377
|
+
<artifactId>junit-jupiter-engine</artifactId>
|
378
|
+
|
379
|
+
<version>5.6.0</version>
|
380
|
+
|
381
|
+
<scope>test</scope>
|
382
|
+
|
383
|
+
</dependency>
|
384
|
+
|
359
385
|
|
360
386
|
|
361
387
|
</dependencies>
|
@@ -566,6 +592,4 @@
|
|
566
592
|
|
567
593
|
</project>
|
568
594
|
|
569
|
-
|
570
|
-
|
571
595
|
```
|
1
pom.xmlの追加
test
CHANGED
File without changes
|
test
CHANGED
@@ -61,3 +61,511 @@
|
|
61
61
|
もう何が何だか分からなくなりました。助けてください。
|
62
62
|
|
63
63
|
~すればではなく、回答も詳細にお願いします。
|
64
|
+
|
65
|
+
|
66
|
+
|
67
|
+
**追加***
|
68
|
+
|
69
|
+
pom.xml
|
70
|
+
|
71
|
+
```xml
|
72
|
+
|
73
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
74
|
+
|
75
|
+
<project xmlns="http://maven.apache.org/POM/4.0.0"
|
76
|
+
|
77
|
+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
78
|
+
|
79
|
+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
80
|
+
|
81
|
+
<modelVersion>4.0.0</modelVersion>
|
82
|
+
|
83
|
+
|
84
|
+
|
85
|
+
<groupId>spring.mvc.demo</groupId>
|
86
|
+
|
87
|
+
<artifactId>SpringMVCDemo</artifactId>
|
88
|
+
|
89
|
+
<version>1.0-SNAPSHOT</version>
|
90
|
+
|
91
|
+
|
92
|
+
|
93
|
+
<packaging>war</packaging>
|
94
|
+
|
95
|
+
|
96
|
+
|
97
|
+
|
98
|
+
|
99
|
+
|
100
|
+
|
101
|
+
<properties>
|
102
|
+
|
103
|
+
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
104
|
+
|
105
|
+
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
|
106
|
+
|
107
|
+
|
108
|
+
|
109
|
+
<!-- Java version -->
|
110
|
+
|
111
|
+
<java.version>8</java.version>
|
112
|
+
|
113
|
+
<maven.compiler.source>${java.version}</maven.compiler.source>
|
114
|
+
|
115
|
+
<maven.compiler.target>${java.version}</maven.compiler.target>
|
116
|
+
|
117
|
+
|
118
|
+
|
119
|
+
<!-- Spring -->
|
120
|
+
|
121
|
+
<spring.version>3.1.4.RELEASE</spring.version>
|
122
|
+
|
123
|
+
|
124
|
+
|
125
|
+
<!-- Test -->
|
126
|
+
|
127
|
+
<junit.version>5.6.0</junit.version>
|
128
|
+
|
129
|
+
|
130
|
+
|
131
|
+
<log4j.version>1.2.17</log4j.version>
|
132
|
+
|
133
|
+
|
134
|
+
|
135
|
+
|
136
|
+
|
137
|
+
</properties>
|
138
|
+
|
139
|
+
|
140
|
+
|
141
|
+
<dependencies>
|
142
|
+
|
143
|
+
<dependency>
|
144
|
+
|
145
|
+
<groupId>org.springframework</groupId>
|
146
|
+
|
147
|
+
<artifactId>spring-core</artifactId>
|
148
|
+
|
149
|
+
<version>${spring.version}</version>
|
150
|
+
|
151
|
+
</dependency>
|
152
|
+
|
153
|
+
|
154
|
+
|
155
|
+
<dependency>
|
156
|
+
|
157
|
+
<groupId>org.springframework</groupId>
|
158
|
+
|
159
|
+
<artifactId>spring-web</artifactId>
|
160
|
+
|
161
|
+
<version>${spring.version}</version>
|
162
|
+
|
163
|
+
</dependency>
|
164
|
+
|
165
|
+
|
166
|
+
|
167
|
+
<dependency>
|
168
|
+
|
169
|
+
<groupId>org.springframework</groupId>
|
170
|
+
|
171
|
+
<artifactId>spring-webmvc</artifactId>
|
172
|
+
|
173
|
+
<version>${spring.version}</version>
|
174
|
+
|
175
|
+
</dependency>
|
176
|
+
|
177
|
+
|
178
|
+
|
179
|
+
<!-- https://mvnrepository.com/artifact/org.junit.jupiter/junit-jupiter-api -->
|
180
|
+
|
181
|
+
<dependency>
|
182
|
+
|
183
|
+
<groupId>org.junit.jupiter</groupId>
|
184
|
+
|
185
|
+
<artifactId>junit-jupiter-api</artifactId>
|
186
|
+
|
187
|
+
<version>${junit.version}</version>
|
188
|
+
|
189
|
+
<scope>test</scope>
|
190
|
+
|
191
|
+
</dependency>
|
192
|
+
|
193
|
+
|
194
|
+
|
195
|
+
<dependency>
|
196
|
+
|
197
|
+
<groupId>io.spring.platform</groupId>
|
198
|
+
|
199
|
+
<artifactId>platform-bom</artifactId>
|
200
|
+
|
201
|
+
<version>2.0.8.RELEASE</version>
|
202
|
+
|
203
|
+
<type>pom</type>
|
204
|
+
|
205
|
+
<scope>import</scope>
|
206
|
+
|
207
|
+
</dependency>
|
208
|
+
|
209
|
+
|
210
|
+
|
211
|
+
<dependency>
|
212
|
+
|
213
|
+
<groupId>log4j</groupId>
|
214
|
+
|
215
|
+
<artifactId>log4j</artifactId>
|
216
|
+
|
217
|
+
<version>${log4j.version}</version>
|
218
|
+
|
219
|
+
</dependency>
|
220
|
+
|
221
|
+
|
222
|
+
|
223
|
+
<!-- https://mvnrepository.com/artifact/org.hibernate.javax.persistence/hibernate-jpa-2.0-api -->
|
224
|
+
|
225
|
+
<dependency>
|
226
|
+
|
227
|
+
<groupId>org.hibernate.javax.persistence</groupId>
|
228
|
+
|
229
|
+
<artifactId>hibernate-jpa-2.0-api</artifactId>
|
230
|
+
|
231
|
+
<version>1.0.1.Final</version>
|
232
|
+
|
233
|
+
</dependency>
|
234
|
+
|
235
|
+
|
236
|
+
|
237
|
+
<!-- https://mvnrepository.com/artifact/org.projectlombok/lombok -->
|
238
|
+
|
239
|
+
<dependency>
|
240
|
+
|
241
|
+
<groupId>org.projectlombok</groupId>
|
242
|
+
|
243
|
+
<artifactId>lombok</artifactId>
|
244
|
+
|
245
|
+
<version>1.18.16</version>
|
246
|
+
|
247
|
+
<scope>provided</scope>
|
248
|
+
|
249
|
+
</dependency>
|
250
|
+
|
251
|
+
|
252
|
+
|
253
|
+
<dependency>
|
254
|
+
|
255
|
+
<groupId>javax.validation</groupId>
|
256
|
+
|
257
|
+
<artifactId>validation-api</artifactId>
|
258
|
+
|
259
|
+
<version>2.0.1.FINAL</version>
|
260
|
+
|
261
|
+
<scope>provided</scope>
|
262
|
+
|
263
|
+
</dependency>
|
264
|
+
|
265
|
+
|
266
|
+
|
267
|
+
<dependency>
|
268
|
+
|
269
|
+
<groupId>org.apache.taglibs</groupId>
|
270
|
+
|
271
|
+
<artifactId>taglibs-standard-impl</artifactId>
|
272
|
+
|
273
|
+
<version>1.2.5</version>
|
274
|
+
|
275
|
+
</dependency>
|
276
|
+
|
277
|
+
|
278
|
+
|
279
|
+
<dependency>
|
280
|
+
|
281
|
+
<groupId>org.hibernate</groupId>
|
282
|
+
|
283
|
+
<artifactId>hibernate-validator</artifactId>
|
284
|
+
|
285
|
+
<version>5.2.4.Final</version>
|
286
|
+
|
287
|
+
</dependency>
|
288
|
+
|
289
|
+
|
290
|
+
|
291
|
+
<!-- https://mvnrepository.com/artifact/org.springframework/spring-test -->
|
292
|
+
|
293
|
+
<dependency>
|
294
|
+
|
295
|
+
<groupId>org.springframework</groupId>
|
296
|
+
|
297
|
+
<artifactId>spring-test</artifactId>
|
298
|
+
|
299
|
+
<version>${spring.version}</version>
|
300
|
+
|
301
|
+
<scope>test</scope>
|
302
|
+
|
303
|
+
</dependency>
|
304
|
+
|
305
|
+
|
306
|
+
|
307
|
+
<!-- https://mvnrepository.com/artifact/org.springframework/spring-test-mvc -->
|
308
|
+
|
309
|
+
<dependency>
|
310
|
+
|
311
|
+
<groupId>org.springframework</groupId>
|
312
|
+
|
313
|
+
<artifactId>spring-test-mvc</artifactId>
|
314
|
+
|
315
|
+
<version>1.0.0.M2</version>
|
316
|
+
|
317
|
+
<scope>test</scope>
|
318
|
+
|
319
|
+
</dependency>
|
320
|
+
|
321
|
+
|
322
|
+
|
323
|
+
<dependency>
|
324
|
+
|
325
|
+
<groupId>org.mockito</groupId>
|
326
|
+
|
327
|
+
<artifactId>mockito-core</artifactId>
|
328
|
+
|
329
|
+
<version>1.10.19</version>
|
330
|
+
|
331
|
+
<scope>test</scope>
|
332
|
+
|
333
|
+
</dependency>
|
334
|
+
|
335
|
+
|
336
|
+
|
337
|
+
<dependency>
|
338
|
+
|
339
|
+
<groupId>cglib</groupId>
|
340
|
+
|
341
|
+
<artifactId>cglib</artifactId>
|
342
|
+
|
343
|
+
<version>2.2.2</version>
|
344
|
+
|
345
|
+
</dependency>
|
346
|
+
|
347
|
+
|
348
|
+
|
349
|
+
<dependency>
|
350
|
+
|
351
|
+
<groupId>javax.xml.bind</groupId>
|
352
|
+
|
353
|
+
<artifactId>jaxb-api</artifactId>
|
354
|
+
|
355
|
+
<version>2.3.0</version>
|
356
|
+
|
357
|
+
</dependency>
|
358
|
+
|
359
|
+
|
360
|
+
|
361
|
+
</dependencies>
|
362
|
+
|
363
|
+
|
364
|
+
|
365
|
+
<repositories>
|
366
|
+
|
367
|
+
<repository>
|
368
|
+
|
369
|
+
<id>spring-maven-milestone</id>
|
370
|
+
|
371
|
+
<name>Spring Maven Milestone Repository</name>
|
372
|
+
|
373
|
+
<url>https://maven.springframework.org/milestone</url>
|
374
|
+
|
375
|
+
</repository>
|
376
|
+
|
377
|
+
</repositories>
|
378
|
+
|
379
|
+
|
380
|
+
|
381
|
+
<build>
|
382
|
+
|
383
|
+
<plugins>
|
384
|
+
|
385
|
+
<plugin>
|
386
|
+
|
387
|
+
<artifactId>maven-compiler-plugin</artifactId>
|
388
|
+
|
389
|
+
<version>3.8.0</version>
|
390
|
+
|
391
|
+
<configuration>
|
392
|
+
|
393
|
+
<release>8</release>
|
394
|
+
|
395
|
+
</configuration>
|
396
|
+
|
397
|
+
</plugin>
|
398
|
+
|
399
|
+
<plugin>
|
400
|
+
|
401
|
+
<artifactId>maven-war-plugin</artifactId>
|
402
|
+
|
403
|
+
<version>3.2.1</version>
|
404
|
+
|
405
|
+
<configuration>
|
406
|
+
|
407
|
+
<warSourceDirectory>WebContent</warSourceDirectory>
|
408
|
+
|
409
|
+
</configuration>
|
410
|
+
|
411
|
+
</plugin>
|
412
|
+
|
413
|
+
|
414
|
+
|
415
|
+
<plugin>
|
416
|
+
|
417
|
+
<groupId>org.apache.maven.plugins</groupId>
|
418
|
+
|
419
|
+
<artifactId>maven-antrun-plugin</artifactId>
|
420
|
+
|
421
|
+
<version>1.3</version>
|
422
|
+
|
423
|
+
<executions>
|
424
|
+
|
425
|
+
<execution>
|
426
|
+
|
427
|
+
<id>delete-lib-dir</id>
|
428
|
+
|
429
|
+
<phase>initialize</phase>
|
430
|
+
|
431
|
+
<configuration>
|
432
|
+
|
433
|
+
<tasks>
|
434
|
+
|
435
|
+
<delete dir="src/main/webapp/WEB-INF/lib"/>
|
436
|
+
|
437
|
+
</tasks>
|
438
|
+
|
439
|
+
</configuration>
|
440
|
+
|
441
|
+
<goals>
|
442
|
+
|
443
|
+
<goal>run</goal>
|
444
|
+
|
445
|
+
</goals>
|
446
|
+
|
447
|
+
</execution>
|
448
|
+
|
449
|
+
</executions>
|
450
|
+
|
451
|
+
</plugin>
|
452
|
+
|
453
|
+
<plugin>
|
454
|
+
|
455
|
+
<groupId>org.apache.maven.plugins</groupId>
|
456
|
+
|
457
|
+
<artifactId>maven-dependency-plugin</artifactId>
|
458
|
+
|
459
|
+
<version>2.0</version>
|
460
|
+
|
461
|
+
<executions>
|
462
|
+
|
463
|
+
<execution>
|
464
|
+
|
465
|
+
<goals>
|
466
|
+
|
467
|
+
<goal>copy-dependencies</goal>
|
468
|
+
|
469
|
+
</goals>
|
470
|
+
|
471
|
+
<configuration>
|
472
|
+
|
473
|
+
<outputDirectory>src/main/webapp/WEB-INF/lib</outputDirectory>
|
474
|
+
|
475
|
+
<excludeScope>provided</excludeScope>
|
476
|
+
|
477
|
+
<overWriteIfNewer>true</overWriteIfNewer>
|
478
|
+
|
479
|
+
<overWriteReleases>true</overWriteReleases>
|
480
|
+
|
481
|
+
<overWriteSnapshots>true</overWriteSnapshots>
|
482
|
+
|
483
|
+
</configuration>
|
484
|
+
|
485
|
+
</execution>
|
486
|
+
|
487
|
+
</executions>
|
488
|
+
|
489
|
+
</plugin>
|
490
|
+
|
491
|
+
</plugins>
|
492
|
+
|
493
|
+
<pluginManagement>
|
494
|
+
|
495
|
+
<plugins>
|
496
|
+
|
497
|
+
<!--This plugin's configuration is used to store Eclipse m2e settings only. It has no influence on the Maven build itself.-->
|
498
|
+
|
499
|
+
<plugin>
|
500
|
+
|
501
|
+
<groupId>org.eclipse.m2e</groupId>
|
502
|
+
|
503
|
+
<artifactId>lifecycle-mapping</artifactId>
|
504
|
+
|
505
|
+
<version>1.0.0</version>
|
506
|
+
|
507
|
+
<configuration>
|
508
|
+
|
509
|
+
<lifecycleMappingMetadata>
|
510
|
+
|
511
|
+
<pluginExecutions>
|
512
|
+
|
513
|
+
<pluginExecution>
|
514
|
+
|
515
|
+
<pluginExecutionFilter>
|
516
|
+
|
517
|
+
<groupId>
|
518
|
+
|
519
|
+
org.apache.maven.plugins
|
520
|
+
|
521
|
+
</groupId>
|
522
|
+
|
523
|
+
<artifactId>
|
524
|
+
|
525
|
+
maven-antrun-plugin
|
526
|
+
|
527
|
+
</artifactId>
|
528
|
+
|
529
|
+
<versionRange>
|
530
|
+
|
531
|
+
[1.3,)
|
532
|
+
|
533
|
+
</versionRange>
|
534
|
+
|
535
|
+
<goals>
|
536
|
+
|
537
|
+
<goal>run</goal>
|
538
|
+
|
539
|
+
</goals>
|
540
|
+
|
541
|
+
</pluginExecutionFilter>
|
542
|
+
|
543
|
+
<action>
|
544
|
+
|
545
|
+
<ignore></ignore>
|
546
|
+
|
547
|
+
</action>
|
548
|
+
|
549
|
+
</pluginExecution>
|
550
|
+
|
551
|
+
</pluginExecutions>
|
552
|
+
|
553
|
+
</lifecycleMappingMetadata>
|
554
|
+
|
555
|
+
</configuration>
|
556
|
+
|
557
|
+
</plugin>
|
558
|
+
|
559
|
+
</plugins>
|
560
|
+
|
561
|
+
</pluginManagement>
|
562
|
+
|
563
|
+
<finalName>spring</finalName>
|
564
|
+
|
565
|
+
</build>
|
566
|
+
|
567
|
+
</project>
|
568
|
+
|
569
|
+
|
570
|
+
|
571
|
+
```
|