<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.yang</groupId>
<artifactId>CheckerService</artifactId>
<packaging>jar</packaging>
<name>CheckerService</name>
<version>1.0.0</version>
<!-- 添加项目jdk编译插件 -->
<build>
<plugins>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<version>2.3.2</version>
<configuration>
<source>1.8</source>
<target>1.8</target>
<encoding>UTF-8</encoding>
</configuration>
</plugin>
</plugins>
<resources>
<resource>
<directory>${basedir}/src/main/java</directory>
<includes>
<include>**/*.xml</include>
</includes>
</resource>
<resource>
<directory>${basedir}/config</directory>
</resource>
<resource>
<directory>${basedir}/src/javascript</directory>
</resource>
</resources>
</build>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
</project>
<artifactId>maven-compiler-plugin</artifactId>下面的版本需要设置,不然运行会有警告信息
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> 也需要设置,也是会有警告信息