🌳ASH84

Maker, Developer, Adventurer 🤩

maven, UTF-8 인코딩 소스일경우, 경고 문구 해결법

2012-12-28

maven빌드를 하고 나면 이상하게 아래와 같은 문구가 나온다. 말인즉, UTF-8 인코딩으로 작성되어 있어서 특정 플랫폼에서 종속적(dependent)라는 애기인데, 
<code style="margin: 0px; padding: 0px; border: 0px; font-size: 13.600000381469727px; vertical-align: baseline; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, serif;"><span class="pun" style="margin: 0px; padding: 0px; border: 0px; font-size: 11pt; vertical-align: baseline; background-color: transparent;">[</span><span class="pln" style="margin: 0px; padding: 0px; border: 0px; font-size: 11pt; vertical-align: baseline; background-color: transparent;">WARNING</span><span class="pun" style="margin: 0px; padding: 0px; border: 0px; font-size: 11pt; vertical-align: baseline; background-color: transparent;">]</span><span class="pln" style="margin: 0px; padding: 0px; border: 0px; font-size: 11pt; vertical-align: baseline; background-color: transparent;"></span><span class="typ" style="margin: 0px; padding: 0px; border: 0px; font-size: 11pt; vertical-align: baseline; background-color: transparent; color: rgb(43, 145, 175);">File</span><span class="pln" style="margin: 0px; padding: 0px; border: 0px; font-size: 11pt; vertical-align: baseline; background-color: transparent;"> encoding has </span><span class="kwd" style="margin: 0px; padding: 0px; border: 0px; font-size: 11pt; vertical-align: baseline; background-color: transparent; color: rgb(0, 0, 139);">not</span><span class="pln" style="margin: 0px; padding: 0px; border: 0px; font-size: 11pt; vertical-align: baseline; background-color: transparent;"> been </span><span class="kwd" style="margin: 0px; padding: 0px; border: 0px; font-size: 11pt; vertical-align: baseline; background-color: transparent; color: rgb(0, 0, 139);">set</span><span class="pun" style="margin: 0px; padding: 0px; border: 0px; font-size: 11pt; vertical-align: baseline; background-color: transparent;">,</span><span class="pln" style="margin: 0px; padding: 0px; border: 0px; font-size: 11pt; vertical-align: baseline; background-color: transparent;"></span><span class="kwd" style="margin: 0px; padding: 0px; border: 0px; font-size: 11pt; vertical-align: baseline; background-color: transparent; color: rgb(0, 0, 139);">using</span><span class="pln" style="margin: 0px; padding: 0px; border: 0px; font-size: 11pt; vertical-align: baseline; background-color: transparent;"> platform encoding UTF</span><span class="pun" style="margin: 0px; padding: 0px; border: 0px; font-size: 11pt; vertical-align: baseline; background-color: transparent;">-</span><span class="lit" style="margin: 0px; padding: 0px; border: 0px; font-size: 11pt; vertical-align: baseline; background-color: transparent; color: rgb(128, 0, 0);">8</span><span class="pun" style="margin: 0px; padding: 0px; border: 0px; font-size: 11pt; vertical-align: baseline; background-color: transparent;">,</span><span class="pln" style="margin: 0px; padding: 0px; border: 0px; font-size: 11pt; vertical-align: baseline; background-color: transparent;"> i</span><span class="pun" style="margin: 0px; padding: 0px; border: 0px; font-size: 11pt; vertical-align: baseline; background-color: transparent;">.</span><span class="pln" style="margin: 0px; padding: 0px; border: 0px; font-size: 11pt; vertical-align: baseline; background-color: transparent;">e</span><span class="pun" style="margin: 0px; padding: 0px; border: 0px; font-size: 11pt; vertical-align: baseline; background-color: transparent;">.</span><span class="pln" style="margin: 0px; padding: 0px; border: 0px; font-size: 11pt; vertical-align: baseline; background-color: transparent;"> build </span><span class="kwd" style="margin: 0px; padding: 0px; border: 0px; font-size: 11pt; vertical-align: baseline; background-color: transparent; color: rgb(0, 0, 139);">is</span><span class="pln" style="margin: 0px; padding: 0px; border: 0px; font-size: 11pt; vertical-align: baseline; background-color: transparent;"> platform dependent</span><span class="pun" style="margin: 0px; padding: 0px; border: 0px; font-size: 11pt; vertical-align: baseline; background-color: transparent;">!</span>

아래와 같이 빌드에 대한 encoding을 UTF-8로 하겠다고 지정하면 된다. 


#dev  #File encoding has not been set  #i.e. build is platform dependent!  #maven  #using platform encoding UTF-8  #UTF-8 인코딩  #메이븐