字面意思就是没有指定版本信息 ,警告问题:程序可以运行
增加一行
<version>2.3.2</version> 用来指定版本信息
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<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>
</build>
OK了
Using platform encoding (UTF-8 actually) to copy filtered resources
虽然并不影响项目的正常运行和install,但是不想看到这警告的发生。
加上(可加在在结尾处)
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
如下:
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<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>
</build>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>