maven 编译时提示 错误: 编码utf-8的不可映射字符
来源:3-2 Maven实战
qq_椭圆的南瓜_03336888
2019-02-22
写回答
1回答
-
qq_椭圆的南瓜_03336888
提问者
2019-02-22
图片贴上来有问题,我就复制错误提示吧
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile (default-compile) on project mmall: Compilation failure: Compilation failure:
[ERROR] \mmooc\src\main\java\com\mmall\dao\UserMapper.java:[18,6] 错误: 编码utf-8的不可映射字符
pom.xml中已加
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>1.7</source>
<target>1.7</target>
<encoding>utf-8</encoding>
<compilerArguments>
<extdirs>${project.basedir}/src/main/webapp/WEB-INF/lib</extdirs>
</compilerArguments>
</configuration>
</plugin>00
相似问题