<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.liyou</groupId>
<artifactId>mavenTestLast</artifactId>
<packaging>war</packaging>
<version>0.0.1-SNAPSHOT</version>
<name>mavenTestLast Maven Webapp</name>
<url>http://maven.apache.org</url>
<dependencies>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>3.8.1</version>
<scope>test</scope>
</dependency>
</dependencies>
<build>
<finalName>mavenTestLast</finalName>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>1.8</source>
<target>1.8</target>
<encoding>UTF-8</encoding>
</configuration>
</plugin>
</plugins>
</build>
</project>
maven项目建立后第一部----配置pom将运行的jdk升级为1.8版本
最新推荐文章于 2024-02-05 17:20:41 发布
本文介绍了一个使用Maven构建的Web项目的配置文件示例。该项目使用了war打包方式,并依赖于JUnit进行单元测试。配置中指定了Java源代码和目标代码版本为1.8,并采用UTF-8编码。
4158

被折叠的 条评论
为什么被折叠?



