Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/selenium/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Maven 错误:用于在ecplise中编码UTF-8的不可映射字符_Maven_Selenium_Character Encoding_Testng - Fatal编程技术网

Maven 错误:用于在ecplise中编码UTF-8的不可映射字符

Maven 错误:用于在ecplise中编码UTF-8的不可映射字符,maven,selenium,character-encoding,testng,Maven,Selenium,Character Encoding,Testng,在尝试运行maven build…clean install im时,请检查以下代码是否设置了maven编译器插件 [ERROR] COMPILATION ERROR : [INFO] ------------------------------------------------------------- [ERROR] \Users\CreditCardClass.java:[168,31] error: unmappable character for encodin

在尝试运行maven build…clean install im时,请检查以下代码是否设置了maven编译器插件

  [ERROR] COMPILATION ERROR : 
    [INFO] -------------------------------------------------------------
    [ERROR] \Users\CreditCardClass.java:[168,31] error: unmappable character for encoding UTF-8
带有休闲代码的pom.xml文件

      <properties>
        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
        <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
      </properties>

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

UTF-8
UTF-8
org.apache.maven.plugins
maven编译器插件
2.3.2
1.6
1.6
UTF-8

我已经在属性->资源->测试文件UTF-8中设置了UFT-8。请任何人回答这个问题。

看起来像
CreditCardClass。java
包含无效字符。你使用哪个编辑器/IDE?CreditCardClass.java中的
[168,31]
是什么?我刚刚发布了一行错误,我添加了org.apache.maven.plugins maven编译器插件3.7.0好的,谢谢Wurgspa和Kiril,因为你的观点,我知道了这个问题。