maven ssm pom 文件

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了maven ssm pom 文件相关的知识,希望对你有一定的参考价值。

  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.jialenuo</groupId>
  5   <artifactId>jialenuokehuguanxiguanli</artifactId>
  6   <packaging>war</packaging>
  7   <version>0.0.1-SNAPSHOT</version>
  8   <name>jialenuokehuguanxiguanli Maven Webapp</name>
  9   <url>http://maven.apache.org</url>
 10   
 11   <properties>
 12     <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
 13     <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
 14     <maven.compiler.encoding>UTF-8</maven.compiler.encoding>
 15 
 16       <!-- spring版本号 -->  
 17         <spring.version>4.0.2.RELEASE</spring.version>  
 18         <!-- mybatis版本号 -->  
 19         <mybatis.version>3.2.6</mybatis.version>  
 20   </properties>
 21   
 22   <dependencies>
 23      <!-- 加密解密需要的jar包 -->  
 24         <dependency>  
 25             <groupId>org.bouncycastle</groupId>  
 26             <artifactId>bcprov-ext-jdk15on</artifactId>  
 27             <version>1.50</version>  
 28         </dependency>  
 29   
 30   
 31         <dependency>  
 32             <groupId>org.apache.directory.studio</groupId>  
 33             <artifactId>org.apache.commons.codec</artifactId>  
 34             <version>1.8</version>  
 35         </dependency>  
 36   
 37   
 38         <!-- 邮件需要的jar包,记不清是否一定需要 -->  
 39         <dependency>  
 40             <groupId>com.sun.mail</groupId>  
 41             <artifactId>javax.mail</artifactId>  
 42             <version>1.5.0</version>  
 43         </dependency>  
 44         <!-- 导入dbcp的jar包,用来在applicationContext.xml中配置数据库 -->  
 45         <dependency>  
 46             <groupId>commons-dbcp</groupId>  
 47             <artifactId>commons-dbcp</artifactId>  
 48             <version>1.2.2</version>  
 49         </dependency>  
 50         <!-- 导入java ee jar 包 -->  
 51         <dependency>  
 52             <groupId>javax</groupId>  
 53             <artifactId>javaee-api</artifactId>  
 54             <version>7.0</version>  
 55         </dependency>  
 56         <!-- spring核心包 -->  
 57         <dependency>  
 58             <groupId>org.springframework</groupId>  
 59             <artifactId>spring-core</artifactId>  
 60             <version>${spring.version}</version>  
 61         </dependency>  
 62   
 63   
 64         <dependency>  
 65             <groupId>org.springframework</groupId>  
 66             <artifactId>spring-web</artifactId>  
 67             <version>${spring.version}</version>  
 68         </dependency>  
 69         <dependency>  
 70             <groupId>org.springframework</groupId>  
 71             <artifactId>spring-oxm</artifactId>  
 72             <version>${spring.version}</version>  
 73         </dependency>  
 74         <dependency>  
 75             <groupId>org.springframework</groupId>  
 76             <artifactId>spring-tx</artifactId>  
 77             <version>${spring.version}</version>  
 78         </dependency>  
 79   
 80   
 81         <dependency>  
 82             <groupId>org.springframework</groupId>  
 83             <artifactId>spring-jdbc</artifactId>  
 84             <version>${spring.version}</version>  
 85         </dependency>  
 86   
 87   
 88         <dependency>  
 89             <groupId>org.springframework</groupId>  
 90             <artifactId>spring-webmvc</artifactId>  
 91             <version>${spring.version}</version>  
 92         </dependency>  
 93         <dependency>  
 94             <groupId>org.springframework</groupId>  
 95             <artifactId>spring-aop</artifactId>  
 96             <version>${spring.version}</version>  
 97         </dependency>  
 98   
 99   
100         <dependency>  
101             <groupId>org.springframework</groupId>  
102             <artifactId>spring-context-support</artifactId>  
103             <version>${spring.version}</version>  
104         </dependency>  
105   
106   
107         <dependency>  
108             <groupId>org.springframework</groupId>  
109             <artifactId>spring-test</artifactId>  
110             <version>${spring.version}</version>  
111         </dependency>  
112         <!-- mybatis核心包 -->  
113         <dependency>  
114             <groupId>org.mybatis</groupId>  
115             <artifactId>mybatis</artifactId>  
116             <version>${mybatis.version}</version>  
117         </dependency>  
118         <!-- mybatis/spring包 -->  
119         <dependency>  
120             <groupId>org.mybatis</groupId>  
121             <artifactId>mybatis-spring</artifactId>  
122             <version>1.2.2</version>  
123         </dependency>  
124         <dependency>  
125             <groupId>junit</groupId>  
126             <artifactId>junit</artifactId>  
127             <version>4.11</version>  
128             <scope>test</scope>  
129         </dependency>  
130         <!-- 导入mybatis包 -->  
131         <dependency>  
132             <groupId>org.mybatis</groupId>  
133             <artifactId>mybatis</artifactId>  
134             <version>3.2.6</version>  
135         </dependency>  
136   
137   
138         <!-- 导入mysql数据库链接jar包 -->  
139         <dependency>  
140             <groupId>mysql</groupId>  
141             <artifactId>mysql-connector-java</artifactId>  
142             <version>5.1.30</version>  
143         </dependency>  
144         <!-- json数据 -->  
145         <dependency>  
146             <groupId>org.codehaus.jackson</groupId>  
147             <artifactId>jackson-core-asl</artifactId>  
148             <version>1.9.13</version>  
149         </dependency>  
150         <dependency>  
151             <groupId>org.codehaus.jackson</groupId>  
152             <artifactId>jackson-mapper-asl</artifactId>  
153             <version>1.9.13</version>  
154         </dependency>  
155           
156         <!-- JSTL标签类 -->  
157         <dependency>  
158             <groupId>jstl</groupId>  
159             <artifactId>jstl</artifactId>  
160             <version>1.2</version>  
161         </dependency>  
162           
163   </dependencies>
164   <build>
165     <finalName>jialenuokehuguanxiguanli</finalName>
166     <plugins>
167       <plugin>
168         <groupId>org.mybatis.generator</groupId>
169         <artifactId>mybatis-generator-maven-plugin</artifactId>
170         <version>1.3.2</version>
171         <configuration>
172           <verbose>true</verbose>
173           <overwrite>true</overwrite>
174         </configuration>
175       </plugin>
176 
177       <!-- geelynote maven的核心插件之-complier插件默认只支持编译Java 1.4,因此需要加上支持高版本jre的配置,在pom.xml里面加上 增加编译插件 -->
178       <plugin>
179         <groupId>org.apache.maven.plugins</groupId>
180         <artifactId>maven-compiler-plugin</artifactId>
181         <configuration>
182           <source>1.8</source>
183           <target>1.8</target>
184           <encoding>UTF-8</encoding>
185           <compilerArguments>
186             <extdirs>${project.basedir}/src/main/webapp/WEB-INF/lib</extdirs>
187           </compilerArguments>
188         </configuration>
189       </plugin>
190     </plugins>
191   </build>
192 </project>

 

以上是关于maven ssm pom 文件的主要内容,如果未能解决你的问题,请参考以下文章

基于ssm框架没有pom.xml正常吗

配置maven-ssm

创建maven项目pom.xml文件所需导入的包(SSM)

SSM整合所需的maven配置文件

ssm整合配置文件记录

SSM