maven + spring 集成 pom.xml配置文件

来源:互联网 发布:定义变量java 编辑:程序博客网 时间:2024/05/20 07:33
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"  xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">  <modelVersion>4.0.0</modelVersion>  <groupId>com.hmingqu.mavenDome</groupId>  <artifactId>mavenDome</artifactId>  <packaging>war</packaging>  <version>0.0.1-SNAPSHOT</version>  <name>mavenDome Maven Webapp</name>  <url>http://maven.apache.org</url><properties><springframework.version>4.3.0.RELEASE</springframework.version></properties>  <dependencies>    <dependency>      <groupId>junit</groupId>      <artifactId>junit</artifactId>      <version>4.11</version>      <scope>test</scope>    </dependency>        <dependency>    <groupId>javax.servlet</groupId><artifactId>javax.servlet-api</artifactId><version>3.1.0</version><scope>provided</scope>    </dependency>        <dependency><groupId>javax.servlet.jsp</groupId><artifactId>jsp-api</artifactId><version>2.2</version><scope>provided</scope></dependency><!-- springframework相关架包 --><dependency><groupId>org.springframework</groupId><artifactId>spring-context</artifactId><version>${springframework.version}</version></dependency><dependency><groupId>org.springframework</groupId><artifactId>spring-core</artifactId><version>${springframework.version}</version></dependency><dependency><groupId>org.springframework</groupId><artifactId>spring-aop</artifactId><version>${springframework.version}</version></dependency><dependency><groupId>org.springframework</groupId><artifactId>spring-tx</artifactId><version>${springframework.version}</version></dependency><dependency><groupId>org.springframework</groupId><artifactId>spring-beans</artifactId><version>${springframework.version}</version></dependency><dependency><groupId>org.springframework</groupId><artifactId>spring-orm</artifactId><version>${springframework.version}</version></dependency><dependency><groupId>org.springframework</groupId><artifactId>spring-aspects</artifactId><version>${springframework.version}</version></dependency><dependency><groupId>org.springframework</groupId><artifactId>spring-web</artifactId><version>${springframework.version}</version></dependency><dependency><groupId>org.springframework</groupId><artifactId>spring-webmvc</artifactId><version>${springframework.version}</version></dependency><!-- JSP 标准标签库(JSTL) --><dependency><groupId>javax.servlet</groupId><artifactId>jstl</artifactId><version>1.2</version></dependency>  </dependencies>    <build>    <finalName>mavenDome</finalName><!-- 配置tomcat插件 --><!--     <plugins> --><!-- <plugin> --><!-- <groupId>org.apache.tomcat.maven</groupId> --><!-- <artifactId>tomcat7-maven-plugin</artifactId> --><!-- <version>2.2</version> --><!-- </plugin> --><!-- </plugins> -->  </build></project>

原创粉丝点击