去除[WARNING] Using platform encoding (GBK actually) to copy filtered resources, i.e. build is platform dependent!
再使用maven和jetty的时候,如果你不想看到上面的警告,那么你只需要修改pom如下:
<build>
<!-- 指定打成war包名称 -->
<finalName>mavenbos</finalName>
<plugins>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>1.6</source>
<target>1.6</target>
<encoding>UTF-8</encoding>
</configuration>
</plugin>
<!-- tomcat 插件 -->
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>tomcat-maven-plugin</artifactId>
<version>1.1</version>
<configuration>
<port>80</port> <!-- 修改内嵌tomcat运行端口 -->
<!-- 远程热部署 -->
<url>http://localhost:8080/manager/</url>
<server>myserver</server>
</configuration>
</plugin>
</plugins>
</build>
添加<configuration>…</configuration>即可