OpenRewrite:夸克的内容未知,因此字符集未知

问题描述 投票:0回答:1

我想使用 OpenRewrite 插件和以下链接的配方执行源代码从 Java8 到 Jave11 的迁移:https://docs.openrewrite.org/reference/recipes/java/migrate/java8tojava11.

正如指南所建议的,我已在父pom中添加了用于迁移代码的插件指令:

<project>
  <build>
    <plugins>
      <plugin>
        <groupId>org.openrewrite.maven</groupId>
        <artifactId>rewrite-maven-plugin</artifactId>
        <version>4.41.0</version>
        <configuration>
          <activeRecipes>
            <recipe>org.openrewrite.java.migrate.Java8toJava11</recipe>
          </activeRecipes>
        </configuration>
        <dependencies>
          <dependency>
            <groupId>org.openrewrite.recipe</groupId>
            <artifactId>rewrite-migrate-java</artifactId>
            <version>1.17.1</version>
          </dependency>
        </dependencies>
      </plugin>
    </plugins>
  </build>
</project>

我已经执行了 mvn 目标,但运行停止并显示以下消息:

夸克的内容未知,因此字符集未知。

该项目是一个多模块项目,使用的文件编码是ISO-8859-1。

maven java-8 migration java-11 openrewrite
1个回答
1
投票

此问题已通过此代码更改修复,在 rewrite-maven-plugin v4.41.1 中发布。感谢您让我们注意到这一点!

© www.soinside.com 2019 - 2024. All rights reserved.