You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

pom.xml 2.5 kB

6 years ago
6 years ago
6 years ago
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  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>cn.zzs</groupId>
  5. <artifactId>DBCP-demo</artifactId>
  6. <packaging>war</packaging>
  7. <version>1.0.0</version>
  8. <name>DBCP-demo</name>
  9. <url>http://maven.apache.org</url>
  10. <dependencies>
  11. <!-- junit -->
  12. <dependency>
  13. <groupId>junit</groupId>
  14. <artifactId>junit</artifactId>
  15. <version>4.12</version>
  16. <scope>test</scope>
  17. </dependency>
  18. <!-- dbcp -->
  19. <dependency>
  20. <groupId>org.apache.commons</groupId>
  21. <artifactId>commons-dbcp2</artifactId>
  22. <version>2.6.0</version>
  23. </dependency>
  24. <!-- log4j -->
  25. <dependency>
  26. <groupId>log4j</groupId>
  27. <artifactId>log4j</artifactId>
  28. <version>1.2.17</version>
  29. </dependency>
  30. <!-- mysql驱动的jar包 -->
  31. <dependency>
  32. <groupId>mysql</groupId>
  33. <artifactId>mysql-connector-java</artifactId>
  34. <version>8.0.15</version>
  35. </dependency>
  36. <!-- JSP相关:用于测试DBCP对jndi的支持 -->
  37. <dependency>
  38. <groupId>javax.servlet</groupId>
  39. <artifactId>jstl</artifactId>
  40. <version>1.2</version>
  41. <scope>provided</scope>
  42. </dependency>
  43. <dependency>
  44. <groupId>javax.servlet</groupId>
  45. <artifactId>javax.servlet-api</artifactId>
  46. <version>3.1.0</version>
  47. <scope>provided</scope>
  48. </dependency>
  49. <dependency>
  50. <groupId>javax.servlet.jsp</groupId>
  51. <artifactId>javax.servlet.jsp-api</artifactId>
  52. <version>2.2.1</version>
  53. <scope>provided</scope>
  54. </dependency>
  55. <!-- jta:用于测试DBCP对JTA事务的支持 -->
  56. <dependency>
  57. <groupId>javax.transaction</groupId>
  58. <artifactId>jta</artifactId>
  59. <version>1.1</version>
  60. </dependency>
  61. <dependency>
  62. <groupId>com.atomikos</groupId>
  63. <artifactId>transactions-jdbc</artifactId>
  64. <version>3.9.3</version>
  65. </dependency>
  66. </dependencies>
  67. </project>