构建SSH项目

2.添加依赖,修改pom.xml

[html]  view plain copy
  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.deppon.demo</groupId>
  5. <artifactId>test06</artifactId>
  6. <packaging>war</packaging>
  7. <version>0.0.1-SNAPSHOT</version>
  8. <name>test06 Maven Webapp</name>
  9. <url>http://maven.apache.org</url>
  10. <!-- 属性配置 -->
  11. <properties>
  12. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  13. </properties>
  14. <dependencies>
  15. <dependency>
  16. <groupId>junit</groupId>
  17. <artifactId>junit</artifactId>
  18. <version>4.10</version>
  19. <scope>test</scope>
  20. </dependency>
  21. <!-- 添加SSH依赖 -->
  22. <!-- Struts2 -->
  23. <dependency>
  24. <groupId>org.apache.struts</groupId>
  25. <artifactId>struts2-core</artifactId>
  26. <version>2.3.1</version>
  27. </dependency>
  28. <dependency>
  29. <groupId>org.apache.struts</groupId>
  30. <artifactId>struts2-spring-plugin</artifactId>
  31. <version>2.3.1</version>
  32. </dependency>
  33. <!-- 添加Hibernate依赖 -->
  34. <dependency>
  35. <groupId>org.hibernate</groupId>
  36. <artifactId>hibernate-core</artifactId>
  37. <version>3.6.5.Final</version>
  38. </dependency>
  39. <dependency>
  40. <groupId>commons-dbcp</groupId>
  41. <artifactId>commons-dbcp</artifactId>
  42. <version>1.4</version>
  43. </dependency>
  44. <!-- 添加Log4J依赖 -->
  45. <dependency>
  46. <groupId>log4j</groupId>
  47. <artifactId>log4j</artifactId>
  48. <version>1.2.16</version>
  49. </dependency>
  50. <dependency>
  51. <groupId>org.slf4j</groupId>
  52. <artifactId>slf4j-api</artifactId>
  53. <version>1.6.1</version>
  54. </dependency>
  55. <dependency>
  56. <groupId>org.slf4j</groupId>
  57. <artifactId>slf4j-nop</artifactId>
  58. <version>1.6.4</version>
  59. </dependency>
  60. <!-- 添加javassist -->
  61. <dependency>
  62. <groupId>javassist</groupId>
  63. <artifactId>javassist</artifactId>
  64. <version>3.11.0.GA</version>
  65. </dependency>
  66. <!-- 添加Spring依赖 -->
  67. <dependency>
  68. <groupId>org.springframework</groupId>
  69. <artifactId>spring-core</artifactId>
  70. <version>3.1.1.RELEASE</version>
  71. </dependency>
  72. <dependency>
  73. <groupId>org.springframework</groupId>
  74. <artifactId>spring-beans</artifactId>
  75. <version>3.1.1.RELEASE</version>
  76. </dependency>
  77. <dependency>
  78. <groupId>org.springframework</groupId>
  79. <artifactId>spring-context</artifactId>
  80. <version>3.1.1.RELEASE</version>
  81. </dependency>
  82. <dependency>
  83. <groupId>org.springframework</groupId>
  84. <artifactId>spring-jdbc</artifactId>
  85. <version>3.1.1.RELEASE</version>
  86. </dependency>
  87. <dependency>
  88. <groupId>org.springframework</groupId>
  89. <artifactId>spring-orm</artifactId>
  90. <version>3.1.1.RELEASE</version>
  91. </dependency>
  92. <dependency>
  93. <groupId>org.springframework</groupId>
  94. <artifactId>spring-web</artifactId>
  95. <version>3.1.1.RELEASE</version>
  96. </dependency>
  97. </dependencies>
  98. <build>
  99. <finalName>test06</finalName>
  100. </build>
  101. </project>

3.各种配置文件,各种代码

这里的话,就不贴代码了,和使用MyEclipse开发Web项目是一样的,在后一篇博客中也提到了,其实,之前的好多博客都是一样的原理,都是修改依赖配置,其他没什么,

相关的项目应该就到这里了,以后的话,会根据一些资料系统的学习一下maven,整理出更好的博客来大笑


使用Maven构建SSH项目源码:http://download.csdn.net/detail/jolingogo/5274494


  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值