pom.xml文件如下:

  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/maven-v4_0_0.xsd">
  3. <modelVersion>4.0.0</modelVersion>
  4. <groupId>com</groupId>
  5. <artifactId>mmall</artifactId>
  6. <packaging>war</packaging>
  7. <version>1.0-SNAPSHOT</version>
  8. <name>mmall Maven Webapp</name>
  9. <url>http://maven.apache.org</url>
  10.  
  11. <properties>
  12. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  13. <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
  14. <maven.compiler.encoding>UTF-8</maven.compiler.encoding>
  15.  
  16. <org.springframework.version>4.0.0.RELEASE</org.springframework.version>
  17. <org.mybatis.version>3.4.1</org.mybatis.version>
  18. <org.mybatis.spring.version>1.3.0</org.mybatis.spring.version>
  19. </properties>
  20.  
  21. <dependencies>
  22.  
  23. <dependency>
  24. <groupId>org.apache.tomcat</groupId>
  25. <artifactId>tomcat-servlet-api</artifactId>
  26. <version>7.0.64</version>
  27. </dependency>
  28.  
  29. <dependency>
  30. <groupId>org.springframework</groupId>
  31. <artifactId>spring-webmvc</artifactId>
  32. <version>${org.springframework.version}</version>
  33. </dependency>
  34.  
  35. <dependency>
  36. <groupId>org.springframework</groupId>
  37. <artifactId>spring-oxm</artifactId>
  38. <version>${org.springframework.version}</version>
  39. </dependency>
  40.  
  41. <dependency>
  42. <groupId>org.springframework</groupId>
  43. <artifactId>spring-jdbc</artifactId>
  44. <version>${org.springframework.version}</version>
  45. </dependency>
  46.  
  47. <dependency>
  48. <groupId>org.springframework</groupId>
  49. <artifactId>spring-tx</artifactId>
  50. <version>${org.springframework.version}</version>
  51. </dependency>
  52.  
  53. <dependency>
  54. <groupId>org.springframework</groupId>
  55. <artifactId>spring-test</artifactId>
  56. <version>${org.springframework.version}</version>
  57. </dependency>
  58.  
  59. <dependency>
  60. <groupId>org.aspectj</groupId>
  61. <artifactId>aspectjweaver</artifactId>
  62. <version>1.7.3</version>
  63. </dependency>
  64.  
  65. <dependency>
  66. <groupId>org.mybatis</groupId>
  67. <artifactId>mybatis-spring</artifactId>
  68. <version>${org.mybatis.spring.version}</version>
  69. </dependency>
  70. <dependency>
  71. <groupId>org.mybatis</groupId>
  72. <artifactId>mybatis</artifactId>
  73. <version>${org.mybatis.version}</version>
  74. </dependency>
  75.  
  76. <dependency>
  77. <groupId>org.aspectj</groupId>
  78. <artifactId>aspectjrt</artifactId>
  79. <version>1.6.11</version>
  80. </dependency>
  81.  
  82. <dependency>
  83. <groupId>org.codehaus.jackson</groupId>
  84. <artifactId>jackson-mapper-asl</artifactId>
  85. <version>1.9.12</version>
  86. </dependency>
  87.  
  88. <dependency>
  89. <groupId>commons-dbcp</groupId>
  90. <artifactId>commons-dbcp</artifactId>
  91. <version>1.4</version>
  92. <!--<scope>runtime</scope>-->
  93. </dependency>
  94.  
  95. <dependency>
  96. <groupId>ch.qos.logback</groupId>
  97. <artifactId>logback-classic</artifactId>
  98. <version>1.1.2</version>
  99. <scope>compile</scope>
  100. </dependency>
  101. <dependency>
  102. <groupId>ch.qos.logback</groupId>
  103. <artifactId>logback-core</artifactId>
  104. <version>1.1.2</version>
  105. <scope>compile</scope>
  106. </dependency>
  107.  
  108. <dependency>
  109. <groupId>mysql</groupId>
  110. <artifactId>mysql-connector-java</artifactId>
  111. <version>5.1.6</version>
  112. </dependency>
  113.  
  114. <dependency>
  115. <groupId>com.google.guava</groupId>
  116. <artifactId>guava</artifactId>
  117. <version>20.0</version>
  118. </dependency>
  119.  
  120. <dependency>
  121. <groupId>org.apache.commons</groupId>
  122. <artifactId>commons-lang3</artifactId>
  123. <version>3.5</version>
  124. </dependency>
  125.  
  126. <dependency>
  127. <groupId>commons-collections</groupId>
  128. <artifactId>commons-collections</artifactId>
  129. <version>3.2.1</version>
  130. </dependency>
  131.  
  132. <dependency>
  133. <groupId>junit</groupId>
  134. <artifactId>junit</artifactId>
  135. <version>4.12</version>
  136. <!--<scope>test</scope>-->
  137. </dependency>
  138.  
  139. <dependency>
  140. <groupId>joda-time</groupId>
  141. <artifactId>joda-time</artifactId>
  142. <version>2.3</version>
  143. </dependency>
  144.  
  145. <!-- id加密解密 -->
  146. <dependency>
  147. <groupId>org.hashids</groupId>
  148. <artifactId>hashids</artifactId>
  149. <version>1.0.1</version>
  150. </dependency>
  151.  
  152. <!-- ftpclient -->
  153. <dependency>
  154. <groupId>commons-net</groupId>
  155. <artifactId>commons-net</artifactId>
  156. <version>3.1</version>
  157. </dependency>
  158.  
  159. <!-- file upload -->
  160.  
  161. <!-- https://mvnrepository.com/artifact/commons-fileupload/commons-fileupload -->
  162. <dependency>
  163. <groupId>commons-fileupload</groupId>
  164. <artifactId>commons-fileupload</artifactId>
  165. <version>1.2.2</version>
  166. </dependency>
  167.  
  168. <dependency>
  169. <groupId>commons-io</groupId>
  170. <artifactId>commons-io</artifactId>
  171. <version>2.0.1</version>
  172. </dependency>
  173.  
  174. <!-- mybatis pager -->
  175.  
  176. <dependency>
  177. <groupId>com.github.pagehelper</groupId>
  178. <artifactId>pagehelper</artifactId>
  179. <version>4.1.0</version>
  180. </dependency>
  181.  
  182. <dependency>
  183. <groupId>com.github.miemiedev</groupId>
  184. <artifactId>mybatis-paginator</artifactId>
  185. <version>1.2.17</version>
  186. </dependency>
  187.  
  188. <dependency>
  189. <groupId>com.github.jsqlparser</groupId>
  190. <artifactId>jsqlparser</artifactId>
  191. <version>0.9.4</version>
  192. </dependency>
  193.  
  194. <!-- alipay -->
  195. <dependency>
  196. <groupId>commons-codec</groupId>
  197. <artifactId>commons-codec</artifactId>
  198. <version>1.10</version>
  199. </dependency>
  200. <dependency>
  201. <groupId>commons-configuration</groupId>
  202. <artifactId>commons-configuration</artifactId>
  203. <version>1.10</version>
  204. </dependency>
  205. <dependency>
  206. <groupId>commons-lang</groupId>
  207. <artifactId>commons-lang</artifactId>
  208. <version>2.6</version>
  209. </dependency>
  210. <dependency>
  211. <groupId>commons-logging</groupId>
  212. <artifactId>commons-logging</artifactId>
  213. <version>1.1.1</version>
  214. </dependency>
  215. <dependency>
  216. <groupId>com.google.zxing</groupId>
  217. <artifactId>core</artifactId>
  218. <version>2.1</version>
  219. </dependency>
  220. <dependency>
  221. <groupId>com.google.code.gson</groupId>
  222. <artifactId>gson</artifactId>
  223. <version>2.3.1</version>
  224. </dependency>
  225. <dependency>
  226. <groupId>org.hamcrest</groupId>
  227. <artifactId>hamcrest-core</artifactId>
  228. <version>1.3</version>
  229. </dependency>
  230.  
  231. <dependency>
  232. <groupId>redis.clients</groupId>
  233. <artifactId>jedis</artifactId>
  234. <version>2.9.0</version>
  235. </dependency>
  236. </dependencies>
  237.  
  238. <build>
  239. <finalName>mmall</finalName>
  240. <plugins>
  241. <plugin>
  242. <groupId>org.mybatis.generator</groupId>
  243. <artifactId>mybatis-generator-maven-plugin</artifactId>
  244. <version>1.3.2</version>
  245. <configuration>
  246. <verbose>true</verbose>
  247. <overwrite>true</overwrite>
  248. </configuration>
  249. </plugin>
  250.  
  251. <!-- geelynote maven的核心插件之-complier插件默认只支持编译Java 1.4,因此需要加上支持高版本jre的配置,在pom.xml里面加上 增加编译插件 -->
  252. <plugin>
  253. <groupId>org.apache.maven.plugins</groupId>
  254. <artifactId>maven-compiler-plugin</artifactId>
  255. <configuration>
  256. <source>1.7</source>
  257. <target>1.7</target>
  258. <encoding>UTF-8</encoding>
  259. <compilerArguments>
  260. <extdirs>${project.basedir}/src/main/webapp/WEB-INF/lib</extdirs>
  261. </compilerArguments>
  262. </configuration>
  263. </plugin>
  264. </plugins>
  265.  
  266. </build>
  267.  
  268. </project>

然后点击:

可以看到:

然后看到jar包已经下载下来了:

Maven的pom文件配置的更多相关文章

  1. maven关于pom文件配置详解(转载)

    转载:http://www.cnblogs.com/hafiz <project xmlns="http://maven.apache.org/POM/4.0.0" xmln ...

  2. maven中pom文件配置解决资源文件的编码问题

    <build> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId& ...

  3. Maven打包pom里面配置exclude 排除掉环境相关的配置文件

    Maven打包pom里面配置exclude 排除掉环境相关的配置文件 有几种方式:1. 打包时,指定环境参数把环境的配置文件复制过去2. 不打包所有的环境相关的配置文件,直接由运维的人维护 可以在上传 ...

  4. maven里面pom文件的各标签介绍

    由于maven在工作中经常使用,但是平时要记的知识点有点多,偶尔回头来看一些东西难免忘记,特此整理一篇笔记,方便大家搜索查询,也方便自己以后查询! 后续碰见其他的标签也会进行更新! maven的pom ...

  5. 在springboot pom文件配置过程,`spring-boot-maven-plugin`配置出错的问题解决及配置过程出现问题的一些思考

    在springboot pom文件配置过程,spring-boot-maven-plugin配置出错的问题解决及配置过程出现问题的一些思考 解决方法一: 也是最简单的方法,可能是maven没有来得及导 ...

  6. Maven的POM文件parent节点不可以使用properties里面的变量

    Maven的POM文件parent节点不可以使用properties里面的变量 但是如果在子项目上的parent节点是可以使用父项目里定义的properties变量 如果一开始为单项目,或者最顶层项目 ...

  7. maven在pom文件中引入了icepdf-core包,pom文件却莫名的报错,说jai_core包missing

    maven在pom文件中引入了icepdf-core包,却莫名的报错,说jai_core包missing,把这个jai_core包引入之后还是一样报错,PS:icepdf-core使用的时候不用引用j ...

  8. maven的pom文件解析及配置

    1.IDEA中的Maven的pom.xml文件,其实比较通俗点介绍功能主要项目引入的jar包,管理配置项目以及一些插件的配置等项目 2.对于pom配置详细介绍,整理如下2篇文档介绍的比较系统全面: h ...

  9. Maven的POM.xml配置大全

    <?xml version="1.0" encoding="utf-8"?> <project xmlns="http://mave ...

随机推荐

  1. Linux下密码抓取神器mimipenguin

    前有Mimikatz,今有mimipenguin,近日国外安全研究员huntergregal发布了工具mimipenguin,一款Linux下的密码抓取神器,可以说弥补了Linux下密码抓取的空缺. ...

  2. js中onclick中文参数传输方式

    添加单引号或双引号即可,例: var type = "'"+n.bankCard.type+"'"; var number = "'"+n. ...

  3. HEVC compressGOP 接口

    HEVC编码调用compressGOP()来实现一个GOPSize 图像序列的编码.在reference code里,真正做compressGOP编码之前,需要存GOPSize帧YUV在m_cList ...

  4. html 页面模块的常用命名

    头:header         内容:content/container         尾:footer         导航:nav         侧栏:sidebar         栏目: ...

  5. mysqlbinlog基于某个偏移量进行数据的恢复(重做),--start-position,--stop-position的使用方法

    需求描述: 今天在看mysqlbinlog的内容,看到了--start-position和--stop-position这些选项, 就测试下这个参数具体该怎么进行使用呢,在此记录下. 操作过程: 1. ...

  6. 使用python调用zxing库生成二维码图片

    (1)     安装Jpype 用python调用jar包须要安装jpype扩展,在Ubuntu上能够直接使用apt-get安装jpype扩展 $ sudo apt-get install pytho ...

  7. nutch 存储到数据库

    就像我们知道的一样,nutch是一个架构在lucene之上的网络爬虫+搜索引擎. 是由lucene的作者在lucene基础之上开发,并整合了hadoop,实现在分布式云计算,使用google标准的HF ...

  8. C++11新特性之五——可变参数模板

    有些时候,我们定义一个函数,可能这个函数需要支持可变长参数,也就是说调用者可以传入任意个数的参数.比如C函数printf(). 我们可以这么调用. printf(); 那么这个函数是怎么实现的呢?其实 ...

  9. JSON.parse()和JSON.stringfy()

    JSON.parse()从字符串中解析出JSON对象: var data = '{"a":1,"b":2}'; JSON.parse(data); JSON.s ...

  10. poj_3352 连通图的桥

    题目大意 给定N个点,他们之间用一些双向边连通,使得这N个点两两相互可达.但是其中某些双向边为桥,这样若断开这些桥,则整个图就无法做到点之间两两可达.现在可以添加若干条双向边,使得断开图中的任意一条边 ...