maven编译提示"编码GBK.."编译失败解决办法

maven编辑项目是若是操做系统的编码和项目编码不一致,编译会失败修改项目POM文件以下便可apache

    <plugin>  
            <groupId>org.apache.maven.plugins</groupId>  
            <artifactId>maven-compiler-plugin</artifactId>  
            <version>3.5.1</version>
            <configuration>  
                <source>1.7</source>  
                <target>1.7</target>  
                <encoding>utf8</encoding>    
            </configuration>  
        </plugin>maven

相关文章
相关标签/搜索