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.shop</groupId>
  5. <artifactId>shop-1.0</artifactId>
  6. <packaging>war</packaging>
  7. <version>1.0</version>
  8. <name>Shop Maven Webapp</name>
  9. <url>http://maven.apache.org</url>
  10. <properties>
  11. <!-- spring版本号 -->
  12. <spring.version>4.0.2.RELEASE</spring.version>
  13. <!-- mybatis版本号 -->
  14. <mybatis.version>3.2.6</mybatis.version>
  15. <!-- log4j日志文件管理包版本 -->
  16. <slf4j.version>1.7.7</slf4j.version>
  17. <log4j.version>1.2.17</log4j.version>
  18. <shiro.version>1.2.3</shiro.version>
  19. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  20. <jdk.version>1.7</jdk.version>
  21. </properties>
  22.  
  23. <dependencies>
  24. <!--test测试用 -->
  25. <dependency>
  26. <groupId>junit</groupId>
  27. <artifactId>junit</artifactId>
  28. <version>4.12</version>
  29. <scope>test</scope>
  30. </dependency>
  31. <!-- spring核心包 -->
  32. <dependency>
  33. <groupId>org.springframework</groupId>
  34. <artifactId>spring-core</artifactId>
  35. <version>${spring.version}</version>
  36. </dependency>
  37.  
  38. <dependency>
  39. <groupId>org.springframework</groupId>
  40. <artifactId>spring-web</artifactId>
  41. <version>${spring.version}</version>
  42. </dependency>
  43. <dependency>
  44. <groupId>org.springframework</groupId>
  45. <artifactId>spring-oxm</artifactId>
  46. <version>${spring.version}</version>
  47. </dependency>
  48. <dependency>
  49. <groupId>org.springframework</groupId>
  50. <artifactId>spring-tx</artifactId>
  51. <version>${spring.version}</version>
  52. </dependency>
  53.  
  54. <dependency>
  55. <groupId>org.springframework</groupId>
  56. <artifactId>spring-jdbc</artifactId>
  57. <version>${spring.version}</version>
  58. </dependency>
  59.  
  60. <dependency>
  61. <groupId>org.springframework</groupId>
  62. <artifactId>spring-webmvc</artifactId>
  63. <version>${spring.version}</version>
  64. </dependency>
  65. <dependency>
  66. <groupId>org.springframework</groupId>
  67. <artifactId>spring-aop</artifactId>
  68. <version>${spring.version}</version>
  69. </dependency>
  70.  
  71. <dependency>
  72. <groupId>org.springframework</groupId>
  73. <artifactId>spring-context-support</artifactId>
  74. <version>${spring.version}</version>
  75. </dependency>
  76.  
  77. <dependency>
  78. <groupId>org.springframework</groupId>
  79. <artifactId>spring-test</artifactId>
  80. <version>${spring.version}</version>
  81. </dependency>
  82. <!-- mybatis核心包 -->
  83. <dependency>
  84. <groupId>org.mybatis</groupId>
  85. <artifactId>mybatis</artifactId>
  86. <version>${mybatis.version}</version>
  87. </dependency>
  88. <!-- mybatis/spring包 -->
  89. <dependency>
  90. <groupId>org.mybatis</groupId>
  91. <artifactId>mybatis-spring</artifactId>
  92. <version>1.2.2</version>
  93. </dependency>
  94. <!-- 导入java ee jar 包 -->
  95. <dependency>
  96. <groupId>javax</groupId>
  97. <artifactId>javaee-api</artifactId>
  98. <version>7.0</version>
  99. </dependency>
  100. <!-- 导入Mysql数据库链接jar包 -->
  101. <dependency>
  102. <groupId>mysql</groupId>
  103. <artifactId>mysql-connector-java</artifactId>
  104. <version>5.1.30</version>
  105. </dependency>
  106. <!-- 导入dbcp的jar包,用来在spring-*.xml中配置数据库 -->
  107. <dependency>
  108. <groupId>commons-dbcp</groupId>
  109. <artifactId>commons-dbcp</artifactId>
  110. <version>1.2.2</version>
  111. </dependency>
  112. <!-- JSTL标签类 -->
  113. <dependency>
  114. <groupId>jstl</groupId>
  115. <artifactId>jstl</artifactId>
  116. <version>1.2</version>
  117. </dependency>
  118. <!-- 日志文件管理包 -->
  119. <!-- log start -->
  120. <dependency>
  121. <groupId>log4j</groupId>
  122. <artifactId>log4j</artifactId>
  123. <version>${log4j.version}</version>
  124. </dependency>
  125.  
  126. <!-- 格式化对象,方便输出日志 -->
  127. <dependency>
  128. <groupId>com.alibaba</groupId>
  129. <artifactId>fastjson</artifactId>
  130. <version>1.1.41</version>
  131. </dependency>
  132.  
  133. <dependency>
  134. <groupId>org.slf4j</groupId>
  135. <artifactId>slf4j-api</artifactId>
  136. <version>${slf4j.version}</version>
  137. </dependency>
  138.  
  139. <dependency>
  140. <groupId>org.slf4j</groupId>
  141. <artifactId>slf4j-log4j12</artifactId>
  142. <version>${slf4j.version}</version>
  143. </dependency>
  144. <!-- log end -->
  145. <!-- 映入JSON -->
  146. <dependency>
  147. <groupId>org.codehaus.jackson</groupId>
  148. <artifactId>jackson-mapper-asl</artifactId>
  149. <version>1.9.13</version>
  150. </dependency>
  151. <!-- 上传组件包 -->
  152. <dependency>
  153. <groupId>commons-fileupload</groupId>
  154. <artifactId>commons-fileupload</artifactId>
  155. <version>1.3.1</version>
  156. </dependency>
  157. <dependency>
  158. <groupId>commons-io</groupId>
  159. <artifactId>commons-io</artifactId>
  160. <version>2.4</version>
  161. </dependency>
  162. <dependency>
  163. <groupId>commons-codec</groupId>
  164. <artifactId>commons-codec</artifactId>
  165. <version>1.9</version>
  166. </dependency>
  167. <!--c3p0包 -->
  168. <dependency>
  169. <groupId>com.mchange</groupId>
  170. <artifactId>c3p0</artifactId>
  171. <version>0.9.5</version>
  172. </dependency>
  173.  
  174. <!-- Shiro security -->
  175. <dependency>
  176. <groupId>org.apache.shiro</groupId>
  177. <artifactId>shiro-core</artifactId>
  178. <version>${shiro.version}</version>
  179. </dependency>
  180. <dependency>
  181. <groupId>org.apache.shiro</groupId>
  182. <artifactId>shiro-web</artifactId>
  183. <version>${shiro.version}</version>
  184. </dependency>
  185. <dependency>
  186. <groupId>org.apache.shiro</groupId>
  187. <artifactId>shiro-cas</artifactId>
  188. <version>${shiro.version}</version>
  189. </dependency>
  190. <dependency>
  191. <groupId>org.apache.shiro</groupId>
  192. <artifactId>shiro-spring</artifactId>
  193. <version>${shiro.version}</version>
  194. </dependency>
  195. <!-- end of Shiro security -->
  196.  
  197. </dependencies>
  198. <build>
  199. <!-- <directory>target</directory>这是打包的文件的路径。默认是该工程的根目录。 -->
  200. <finalName>Shop</finalName><!--生成的目标文件名 -->
  201. <plugins>
  202. <plugin>
  203. <groupId>org.apache.tomcat.maven</groupId>
  204. <artifactId>tomcat7-maven-plugin</artifactId>
  205. <version>2.2</version>
  206. <configuration>
  207. <url>http://localhost:8080/manager/text</url>
  208. <!-- tomcat管理路径 -->
  209. <server>tomcat7</server>
  210. <!-- 与settings.xml文件中Server的id相同 -->
  211. <path>/shop</path>
  212. <!-- 应用的部署位置 -->
  213. </configuration>
  214. </plugin>
  215. <!-- 编译的JDK -->
  216. <plugin>
  217. <groupId>org.apache.maven.plugins</groupId>
  218. <artifactId>maven-compiler-plugin</artifactId>
  219. <version>3.0</version>
  220. <configuration>
  221. <source>1.7</source>
  222. <target>1.7</target>
  223. <encoding>UTF-8</encoding>
  224. </configuration>
  225. </plugin>
  226. </plugins>
  227. <defaultGoal>compile</defaultGoal>
  228. </build>
  229. </project>

aliyun阿里云Maven仓库地址——加速你的maven构建

在maven的settings.xml 文件里配置mirrors的子节点,添加如下mirror

  1. <mirror>
  2. <id>nexus-aliyun</id>
  3. <mirrorOf>*</mirrorOf>
  4. <name>Nexus aliyun</name>
  5. <url>http://maven.aliyun.com/nexus/content/groups/public</url>
  6. </mirror>

maven 动态版本 aliyun阿里云Maven仓库地址——加速你的maven构建的更多相关文章

  1. aliyun阿里云alibabaMaven仓库地址——加速你的maven构建

    在maven的settings.xml 文件里 搜索  mirrors   ,把下面内容添加在其子节点内 <mirror> <id>nexus-aliyun</id> ...

  2. Maven镜像更换为阿里云中央仓库

    前言 maven仓库默认在国外,使用难免很慢,尤其是下载依赖的时候,换为国内镜像,让你感受飞一般的感觉.国内支持maven镜像的有阿里云,开源中国等,这里换为阿里云的. 更换 修改maven配置文件s ...

  3. Maven镜像更换为阿里云中央仓库(精)

    前言 maven仓库默认在国外,使用难免很慢,尤其是下载依赖的时候,换为国内镜像,让你感受飞一般的感觉.国内支持maven镜像的有阿里云,开源中国等,这里换为阿里云的. 更换 修改maven配置文件s ...

  4. 【maven】Maven将中央仓库修改为阿里云的仓库地址

    <mirror> <id>nexus-aliyun</id> <mirrorOf>*</mirrorOf> <name>Nexu ...

  5. 转:aliyun阿里云Maven仓库地址——加速你的maven构建

    maven仓库用过的人都知道,国内有多么的悲催.还好有比较好用的镜像可以使用,尽快记录下来.速度提升100倍. http://maven.aliyun.com/nexus/#view-reposito ...

  6. aliyun阿里云Maven仓库地址——加速你的maven构建

    maven仓库用过的人都知道,国内有多么的悲催.还好有比较好用的镜像可以使用,尽快记录下来.速度提升100倍. http://maven.aliyun.com/nexus/#view-reposito ...

  7. aliyun阿里云Maven仓库地址——加速你的maven构建 - 转载

    maven仓库用过的人都知道,国内有多么的悲催.还好有比较好用的镜像可以使用,尽快记录下来.速度提升100倍. http://maven.aliyun.com/nexus/#view-reposito ...

  8. [转]aliyun阿里云Maven仓库地址——加速你的maven构建

    原文链接:http://www.cnblogs.com/geektown/p/5705405.html maven仓库用过的人都知道,国内有多么的悲催.还好有比较好用的镜像可以使用,尽快记录下来.速度 ...

  9. Maven将中央仓库修改为阿里云的仓库地址

    <mirror> <id>nexus-aliyun</id> <mirrorOf>*</mirrorOf> <name>Nexu ...

随机推荐

  1. 20162312实验四Java Android简易开发

    实验准备 Android Studio 的下载: Android Studio 安装教程 准备中遇到的问题 最大的问题就是电脑无法虚拟化,因为微星的型号太多,我只好在网上找了许多方案一个个试,最后终于 ...

  2. Scala访问修饰符

    Scala 访问修饰符基本和Java的一样,分别有:private,protected,public. 如果没有指定访问修饰符符,默认情况下,Scala对象的访问级别都是 public. Scala ...

  3. UltraISO(软碟通)制作安装Ubuntu系统的U盘安装盘

    1.开UltraISO(软碟通),加载要写入U盘的iso文件,注意,要求软碟通的版本是9.3以上的.如下图: 2.点击“启动光盘.写入硬盘映像: 3.开启个写入硬盘映像的窗口,硬盘驱动器那一项看清楚是 ...

  4. 牛x的面试知识点

    已经凌晨2点多了,看来今天是失眠了,反正睡不着,写篇日记总结一下我的第一次社招面试经历吧.2015年12月1日办理了离职手续,离开了万通中心,也算是和我的第一个东家正式说了再见,其实还是很喜欢国贸的, ...

  5. jquery避免跟其他库冲突

    方法一: var $j=JQuery.noConflict(); $j('#msg').hide();//此处$j就代表JQuery 方法二: JQuery.noConflict(); JQuery( ...

  6. 微软浏览器兼容工具modern.IE

    http://www.browserstack.com/screenshots

  7. The file “Info.plist” couldn’t be opened because there is no such file

    修改了Info.plist的实际文件位置(项目和单元测试对应不同的Info.plist),报错 (null): could not read data from '/Users/xxxxx/Deskt ...

  8. extern用法

    Extern用法 用例子给你示范 // 1.cpp ; // 2.cpp 注意没有包含1.cpp #include <iostream> using namespace std; exte ...

  9. The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path:

    今天下载Windows安装版的tomcat5.5,安装完以后启动时候出现: The Apache Tomcat Native library which allows optimal performa ...

  10. 用phonegap和jquery-mobile写android应用

    今天纪录的是学习用phonegap和jquery-moblie来写android的过程.环境搭建. 我的习惯是直接上官网看文档,看get-started guide之类的文档.然后在看参考手册.然后就 ...