JENKINS无法映射的字符,用于编码UTF8

时间:2018-07-25 17:41:52

标签: java linux maven jenkins tomcat7

你好,我在tomcat中使用jenkins,当我在jenkins中创建一个简单的maven项目并进行GIT插件和Maven的配置时,但是当我构建项目时,发现此错误: 编码UTF8的不可映射字符

我试图将<encodage> UTF-8 </encodage>添加到我的pom中

但不起作用

这是我的父母pom:

<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  <modelVersion>4.0.0</modelVersion>
  <groupId>fr</groupId>
  <artifactId>trunk</artifactId>
  <version>1.0.0-SNAPSHOT</version>
  <packaging>pom</packaging>
  <modules>
    <module>A</module>
    <module>core</module>
    <module>B</module>
    <module>C</module>
  </modules>
</project>

这是核心的pom:

    <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
        <modelVersion>4.0.0</modelVersion>
        <parent>
            <groupId>fr</groupId>
            <artifactId>trunk</artifactId>
            <version>1.0.0-SNAPSHOT</version>
        </parent>
        <groupId>fr.pc30</groupId>
        <artifactId>core</artifactId>
        <dependencies>
...
...
<build>
        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-compiler-plugin</artifactId>
                <configuration>
                    <source>1.7</source>
                    <target>1.7</target>
                    <showDeprecation>true</showDeprecation>
                    <showWarnings>true</showWarnings>
                    <executable>${env.JAVA_HOME}/bin/javac</executable>
                    <fork>true</fork>
                </configuration>
            </plugin>
        </plugins>
    </build>

这是一张错误图片 [[1]:https://i.stack.imgur.com/1eaUA.png][1]

0 个答案:

没有答案