You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
easy-springmvc-maven/pom.xml

91 lines
3.0 KiB

9 years ago
<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/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>springmvc-maven</groupId>
<artifactId>easy-springmvc-maven</artifactId>
<version>0.0.1-SNAPSHOT</version>
<packaging>war</packaging>
<name>springmvc-maven</name>
<description>simple demo about how to use maven combine spring mvc</description>
<build>
<!-- 使用默认的文件路径 -->
<!-- 生成的war文件名 避免添加版本号 -->
<finalName>easy-springmvc-maven</finalName>
9 years ago
<plugins>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.1</version>
<configuration>
<source>1.6</source>
<target>1.6</target>
</configuration>
</plugin>
<plugin>
<artifactId>maven-war-plugin</artifactId>
<configuration>
<version>3.0 </version>
<!-- maven的web项目默认的webroot是在src\main\webapp。如果在此目录下找不到web.xml就抛出webxml attribute is required的异常 -->
<!-- 需要在pom.xml中增加<webXml>配置 -->
<!-- <webXml>WebContent\WEB-INF\web.xml</webXml> -->
9 years ago
</configuration>
</plugin>
</plugins>
</build>
<dependencies>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.12</version>
<scope>test</scope>
</dependency>
<!-- spring mvc dependencies start -->
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-webmvc</artifactId>
<version>${spring.version}</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-jdbc</artifactId>
<version>${spring.version}</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-context</artifactId>
<version>${spring.version}</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-aop</artifactId>
<version>${spring.version}</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-core</artifactId>
<version>${spring.version}</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-test</artifactId>
<version>${spring.version}</version>
</dependency>
<!-- spring mvc dependencies end -->
<!-- 解决页面访问时发生错误: java.lang.NoClassDefFoundError: javax/servlet/jsp/jstl/core/Config - start -->
<dependency>
<groupId>jstl</groupId>
<artifactId>jstl</artifactId>
<version>1.2</version>
</dependency>
<dependency>
<groupId>taglibs</groupId>
<artifactId>standard</artifactId>
<version>1.1.2</version>
</dependency>
<!-- end -->
9 years ago
</dependencies>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
Bump spring.version from 3.1.2.RELEASE to 5.2.2.RELEASE Bumps `spring.version` from 3.1.2.RELEASE to 5.2.2.RELEASE. Updates `spring-webmvc` from 3.1.2.RELEASE to 5.2.2.RELEASE - [Release notes](https://github.com/spring-projects/spring-framework/releases) - [Commits](https://github.com/spring-projects/spring-framework/compare/v3.1.2.RELEASE...v5.2.2.RELEASE) Updates `spring-jdbc` from 3.1.2.RELEASE to 5.2.2.RELEASE - [Release notes](https://github.com/spring-projects/spring-framework/releases) - [Commits](https://github.com/spring-projects/spring-framework/compare/v3.1.2.RELEASE...v5.2.2.RELEASE) Updates `spring-context` from 3.1.2.RELEASE to 5.2.2.RELEASE - [Release notes](https://github.com/spring-projects/spring-framework/releases) - [Commits](https://github.com/spring-projects/spring-framework/compare/v3.1.2.RELEASE...v5.2.2.RELEASE) Updates `spring-aop` from 3.1.2.RELEASE to 5.2.2.RELEASE - [Release notes](https://github.com/spring-projects/spring-framework/releases) - [Commits](https://github.com/spring-projects/spring-framework/compare/v3.1.2.RELEASE...v5.2.2.RELEASE) Updates `spring-core` from 3.1.2.RELEASE to 5.2.2.RELEASE - [Release notes](https://github.com/spring-projects/spring-framework/releases) - [Commits](https://github.com/spring-projects/spring-framework/compare/v3.1.2.RELEASE...v5.2.2.RELEASE) Updates `spring-test` from 3.1.2.RELEASE to 5.2.2.RELEASE - [Release notes](https://github.com/spring-projects/spring-framework/releases) - [Commits](https://github.com/spring-projects/spring-framework/compare/v3.1.2.RELEASE...v5.2.2.RELEASE) Signed-off-by: dependabot[bot] <support@github.com>
5 years ago
<spring.version>5.2.2.RELEASE</spring.version>
9 years ago
</properties>
</project>