1...pom.xml 配置文件

  1 <?xml version="1.0" encoding="UTF-8"?>
  2 
  3 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  4   xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  5   <modelVersion>4.0.0</modelVersion>
  6 
  7   <groupId>com.wsc</groupId>
  8   <artifactId>testSpring_mybatis</artifactId>
  9   <version>1.0-SNAPSHOT</version>
 10   <packaging>war</packaging>
 11 
 12   <name>testSpring_mybatis Maven Webapp</name>
 13   <!-- FIXME change it to the project's website -->
 14   <url>http://www.example.com</url>
 15 
 16   <properties>
 17     <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
 18     <maven.compiler.source>1.7</maven.compiler.source>
 19     <maven.compiler.target>1.7</maven.compiler.target>
 20   </properties>
 21 
 22   <dependencies>
 23     <dependency>
 24       <groupId>junit</groupId>
 25       <artifactId>junit</artifactId>
 26       <version>4.12</version>
 27       <scope>test</scope>
 28     </dependency>
 29       <dependency>
 30           <groupId>org.mybatis</groupId>
 31           <artifactId>mybatis</artifactId>
 32           <version>3.4.5</version>
 33       </dependency>
 34       <dependency>
 35           <groupId>org.springframework</groupId>
 36           <artifactId>spring-context</artifactId>
 37           <version>5.0.2.RELEASE</version>
 38       </dependency>
 39       <dependency>
 40           <groupId>c3p0</groupId>
 41           <artifactId>c3p0</artifactId>
 42           <version>0.9.1.2</version>
 43       </dependency>
 44       <dependency>
 45           <groupId>commons-dbcp</groupId>
 46           <artifactId>commons-dbcp</artifactId>
 47           <version>1.4</version>
 48       </dependency>
 49       <dependency>
 50           <groupId>mysql</groupId>
 51           <artifactId>mysql-connector-java</artifactId>
 52           <version>5.1.6</version>
 53       </dependency>
 54       <dependency>
 55           <groupId>org.springframework</groupId>
 56           <artifactId>spring-jdbc</artifactId>
 57           <version>5.0.2.RELEASE</version>
 58       </dependency>
 59       <dependency>
 60           <groupId>org.springframework</groupId>
 61           <artifactId>spring-test</artifactId>
 62           <version>5.0.2.RELEASE</version>
 63       </dependency>
 64       <dependency>
 65           <groupId>org.mybatis</groupId>
 66           <artifactId>mybatis-spring</artifactId>
 67           <version>1.3.1</version>
 68       </dependency>
 69       <dependency>
 70           <groupId>log4j</groupId>
 71           <artifactId>log4j</artifactId>
 72           <version>1.2.17</version>
 73       </dependency>
 74       <dependency>
 75           <groupId>org.springframework</groupId>
 76           <artifactId>spring-tx</artifactId>
 77           <version>5.0.2.RELEASE</version>
 78       </dependency>
 79       <dependency>
 80           <groupId>org.aspectj</groupId>
 81           <artifactId>aspectjweaver</artifactId>
 82           <version>1.8.9</version>
 83       </dependency>
 84       <!--web引入依赖-->
 85 
 86       <dependency>
 87           <groupId>org.springframework</groupId>
 88           <artifactId>spring-webmvc</artifactId>
 89           <version>5.0.2.RELEASE</version>
 90       </dependency>
 91       <dependency>
 92           <groupId>javax.servlet</groupId>
 93           <artifactId>servlet-api</artifactId>
 94           <version>2.5</version>
 95           <scope>provided</scope>
 96       </dependency>
 97       <dependency>
 98           <groupId>javax.servlet</groupId>
 99           <artifactId>jsp-api</artifactId>
100           <version>2.0</version>
101           <scope>provided</scope>
102       </dependency>
103       <!--引入标签库-->
104 
105       <dependency>
106           <groupId>jstl</groupId>
107           <artifactId>jstl</artifactId>
108           <version>1.2</version>
109       </dependency>
110   </dependencies>
111 
112   <build>
113     <finalName>testSpring_mybatis</finalName>
114     <pluginManagement><!-- lock down plugins versions to avoid using Maven defaults (may be moved to parent pom) -->
115       <plugins>
116         <plugin>
117           <artifactId>maven-clean-plugin</artifactId>
118           <version>3.1.0</version>
119         </plugin>
120         <!-- see http://maven.apache.org/ref/current/maven-core/default-bindings.html#Plugin_bindings_for_war_packaging -->
121         <plugin>
122           <artifactId>maven-resources-plugin</artifactId>
123           <version>3.0.2</version>
124         </plugin>
125         <plugin>
126           <artifactId>maven-compiler-plugin</artifactId>
127           <version>3.8.0</version>
128         </plugin>
129         <plugin>
130           <artifactId>maven-surefire-plugin</artifactId>
131           <version>2.22.1</version>
132         </plugin>
133         <plugin>
134           <artifactId>maven-war-plugin</artifactId>
135           <version>3.2.2</version>
136         </plugin>
137         <plugin>
138           <artifactId>maven-install-plugin</artifactId>
139           <version>2.5.2</version>
140         </plugin>
141         <plugin>
142           <artifactId>maven-deploy-plugin</artifactId>
143           <version>2.8.2</version>
144         </plugin>
145       </plugins>
146     </pluginManagement>
147   </build>
148 </project>
pom.xml

相关文章:

  • 2022-02-09
  • 2022-12-23
  • 2021-11-12
  • 2021-10-13
  • 2022-12-23
  • 2021-12-16
  • 2022-12-23
猜你喜欢
  • 2022-01-18
  • 2021-06-07
  • 2021-08-11
  • 2022-12-23
  • 2021-07-29
  • 2021-10-21
  • 2021-10-05
相关资源
相似解决方案