【maven】關於maven install提示 編碼GBK的不可映射字符 錯誤的解決辦法

方案一:

在pom.xml的/project/build/plugins/下的編譯插件聲明中加入下面的配置:<encoding>UTF-8</encoding>

即:

    <plugin>  
        <groupId>org.apache.maven.plugins</groupId>   
        <artifactId>maven-compiler-plugin</artifactId>  
        <version>3.1</version>  
        <configuration>  
            <source>1.7</source>  
            <target>1.7</target>  
            <encoding>UTF-8</encoding>  
        </configuration>  
    </plugin>  


方案二:

在pom.xml的/project/properties/下的屬性配置中加入下面的配置:

<maven.compiler.encoding>UTF-8</maven.compiler.encoding>
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章