헉!!/jsp, java
[maven] maven build시 unmappable character for encoding 에러
권태성
2013. 12. 10. 15:25
maven 프로젝트를 build 할때 unmappable character for encoding MS949 와 같은 에러가 나타나는 경우가 있습니다.
이 경우에는 pom.xml의 maven-compiler-plugin 부분의 encoding 타입을 UTF-8로 지정해주면 됩니다.
아래 예제를 참고하세요.
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>2.5.1</version>
<configuration>
<source>1.6</source>
<target>1.6</target>
<compilerArgument>-Xlint:all</compilerArgument>
<showWarnings>true</showWarnings>
<showDeprecation>true</showDeprecation>
<encoding>UTF-8</encoding>
</configuration>
</plugin>
728x90