导航

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>per.lujian</groupId>
  8   <artifactId>testaccount</artifactId>
  9   <version>1.0-SNAPSHOT</version>
 10   <packaging>war</packaging>
 11 
 12   <name>testaccount 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       <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
 21 
 22       <maven.compiler.source>1.8</maven.compiler.source>
 23       <maven.compiler.target>1.8</maven.compiler.target>
 24       <spring.version>5.0.2.RELEASE</spring.version>
 25       <slf4j.version>1.6.6</slf4j.version>
 26       <log4j.version>1.2.12</log4j.version>
 27       <mysql.version>5.1.6</mysql.version>
 28       <mybatis.version>3.4.5</mybatis.version>
 29   </properties>
 30     <dependencies>
 31    <dependency>
 32     <groupId>org.aspectj</groupId>
 33     <artifactId>aspectjweaver</artifactId>
 34     <version>1.6.8</version>
 35 </dependency>
 36    <dependency>
 37     <groupId>org.springframework</groupId>
 38     <artifactId>spring-aop</artifactId>
 39     <version>${spring.version}</version>
 40 </dependency>
 41    <dependency>
 42     <groupId>org.springframework</groupId>
 43     <artifactId>spring-context</artifactId>
 44     <version>${spring.version}</version>
 45 </dependency>
 46     <dependency>
 47     <groupId>org.springframework</groupId>
 48     <artifactId>spring-web</artifactId>
 49     <version>${spring.version}</version>
 50 </dependency>
 51     <dependency>
 52     <groupId>org.springframework</groupId>
 53     <artifactId>spring-webmvc</artifactId>
 54     <version>${spring.version}</version>
 55 </dependency>
 56     <dependency>
 57     <groupId>org.springframework</groupId>
 58     <artifactId>spring-test</artifactId>
 59     <version>${spring.version}</version>
 60 </dependency>
 61    <dependency>
 62     <groupId>org.springframework</groupId>
 63     <artifactId>spring-tx</artifactId>
 64     <version>${spring.version}</version>
 65 </dependency>
 66     <dependency>
 67     <groupId>org.springframework</groupId>
 68     <artifactId>spring-jdbc</artifactId>
 69     <version>${spring.version}</version>
 70 </dependency>
 71    <dependency>
 72     <groupId>junit</groupId>
 73     <artifactId>junit</artifactId>
 74     <version>4.12</version>
 75     <scope>compile</scope>
 76 </dependency>
 77     <dependency>
 78     <groupId>mysql</groupId>
 79     <artifactId>mysql-connector-java</artifactId>
 80     <version>${mysql.version}</version>
 81 </dependency>
 82  <dependency>
 83     <groupId>javax.servlet</groupId>
 84     <artifactId>servlet-api</artifactId>
 85     <version>2.5</version>
 86     <scope>provided</scope>
 87 </dependency>
 88   <dependency>
 89     <groupId>javax.servlet.jsp</groupId>
 90     <artifactId>jsp-api</artifactId>
 91     <version>2.0</version>
 92     <scope>provided</scope>
 93 </dependency>
 94     <dependency>
 95     <groupId>jstl</groupId>
 96     <artifactId>jstl</artifactId>
 97     <version>1.2</version>
 98 </dependency>
 99     <dependency>
100     <groupId>log4j</groupId>
101     <artifactId>log4j</artifactId>
102     <version>${log4j.version}</version>
103 </dependency>
104     <dependency>
105     <groupId>org.slf4j</groupId>
106     <artifactId>slf4j-api</artifactId>
107     <version>${slf4j.version}</version>
108 </dependency>
109     <dependency>
110     <groupId>org.slf4j</groupId>
111     <artifactId>slf4j-log4j12</artifactId>
112     <version>${slf4j.version}</version>
113 </dependency>
114     <dependency>
115     <groupId>org.mybatis</groupId>
116     <artifactId>mybatis</artifactId>
117     <version>${mybatis.version}</version>
118 </dependency>
119     <dependency>
120     <groupId>org.mybatis</groupId>
121     <artifactId>mybatis-spring</artifactId>
122     <version>1.3.0</version>
123 </dependency>
124     <dependency>
125     <groupId>c3p0</groupId>
126     <artifactId>c3p0</artifactId>
127     <version>0.9.1.2</version>
128     <type>jar</type>
129     <scope>compile</scope>
130 </dependency>
131 </dependencies>
132 
133   <build>
134       <resources>
135           <resource>
136               <directory>src/main/java</directory>
137               <includes>
138                   <include>**/*.properties</include>
139                   <include>**/*.xml</include>
140               </includes>
141               <filtering>false</filtering>
142           </resource>
143       </resources>
144     <finalName>testaccount</finalName>
145     <pluginManagement><!-- lock down plugins versions to avoid using Maven defaults (may be moved to parent pom) -->
146       <plugins>
147         <plugin>
148           <artifactId>maven-clean-plugin</artifactId>
149           <version>3.0.0</version>
150         </plugin>
151         <!-- see http://maven.apache.org/ref/current/maven-core/default-bindings.html#Plugin_bindings_for_war_packaging -->
152         <plugin>
153           <artifactId>maven-resources-plugin</artifactId>
154           <version>3.0.2</version>
155         </plugin>
156         <plugin>
157           <artifactId>maven-compiler-plugin</artifactId>
158           <version>3.8.0</version>
159         </plugin>
160         <plugin>
161           <artifactId>maven-surefire-plugin</artifactId>
162           <version>2.22.1</version>
163         </plugin>
164         <plugin>
165           <artifactId>maven-war-plugin</artifactId>
166           <version>3.2.2</version>
167         </plugin>
168         <plugin>
169           <artifactId>maven-install-plugin</artifactId>
170           <version>2.5.2</version>
171         </plugin>
172         <plugin>
173           <artifactId>maven-deploy-plugin</artifactId>
174           <version>2.8.2</version>
175         </plugin>
176       </plugins>
177     </pluginManagement>
178   </build>
179 </project>

 

posted on 2019-06-28 23:44  尖尖剑🗡  阅读(67)  评论(0编辑  收藏  举报