企业开发中所用到的基本jar包以及插件都已在此

可以自己根据实际情况酌情增减

  1. <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  2. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  3. <modelVersion>4.0.0</modelVersion>
  4. <groupId>com.lee</groupId>
  5. <artifactId>lee-parent</artifactId>
  6. <version>0.0.1-SNAPSHOT</version>
  7. <packaging>pom</packaging>
  8.  
  9. <!-- 集中定义依赖版本号 -->
  10. <properties>
  11. <junit.version>4.12</junit.version>
  12. <spring.version>4.1.3.RELEASE</spring.version>
  13. <mybatis.version>3.2.8</mybatis.version>
  14. <mybatis.spring.version>1.2.2</mybatis.spring.version>
  15. <mybatis.paginator.version>1.2.15</mybatis.paginator.version>
  16. <mysql.version>5.1.32</mysql.version>
  17. <slf4j.version>1.6.4</slf4j.version>
  18. <jackson.version>2.4.2</jackson.version>
  19. <!-- 连接池 阿里巴巴数据源 全世界最牛逼的data source 没有之一 -->
  20. <druid.version>1.0.9</druid.version>
  21. <httpclient.version>4.3.5</httpclient.version>
  22. <jstl.version>1.2</jstl.version>
  23. <servlet-api.version>2.5</servlet-api.version>
  24. <jsp-api.version>2.0</jsp-api.version>
  25. <joda-time.version>2.5</joda-time.version>
  26. <commons-lang3.version>3.3.2</commons-lang3.version>
  27. <commons-io.version>1.3.2</commons-io.version>
  28. <commons-net.version>3.3</commons-net.version>
  29. <pagehelper.version>3.4.2-fix</pagehelper.version>
  30. <jsqlparser.version>0.9.1</jsqlparser.version>
  31. <commons-fileupload.version>1.3.1</commons-fileupload.version>
  32. <jedis.version>2.7.2</jedis.version>
  33. <solrj.version>4.10.3</solrj.version>
  34. </properties>
  35.  
  36. <!-- 只定义依赖的版本,不会实际依赖 -->
  37. <dependencyManagement>
  38. <dependencies>
  39. <!-- 时间操作组件 -->
  40. <dependency>
  41. <groupId>joda-time</groupId>
  42. <artifactId>joda-time</artifactId>
  43. <version>${joda-time.version}</version>
  44. </dependency>
  45. <!-- Apache工具组件 -->
  46. <dependency>
  47. <groupId>org.apache.commons</groupId>
  48. <artifactId>commons-lang3</artifactId>
  49. <version>${commons-lang3.version}</version>
  50. </dependency>
  51. <dependency>
  52. <groupId>org.apache.commons</groupId>
  53. <artifactId>commons-io</artifactId>
  54. <version>${commons-io.version}</version>
  55. </dependency>
  56. <dependency>
  57. <groupId>commons-net</groupId>
  58. <artifactId>commons-net</artifactId>
  59. <version>${commons-net.version}</version>
  60. </dependency>
  61. <!-- Jackson Json处理工具包 -->
  62. <dependency>
  63. <groupId>com.fasterxml.jackson.core</groupId>
  64. <artifactId>jackson-databind</artifactId>
  65. <version>${jackson.version}</version>
  66. </dependency>
  67. <!-- httpclient -->
  68. <dependency>
  69. <groupId>org.apache.httpcomponents</groupId>
  70. <artifactId>httpclient</artifactId>
  71. <version>${httpclient.version}</version>
  72. </dependency>
  73. <!-- 单元测试 -->
  74. <dependency>
  75. <groupId>junit</groupId>
  76. <artifactId>junit</artifactId>
  77. <version>${junit.version}</version>
  78. <scope>test</scope>
  79. </dependency>
  80. <!-- 日志处理 -->
  81. <dependency>
  82. <groupId>org.slf4j</groupId>
  83. <artifactId>slf4j-log4j12</artifactId>
  84. <version>${slf4j.version}</version>
  85. </dependency>
  86. <!-- Mybatis -->
  87. <dependency>
  88. <groupId>org.mybatis</groupId>
  89. <artifactId>mybatis</artifactId>
  90. <version>${mybatis.version}</version>
  91. </dependency>
  92. <dependency>
  93. <groupId>org.mybatis</groupId>
  94. <artifactId>mybatis-spring</artifactId>
  95. <version>${mybatis.spring.version}</version>
  96. </dependency>
  97. <dependency>
  98. <groupId>com.github.miemiedev</groupId>
  99. <artifactId>mybatis-paginator</artifactId>
  100. <version>${mybatis.paginator.version}</version>
  101. </dependency>
  102. <dependency>
  103. <groupId>com.github.pagehelper</groupId>
  104. <artifactId>pagehelper</artifactId>
  105. <version>${pagehelper.version}</version>
  106. </dependency>
  107. <!-- MySql -->
  108. <dependency>
  109. <groupId>mysql</groupId>
  110. <artifactId>mysql-connector-java</artifactId>
  111. <version>${mysql.version}</version>
  112. </dependency>
  113. <!-- 连接池 阿里巴巴数据源 全世界最牛逼的data source 没有之一 -->
  114. <dependency>
  115. <groupId>com.alibaba</groupId>
  116. <artifactId>druid</artifactId>
  117. <version>${druid.version}</version>
  118. </dependency>
  119. <!-- Spring -->
  120. <dependency>
  121. <groupId>org.springframework</groupId>
  122. <artifactId>spring-context</artifactId>
  123. <version>${spring.version}</version>
  124. </dependency>
  125. <dependency>
  126. <groupId>org.springframework</groupId>
  127. <artifactId>spring-beans</artifactId>
  128. <version>${spring.version}</version>
  129. </dependency>
  130. <dependency>
  131. <groupId>org.springframework</groupId>
  132. <artifactId>spring-webmvc</artifactId>
  133. <version>${spring.version}</version>
  134. </dependency>
  135. <dependency>
  136. <groupId>org.springframework</groupId>
  137. <artifactId>spring-jdbc</artifactId>
  138. <version>${spring.version}</version>
  139. </dependency>
  140. <dependency>
  141. <groupId>org.springframework</groupId>
  142. <artifactId>spring-aspects</artifactId>
  143. <version>${spring.version}</version>
  144. </dependency>
  145. <!-- JSP相关 -->
  146. <dependency>
  147. <groupId>jstl</groupId>
  148. <artifactId>jstl</artifactId>
  149. <version>${jstl.version}</version>
  150. </dependency>
  151. <dependency>
  152. <groupId>javax.servlet</groupId>
  153. <artifactId>servlet-api</artifactId>
  154. <version>${servlet-api.version}</version>
  155. <scope>provided</scope>
  156. </dependency>
  157. <dependency>
  158. <groupId>javax.servlet</groupId>
  159. <artifactId>jsp-api</artifactId>
  160. <version>${jsp-api.version}</version>
  161. <scope>provided</scope>
  162. </dependency>
  163. <!-- 文件上传组件 -->
  164. <dependency>
  165. <groupId>commons-fileupload</groupId>
  166. <artifactId>commons-fileupload</artifactId>
  167. <version>${commons-fileupload.version}</version>
  168. </dependency>
  169. <!-- Redis客户端 -->
  170. <dependency>
  171. <groupId>redis.clients</groupId>
  172. <artifactId>jedis</artifactId>
  173. <version>${jedis.version}</version>
  174. </dependency>
  175. <!-- solr客户端 -->
  176. <dependency>
  177. <groupId>org.apache.solr</groupId>
  178. <artifactId>solr-solrj</artifactId>
  179. <version>${solrj.version}</version>
  180. </dependency>
  181. </dependencies>
  182. </dependencyManagement>
  183.  
  184. <build>
  185. <finalName>${project.artifactId}</finalName>
  186. <plugins>
  187. <!-- 资源文件拷贝插件 -->
  188. <plugin>
  189. <groupId>org.apache.maven.plugins</groupId>
  190. <artifactId>maven-resources-plugin</artifactId>
  191. <version>2.7</version>
  192. <configuration>
  193. <encoding>UTF-8</encoding>
  194. </configuration>
  195. </plugin>
  196. <!-- java编译插件 -->
  197. <plugin>
  198. <groupId>org.apache.maven.plugins</groupId>
  199. <artifactId>maven-compiler-plugin</artifactId>
  200. <version>3.2</version>
  201. <configuration>
  202. <source>1.7</source>
  203. <target>1.7</target>
  204. <encoding>UTF-8</encoding>
  205. </configuration>
  206. </plugin>
  207. </plugins>
  208. <pluginManagement>
  209. <plugins>
  210. <!-- 配置Tomcat插件 -->
  211. <plugin>
  212. <groupId>org.apache.tomcat.maven</groupId>
  213. <artifactId>tomcat7-maven-plugin</artifactId>
  214. <version>2.2</version>
  215. </plugin>
  216. </plugins>
  217. </pluginManagement>
  218. </build>
  219.  
  220. </project>

maven - pom.xml 聚合(父)工程 基本内容演示的更多相关文章

  1. 史上最全的maven pom.xml文件教程详解

    <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/20 ...

  2. Maven pom.xml文件详解

    Maven pom.xml文件详解 一.简介 POM全称是Project Object Model,即项目对象模型. pom.xml是maven的项目描述文件,它类似与antx的project.xml ...

  3. (转)Maven pom.xml 配置详解

    背景:maven一直感觉既熟悉又陌生,归根结底还是自己不太熟. 1 什么是pom? pom作为项目对象模型.通过xml表示maven项目,使用pom.xml来实现.主要描述了项目:包括配置文件:开发者 ...

  4. Maven(四-2) Maven pom.xml 配置详解

    转载于:http://niuzhenxin.iteye.com/blog/2042102 什么是pom?    pom作为项目对象模型.通过xml表示maven项目,使用pom.xml来实现.主要描述 ...

  5. Maven pom.xml 全配置(一)常用配置

    Maven pom.xml 全配置(一)常用配置 这里贴出一个Maven中出现频率较高的配置参数注释,方便理解项目中Maven的配置具体的作用.如果在此博文中没有找到你想看到的参数,可以移步Maven ...

  6. Maven - pom.xml 文件

    章节 Maven – 简介 Maven – 工作原理 Maven – Repository(存储库) Maven – pom.xml 文件 Maven – 依赖管理 Maven – 构建生命周期.阶段 ...

  7. myeclipse maven pom.xml 配置错误

    http://www.oschina.net/question/2265006_219341#tags_nav maven pom.xml 配置文件错误       腾讯云消息队列CMQ架构解析> ...

  8. 在maven pom.xml中加载不同的properties ,如localhost 和 dev master等jdbc.properties 中的链接不一样

    [参考]:maven pom.xml加载不同properties配置[转] 首先 看看效果: 点开我们项目中的Maven projects 后,会发现右侧 我们profile有个可勾选选项.默认勾选l ...

  9. Maven pom.xml 全配置(二)不常用配置

    Maven pom.xml 全配置(二)不常用配置 这里贴出Maven pom.xml文件中使用率较少的配置参数,如果此篇文档中没有找到你想要的参数,移步Maven pom.xml 全配置(一)常用配 ...

随机推荐

  1. 利用php实现:当获取的网址不是特定网址时候跳转到指定地址

    这个问题是在百度知道看到的问答,我不懂做,特定去百度了下.然后结合别人获取域名和跳转的知识,综合做了这个功能,以下是实现代码: <?php //获取当前的域名: echo "获取到的域 ...

  2. 关于SQL2008 “不允许保存更改。您所做的更改要求删除并重新创建以下表。您对无法重新创建的标进行了更改或者启用了‘阻止保存要求重新创建表的更改’” 解决方案

    不允许保存更改.您所做的更改要求删除并重新创建以下表.您对无法重新创建的标进行了更改或者启用了“阻止保存要求重新创建表的更改” 解决方法:  打开SQL SERVER 2008 工具-->选项- ...

  3. OSX cordova+Ionic的安装配置

    0.安装前确定你的系统安装了node和xcode 1.cordova (1)安装cordova npm config set registry http://registry.cnpmjs.org s ...

  4. 本地Git服务器的搭建及使用

    本地Git服务器的搭建及使用 Git本地服务器环境搭建 搭建好的本地git服务器的局域网ip是192.168.1.188,用户名是RSCSVN 教程链接:http://blog.csdn.net/cc ...

  5. 树莓派上安装2.8寸TFT触摸屏

    在某宝的这里买了一个2.8寸的TFT触摸屏,其实就是中国版的ADAFRUIT 结合店家的帮助文档做了一下,一次点亮,这里也记录一下自己的安装过程(话说会硬件是会比会软件有不同的乐趣~~~) 由于店家推 ...

  6. swift GCD使用指南

    swift GCD使用指南 Grand Central Dispatch(GCD)是异步执行任务的技术之一.一般将应用程序中记述的线程管理用的代码在系统级中实现.开发者只需要定义想执行的任务并追加到适 ...

  7. Android ListView用EditText实现搜索功能

    前言 最近在开发一个IM项目的时候有一个需求就是,好友搜索功能.即在EditText中输入好友名字,ListView列表中动态展示刷选的好友列表.我把这个功能抽取出来了,先贴一下效果图: 分析 在查阅 ...

  8. Mac 下使用sourcetree操作git教程

    SourceTree 是 Windows 和Mac OS X 下免费的 Git 和 Hg 客户端,同时也是Mercurial和Subversion版本控制系统工具.支持创建.克隆.提交.push.pu ...

  9. 使用CocoaPods管理第三方开源类库

    iOS开发中经常会用到许多第三方开源类库,比如AFNetworking.FMDB.JSONKit等等,使用CocoaPods这个工具就能很方便得对工程中用到的类库进行管理,包括自动下载配置以及更新. ...

  10. windows 编程中的常见bug

    错误 1 :   error LNK2001: 无法解析的外部符号 _WTSQueryUserToken@8 解决办法:   ——>查看链接器->输入->附加依赖项,依照debug模 ...