forked from gilbutITbook/006895
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pom.xml
259 lines (214 loc) · 9.8 KB
/
pom.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.spring</groupId>
<artifactId>taowjp-study-parent</artifactId>
<name>${project.artifactId}</name>
<version>1.0.0-SNAPSHOT</version>
<packaging>pom</packaging>
<properties>
<java.version>17</java.version>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<maven.compiler.source>${java.version}</maven.compiler.source>
<maven.compiler.target>${java.version}</maven.compiler.target>
<lombok.version>1.18.30</lombok.version>
<log4j.version>2.23.1</log4j.version>
<commons-text.version>1.12.0</commons-text.version>
<jackson.version>2.17.2</jackson.version>
<jackson-databind.version>${jackson.version}</jackson-databind.version>
<hibernate-validator.version>8.0.1.Final</hibernate-validator.version>
<junit.version>5.10.3</junit.version>
<assertj.version>3.26.0</assertj.version>
<json-unit.version>3.4.0</json-unit.version>
<mockito.version>5.12.0</mockito.version>
<hamcrest.version>2.2</hamcrest.version>
<spring.version>6.1.10</spring.version>
<spring-security.version>6.3.1</spring-security.version>
<aspectj.version>1.9.22.1</aspectj.version>
<jakarta.servlet-api.version>6.0.0</jakarta.servlet-api.version>
<jakarta.servlet.jsp-api.version>3.1.1</jakarta.servlet.jsp-api.version>
<jakarta.servlet.jsp.jstl-api.version>3.0.0</jakarta.servlet.jsp.jstl-api.version>
<jakarta.servlet.jsp.jstl.version>3.0.1</jakarta.servlet.jsp.jstl.version>
<!-- Hibernate Validator 로컬 테스트시 필요하다. -->
<jakarta.el.version>5.0.0-M1</jakarta.el.version>
<ojdbc.version>23.4.0.24.05</ojdbc.version>
<mysql-connector-j.version>8.0.33</mysql-connector-j.version>
<hsqldb.version>2.7.3</hsqldb.version>
<java-time-jsptags.version>2.0.2</java-time-jsptags.version>
<commons-io.version>2.16.1</commons-io.version>
<!-- webjars -->
<webjars-jquery.version>3.7.1</webjars-jquery.version>
<webjars-bootstrap.version>5.3.3</webjars-bootstrap.version>
<!-- JSP 페이지에서 dateFns를 직접 사용하려면 이 버전을 사용해야한다. -->
<webjars-date-fns.version>1.30.1</webjars-date-fns.version>
<webjars-locator.version>0.52</webjars-locator.version>
<findbugs-jsr305.version>3.0.2</findbugs-jsr305.version>
<mybatis.version>3.5.16</mybatis.version>
<mybatis-spring.version>3.0.3</mybatis-spring.version>
<mybatis-spring2x.version>2.1.2</mybatis-spring2x.version>
<mybatis-dynamic-sql.version>1.5.2</mybatis-dynamic-sql.version>
<hikaricp.version>5.1.0</hikaricp.version>
<commons-beanutils.version>1.9.4</commons-beanutils.version>
<thumbnailator.version>0.4.20</thumbnailator.version>
<!-- #################################### -->
<!-- #### Servlet 4 Project Support #### -->
<!-- ################################### -->
<spring5.version>5.3.37</spring5.version>
<spring-security5.version>5.8.13</spring-security5.version>
<spring4.version>4.3.30.RELEASE</spring4.version>
<!-- Spring 3까지 내려서 테스트하긴 시행착오가 많다. 😅 -->
<spring3.version>3.2.18.RELEASE</spring3.version>
<slf4j.version>2.0.13</slf4j.version>
<!-- Spring 5까지만 공식 지원한다. -->
<tiles.version>3.0.8</tiles.version>
<hibernate-validator-javax.version>6.2.5.Final</hibernate-validator-javax.version>
<!-- Hibernate Validator 로컬 테스트시 필요하다. -->
<javax.el.version>3.0.1-b12</javax.el.version>
<commons-fileupload.version>1.5</commons-fileupload.version>
<javax.servlet-api.version>4.0.1</javax.servlet-api.version>
<javax.servlet.jsp-api.version>2.3.3</javax.servlet.jsp-api.version>
<javax.servlet.jsp.jstl-api.verson>1.2.2</javax.servlet.jsp.jstl-api.verson>
<jstl.version>1.2</jstl.version>
<java-time-jsptags-javax.version>1.1.4</java-time-jsptags-javax.version>
<!-- Maven 플러그인 버전 관리 -->
<mybatis-generator-maven-plugin.version>1.4.2</mybatis-generator-maven-plugin.version>
<maven-war-plugin.version>3.4.0</maven-war-plugin.version>
<maven-resources-plugin.version>3.3.1</maven-resources-plugin.version>
<maven-surefire-plugin.version>3.3.0</maven-surefire-plugin.version>
<maven-compiler-plugin.version>3.13.0</maven-compiler-plugin.version>
<maven-toolchains-plugin.version>3.2.0</maven-toolchains-plugin.version>
<!-- ### Jetty 설정 #### -->
<jetty.version>12.0.11</jetty.version>
<jetty.ee.version>ee8</jetty.ee.version>
<!-- Jetty Http 포트 기본값 -->
<jetty.port>8090</jetty.port>
<!-- Jetty Context Path 설정 기본값 -->
<jetty-context-path>/</jetty-context-path>
<!-- XML 컨텍스트 설정일 때는 잘 되는데, Spring Java Config 설정일 때는 예외가 난다. 일단 자동 재배포 재시작의 기본 값은 비활성화 상태로 두자 -->
<jetty-auto-deploy-seconds>-1</jetty-auto-deploy-seconds>
<!-- Embedded Jetty로 실행할 때, web.xml을 환경별로 바꿀 상황이 생겨 환경변수로 분리했다. -->
<web-xml-location>${project.basedir}/src/main/webapp/WEB-INF/web.xml</web-xml-location>
</properties>
<profiles>
<!-- Jetty 기본 웹 애플리케이션 실행 -->
<profile>
<id>jetty-run</id>
<activation>
<activeByDefault>true</activeByDefault>
</activation>
<build>
<plugins>
<!-- Jetty 서버 구동 -->
<!-- 도움말 자세히보기: mvnw jetty:help -Ddetail=true -Dgoal=run -->
<plugin>
<!-- https://eclipse.dev/jetty/documentation/jetty-12/programming-guide/index.html#jetty-maven-plugin -->
<groupId>org.eclipse.jetty.${jetty.ee.version}</groupId>
<artifactId>jetty-${jetty.ee.version}-maven-plugin</artifactId>
<version>${jetty.version}</version>
<configuration>
<httpConnector>
<!--host>localhost</host-->
<port>${jetty.port}</port>
</httpConnector>
<webApp>
<contextPath>${jetty-context-path}</contextPath>
<descriptor>${web-xml-location}</descriptor>
<sessionHandler>
<sessionIdPathParameterName>none</sessionIdPathParameterName>
</sessionHandler>
</webApp>
<deployMode>EMBED</deployMode>
<stopKey>CTRL+C</stopKey>
<stopPort>8999</stopPort>
<!--
변경 감지 자동 재시작시 ContextLoaderListener가 제대로 실행되지 않는 오류가 발생한다.
설정을 -1로하여 자동 재시작이 일어나지 않도록 한다.
-->
<scan>${jetty-auto-deploy-seconds}</scan>
<scanTargetPatterns>
<scanTargetPattern>
<directory>src/main/webapp/WEB-INF</directory>
<includes>
<include>**/*.properties</include>
<include>**/*.xml</include>
</includes>
<excludes>
<exclude>**/*.jsp</exclude>
</excludes>
</scanTargetPattern>
</scanTargetPatterns>
</configuration>
</plugin>
</plugins>
</build>
</profile>
</profiles>
<build>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-resources-plugin</artifactId>
<version>${maven-resources-plugin.version}</version>
</plugin>
<!-- JUnit 5 사용을 위해서 maven-surefire-plugin 버전을 올려두자! -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>${maven-surefire-plugin.version}</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-war-plugin</artifactId>
<version>${maven-war-plugin.version}</version>
</plugin>
</plugins>
</pluginManagement>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>${maven-compiler-plugin.version}</version>
<configuration>
<source>${java.version}</source>
<target>${java.version}</target>
<parameters>true</parameters>
<compilerArgs>
<arg>-Xlint:all</arg>
<arg>-Xlint:-processing
</arg> <!-- No processor claimed any of these annotations 경고는 노출되지않게 설정 -->
<arg>-Xlint:-path</arg> <!-- bad path element 경고 무시 -->
</compilerArgs>
<showWarnings>true</showWarnings>
<showDeprecation>true</showDeprecation>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-toolchains-plugin</artifactId>
<version>${maven-toolchains-plugin.version}</version>
<executions>
<execution>
<goals>
<goal>toolchain</goal>
</goals>
</execution>
</executions>
<configuration>
<toolchains>
<jdk>
<version>${java.version}</version>
</jdk>
</toolchains>
</configuration>
</plugin>
</plugins>
</build>
<!-- 하위 예제 프로젝트 모듈 -->
<modules>
<module>pro26-maven</module>
<module>bookShop01-study</module>
</modules>
</project>