java之常用的依赖文件pom.xml

  1 <?xml version="1.0" encoding="UTF-8"?>
  2 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  3          xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  4     <modelVersion>4.0.0</modelVersion>
  5 
  6     <groupId>com.huis.api</groupId>
  7     <artifactId>com.huis.api.parent</artifactId>
  8     <version>1.0-SNAPSHOT</version>
  9     <packaging>pom</packaging>
 10     <name>com.huis.api.parent</name>
 11 
 12 
 13     <modules>
 14         <module>huis.java.common</module>
 15         <module>huis.java.dao</module>
 16         <module>huis.java.portal</module>
 17     </modules>
 18 
 19     <!-- 定义依赖版本号 -->
 20     <properties>
 21         <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
 22         <java.version>1.8</java.version>
 23         <junit.version>4.12</junit.version>
 24         <spring.version>4.3.12.RELEASE</spring.version>
 25         <spring.test.version>4.3.12.RELEASE</spring.test.version>
 26         <spring.boot.version>1.5.8.RELEASE</spring.boot.version>
 27         <mybatis.version>3.4.5</mybatis.version>
 28         <mybatis.spring.version>1.3.1</mybatis.spring.version>
 29         <mybatis.paginator.version>1.2.17</mybatis.paginator.version>
 30         <mybatis.spring.boot.version>1.3.1</mybatis.spring.boot.version>
 31         <mysql.version>6.0.6</mysql.version>
 32         <slf4j.version>1.7.25</slf4j.version>
 33         <jackson.version>2.9.2</jackson.version>
 34         <druid.version>1.1.5</druid.version>
 35         <httpclient.version>4.5.1</httpclient.version>
 36         <httpcore.version>4.4.5</httpcore.version>
 37         <jstl.version>1.2</jstl.version>
 38         <servlet-api.version>2.5</servlet-api.version>
 39         <jsp-api.version>2.0</jsp-api.version>
 40         <joda-time.version>2.9.9</joda-time.version>
 41         <commons-lang3.version>3.7</commons-lang3.version>
 42         <commons-net.version>3.6</commons-net.version>
 43         <pagehelper.version>1.2.3</pagehelper.version>
 44         <commons-fileupload.version>1.3.3</commons-fileupload.version>
 45         <jedis.version>2.9.0</jedis.version>
 46         <quartz.version>2.3.0</quartz.version>
 47         <tomcat.servlet.api.version>9.0.1</tomcat.servlet.api.version>
 48         <swagger2.version>2.6.1</swagger2.version>
 49         <spring.cloud.version>1.1.0.RELEASE</spring.cloud.version>
 50         <fastjson.version>1.2.37</fastjson.version>
 51         <oss.version>2.8.2</oss.version>
 52         <spring.data.solr.version>2.1.6.RELEASE</spring.data.solr.version>
 53         <jxl.version>2.6.12</jxl.version>
 54         <poi.version>3.17</poi.version>
 55     </properties>
 56 
 57     <dependencyManagement>
 58         <dependencies>
 59             <!-- api接口文档自动生成 -->
 60             <dependency>
 61                 <groupId>io.springfox</groupId>
 62                 <artifactId>springfox-swagger2</artifactId>
 63                 <version>${swagger2.version}</version>
 64             </dependency>
 65             <dependency>
 66                 <groupId>io.springfox</groupId>
 67                 <artifactId>springfox-swagger-ui</artifactId>
 68                 <version>${swagger2.version}</version>
 69             </dependency>
 70             <!-- 时间操作组件 -->
 71             <dependency>
 72                 <groupId>joda-time</groupId>
 73                 <artifactId>joda-time</artifactId>
 74                 <version>${joda-time.version}</version>
 75             </dependency>
 76             <!-- Apache工具组件 -->
 77             <dependency>
 78                 <groupId>org.apache.commons</groupId>
 79                 <artifactId>commons-lang3</artifactId>
 80                 <version>${commons-lang3.version}</version>
 81             </dependency>
 82             <dependency>
 83                 <groupId>commons-net</groupId>
 84                 <artifactId>commons-net</artifactId>
 85                 <version>${commons-net.version}</version>
 86             </dependency>
 87             <!-- Jackson Json处理工具包 -->
 88             <dependency>
 89                 <groupId>com.fasterxml.jackson.core</groupId>
 90                 <artifactId>jackson-databind</artifactId>
 91                 <version>${jackson.version}</version>
 92             </dependency>
 93             <!--fastjson处理 -->
 94             <dependency>
 95                 <groupId>com.alibaba</groupId>
 96                 <artifactId>fastjson</artifactId>
 97                 <version>${fastjson.version}</version>
 98             </dependency>
 99             <!-- Alipay -->
100             <dependency>
101                 <groupId>com.alipay</groupId>
102                 <artifactId>sdk-java</artifactId>
103                 <version>3.0.0</version>
104             </dependency>
105             <!-- httpclient -->
106             <dependency>
107                 <groupId>org.apache.httpcomponents</groupId>
108                 <artifactId>httpclient</artifactId>
109                 <version>${httpclient.version}</version>
110             </dependency>
111             <dependency>
112                  <groupId>org.apache.httpcomponents</groupId>
113                  <artifactId>httpcore</artifactId>
114                  <version>${httpcore.version}</version>
115             </dependency>
116             <!-- quartz任务调度框架 -->
117             <dependency>
118                 <groupId>org.quartz-scheduler</groupId>
119                 <artifactId>quartz</artifactId>
120                 <version>${quartz.version}</version>
121             </dependency>
122             <!-- 单元测试 -->
123             <dependency>
124                 <groupId>junit</groupId>
125                 <artifactId>junit</artifactId>
126                 <version>${junit.version}</version>
127                 <scope>test</scope>
128             </dependency>
129             <!-- 日志处理 -->
130             <dependency>
131                 <groupId>org.slf4j</groupId>
132                 <artifactId>slf4j-log4j12</artifactId>
133                 <version>${slf4j.version}</version>
134             </dependency>
135             <!-- Mybatis -->
136             <dependency>
137                 <groupId>org.mybatis</groupId>
138                 <artifactId>mybatis</artifactId>
139                 <version>${mybatis.version}</version>
140             </dependency>
141             <dependency>
142                 <groupId>org.mybatis</groupId>
143                 <artifactId>mybatis-spring</artifactId>
144                 <version>${mybatis.spring.version}</version>
145             </dependency>
146             <dependency>
147                 <groupId>com.github.miemiedev</groupId>
148                 <artifactId>mybatis-paginator</artifactId>
149                 <version>${mybatis.paginator.version}</version>
150             </dependency>
151             <dependency>
152                 <groupId>com.github.pagehelper</groupId>
153                 <artifactId>pagehelper-spring-boot-starter</artifactId>
154                 <version>${pagehelper.version}</version>
155             </dependency>
156             <dependency>
157                 <groupId>org.mybatis.spring.boot</groupId>
158                 <artifactId>mybatis-spring-boot-starter</artifactId>
159                 <version>${mybatis.spring.boot.version}</version>
160             </dependency>
161             <!-- MySql -->
162             <dependency>
163                 <groupId>mysql</groupId>
164                 <artifactId>mysql-connector-java</artifactId>
165                 <version>${mysql.version}</version>
166                 <scope>provided</scope>
167             </dependency>
168             <!-- 连接池 -->
169             <dependency>
170                 <groupId>com.alibaba</groupId>
171                 <artifactId>druid</artifactId>
172                 <version>${druid.version}</version>
173             </dependency>
174             <!-- Spring -->
175             <dependency>
176                 <groupId>org.springframework</groupId>
177                 <artifactId>spring-context</artifactId>
178                 <version>${spring.version}</version>
179             </dependency>
180             <dependency>
181                 <groupId>org.springframework</groupId>
182                 <artifactId>spring-beans</artifactId>
183                 <version>${spring.version}</version>
184             </dependency>
185             <dependency>
186                 <groupId>org.springframework</groupId>
187                 <artifactId>spring-webmvc</artifactId>
188                 <version>${spring.version}</version>
189             </dependency>
190             <dependency>
191                 <groupId>org.springframework</groupId>
192                 <artifactId>spring-aop</artifactId>
193                 <version>${spring.version}</version>
194             </dependency>
195             <dependency>
196                 <groupId>org.springframework.boot</groupId>
197                 <artifactId>spring-boot-starter-security</artifactId>
198                 <version>${spring.boot.version}</version>
199             </dependency>
200             <dependency>
201                 <groupId>org.springframework</groupId>
202                 <artifactId>spring-jdbc</artifactId>
203                 <version>${spring.version}</version>
204             </dependency>
205             <dependency>
206                 <groupId>org.springframework</groupId>
207                 <artifactId>spring-aspects</artifactId>
208                 <version>${spring.version}</version>
209             </dependency>
210             <dependency>
211                 <groupId>org.springframework</groupId>
212                 <artifactId>spring-jms</artifactId>
213                 <version>${spring.version}</version>
214             </dependency>
215             <dependency>
216                 <groupId>org.springframework</groupId>
217                 <artifactId>spring-context-support</artifactId>
218                 <version>${spring.version}</version>
219             </dependency>
220             <dependency>
221                 <groupId>org.springframework</groupId>
222                 <artifactId>spring-test</artifactId>
223                 <version>${spring.test.version}</version>
224                 <scope>test</scope>
225             </dependency>
226 
227             <!-- Spring boot -->
228             <dependency>
229                 <groupId>org.springframework.boot</groupId>
230                 <artifactId>spring-boot-starter</artifactId>
231                 <version>${spring.boot.version}</version>
232             </dependency>
233             <dependency>
234                 <groupId>org.springframework.boot</groupId>
235                 <artifactId>spring-boot-starter-cache</artifactId>
236                 <version>${spring.boot.version}</version>
237             </dependency>
238             <dependency>
239                 <groupId>org.springframework.boot</groupId>
240                 <artifactId>spring-boot-starter-test</artifactId>
241                 <version>${spring.boot.version}</version>
242                 <scope>test</scope>
243             </dependency>
244             <dependency>
245                 <groupId>org.springframework.boot</groupId>
246                 <artifactId>spring-boot-devtools</artifactId>
247                 <version>${spring.boot.version}</version>
248                 <optional>true</optional>
249             </dependency>
250             <dependency>
251                 <groupId>org.springframework.boot</groupId>
252                 <artifactId>spring-boot-starter-data-jpa</artifactId>
253                 <version>${spring.boot.version}</version>
254             </dependency>
255             <dependency>
256                 <groupId>org.springframework.boot</groupId>
257                 <artifactId>spring-boot-starter-thymeleaf</artifactId>
258                 <version>${spring.boot.version}</version>
259             </dependency>
260 
261             <dependency>
262                 <groupId>org.springframework.boot</groupId>
263                 <artifactId>spring-boot-starter-tomcat</artifactId>
264                 <version>${spring.boot.version}</version>
265             </dependency>
266             <!--springcloud相关配置 -->
267             <dependency>
268                 <groupId>org.springframework.cloud</groupId>
269                 <artifactId>spring-cloud-starter-eureka</artifactId>
270                 <version>${spring.cloud.version}</version>
271             </dependency>
272             <!-- JSP相关 -->
273             <dependency>
274                 <groupId>jstl</groupId>
275                 <artifactId>jstl</artifactId>
276                 <version>${jstl.version}</version>
277             </dependency>
278             <dependency>
279                 <groupId>javax.servlet</groupId>
280                 <artifactId>jsp-api</artifactId>
281                 <version>${jsp-api.version}</version>
282                 <scope>provided</scope>
283             </dependency>
284 
285 
286             <!-- 文件上传组件 -->
287             <dependency>
288                 <groupId>commons-fileupload</groupId>
289                 <artifactId>commons-fileupload</artifactId>
290                 <version>${commons-fileupload.version}</version>
291             </dependency>
292             <!-- Redis客户端 -->
293             <dependency>
294                 <groupId>redis.clients</groupId>
295                 <artifactId>jedis</artifactId>
296                 <version>${jedis.version}</version>
297             </dependency>
298 
299             <dependency>
300                 <groupId>org.apache.tomcat</groupId>
301                 <artifactId>tomcat-servlet-api</artifactId>
302                 <version>${tomcat.servlet.api.version}</version>
303                 <scope>provided</scope>
304             </dependency>
305             <!-- 阿里云图片服务器jar -->
306             <dependency>
307                 <groupId>com.aliyun.oss</groupId>
308                 <artifactId>aliyun-sdk-oss</artifactId>
309                 <version>${oss.version}</version>
310             </dependency>
311             
312             <dependency>  
313                 <groupId>org.springframework.data</groupId>  
314                 <artifactId>spring-data-solr</artifactId>  
315                 <version>${spring.data.solr.version}</version>  
316             </dependency>
317              <!-- excel -->
318             <dependency>
319                 <groupId>net.sourceforge.jexcelapi</groupId>
320                 <artifactId>jxl</artifactId>
321                 <version>${jxl.version}</version>
322             </dependency>
323               <dependency>
324                 <groupId>org.apache.poi</groupId>
325                 <artifactId>poi</artifactId>
326                 <version>${poi.version}</version>
327             </dependency>
328         </dependencies>
329     </dependencyManagement>
330     <build>
331         <plugins>
332             <!-- 资源文件拷贝插件 -->
333             <plugin>
334                 <groupId>org.apache.maven.plugins</groupId>
335                 <artifactId>maven-resources-plugin</artifactId>
336                 <version>2.7</version>
337                 <configuration>
338                     <encoding>UTF-8</encoding>
339                 </configuration>
340             </plugin>
341             <!-- java编译插件 -->
342             <plugin>
343                 <groupId>org.apache.maven.plugins</groupId>
344                 <artifactId>maven-compiler-plugin</artifactId>
345                 <version>3.7.0</version>
346                 <configuration>
347                     <source>1.8</source>
348                     <target>1.8</target>
349                     <encoding>UTF-8</encoding>
350                 </configuration>
351             </plugin>
352             <plugin>
353                 <groupId>org.apache.maven.plugins</groupId>
354                 <artifactId>maven-war-plugin</artifactId>
355                 <version>3.2.0</version>
356                 <configuration>
357                     <failOnMissingWebXml>false</failOnMissingWebXml>
358                 </configuration>
359             </plugin>
360         </plugins>
361 
362 
363         <pluginManagement>
364             <plugins>
365                 <plugin>
366                     <groupId>org.apache.tomcat.maven</groupId>
367                     <artifactId>tomcat7-maven-plugin</artifactId>
368                     <version>2.2</version>
369                 </plugin>
370             </plugins>
371         </pluginManagement>
372 
373     </build>
374 </project>

猜你喜欢

转载自www.cnblogs.com/walblog/p/9692209.html
今日推荐