-
Notifications
You must be signed in to change notification settings - Fork 77
Description
Before reporting
- This repository should be used to report issues on the Maven or Gradle plugins for GraalVM.
- Please report issues which are specific to the Spring Framework or the Micronaut framework to their specific repositories.
- Do not report issues with building your specific application, e.g errors which happen at image build time like classes initialized at build time, or missing classes as run time: those are not related to the plugins but problems with configuration. You can refer to the GraalVM native image documentation for available options and the plugins documentation for how to use them with the plugin.
Describe the bug
A clear and concise description of what the bug is.
Make sure that you have read the documentation and that you are using the latest plugin version.
native-maven-plugin
cannot publish to local repository on Windows 11 Home 24H2 with Simplified Chinese.
To Reproduce
When possible, provide a link to a repository which reproduces the issue, with instructions on how to use.
The reproducer must make use of either the Maven or Gradle plugin.
Steps to reproduce the behavior:
- Execute the following PowerShell 7 command on the
Windows 11 Home 24H2
instance withPowerShell/PowerShell
,
version-fox/vfox
,git-for-windows/git
,rancher-sandbox/rancher-desktop
and
Microsoft.VisualStudio.2022.Community
installed.
vfox add java
vfox install java@17.0.9-graalce
vfox use --global java@17.0.9-graalce
git clone git@github.com:graalvm/native-build-tools.git
cd ./native-build-tools/
./gradlew publishToMavenLocal --no-parallel
Please use backticks to properly format code.
If possible please attach a complete reproducer here (either as a zip file or as a link to public repository/branch).
Expected behavior
A clear and concise description of what you expected to happen.
native-maven-plugin
can publish to local repository on Windows with Simplified Chinese.
Logs
Add logs to help explain your problem.
Please use backticks to properly format big logs. Example:
Click me to see the full Log🛝🎟️🫠🛝🛝🎑😊😁🛝🎟️🎑🎑🎋🫠
PS D:\TwinklingLiftWorks\git\public\native-build-tools> ./gradlew publishToMavenLocal --no-parallel
> Configure project :native-gradle-plugin
Test task functionalTest will use GRAALVM_HOME = C:\Users\lingh\.version-fox\temp\1748707200-23404\java
Test task gradle7.4FunctionalTest will use GRAALVM_HOME = C:\Users\lingh\.version-fox\temp\1748707200-23404\java
Test task gradle7.6.2FunctionalTest will use GRAALVM_HOME = C:\Users\lingh\.version-fox\temp\1748707200-23404\java
Test task gradle8.0.1FunctionalTest will use GRAALVM_HOME = C:\Users\lingh\.version-fox\temp\1748707200-23404\java
Test task gradle8.2.1FunctionalTest will use GRAALVM_HOME = C:\Users\lingh\.version-fox\temp\1748707200-23404\java
Test task gradle8.13FunctionalTest will use GRAALVM_HOME = C:\Users\lingh\.version-fox\temp\1748707200-23404\java
Test task configCacheFunctionalTest will use GRAALVM_HOME = C:\Users\lingh\.version-fox\temp\1748707200-23404\java
Test task gradle7.4ConfigCacheFunctionalTest will use GRAALVM_HOME = C:\Users\lingh\.version-fox\temp\1748707200-23404\java
Test task gradle7.6.2ConfigCacheFunctionalTest will use GRAALVM_HOME = C:\Users\lingh\.version-fox\temp\1748707200-23404\java
Test task gradle8.0.1ConfigCacheFunctionalTest will use GRAALVM_HOME = C:\Users\lingh\.version-fox\temp\1748707200-23404\java
Test task gradle8.2.1ConfigCacheFunctionalTest will use GRAALVM_HOME = C:\Users\lingh\.version-fox\temp\1748707200-23404\java
Test task gradle8.13ConfigCacheFunctionalTest will use GRAALVM_HOME = C:\Users\lingh\.version-fox\temp\1748707200-23404\java
> Task :native-maven-plugin:javadoc FAILED
D:\TwinklingLiftWorks\git\public\native-build-tools\native-maven-plugin\src\main\java\org\graalvm\buildtools\maven\sbom\ArtifactAdapterResolver.java:259: 错误: 编码 GBK映射字符 (0x80)
* 鈹溾攢鈹? apache/
^
D:\TwinklingLiftWorks\git\public\native-build-tools\native-maven-plugin\src\main\java\org\graalvm\buildtools\maven\sbom\ArtifactAdapterResolver.java:260: 错误: 编码 GBK 的不可映射字符 (0x82)
* 鈹? 鈹溾攢鈹? commons/
^
D:\TwinklingLiftWorks\git\public\native-build-tools\native-maven-plugin\src\main\java\org\graalvm\buildtools\maven\sbom\ArtifactAdapterResolver.java:260: 错误: 编码 GBK 的不可映射字符 (0x80)
* 鈹? 鈹溾攢鈹? commons/
^
D:\TwinklingLiftWorks\git\public\native-build-tools\native-maven-plugin\src\main\java\org\graalvm\buildtools\maven\sbom\ArtifactAdapterResolver.java:261: 错误: 编码 GBK 的不可映射字符 (0x82)
* 鈹? 鈹? 鈹溾攢鈹? validator/
^
D:\TwinklingLiftWorks\git\public\native-build-tools\native-maven-plugin\src\main\java\org\graalvm\buildtools\maven\sbom\ArtifactAdapterResolver.java:261: 错误: 编码 GBK 的不可映射字符 (0x82)
* 鈹? 鈹? 鈹溾攢鈹? validator/
^
D:\TwinklingLiftWorks\git\public\native-build-tools\native-maven-plugin\src\main\java\org\graalvm\buildtools\maven\sbom\ArtifactAdapterResolver.java:261: 错误: 编码 GBK 的不可映射字符 (0x80)
* 鈹? 鈹? 鈹溾攢鈹? validator/
^
D:\TwinklingLiftWorks\git\public\native-build-tools\native-maven-plugin\src\main\java\org\graalvm\buildtools\maven\sbom\ArtifactAdapterResolver.java:262: 错误: 编码 GBK 的不可映射字符 (0x82)
* 鈹? 鈹? 鈹? 鈹溾攢鈹? UrlValidator.class
^
D:\TwinklingLiftWorks\git\public\native-build-tools\native-maven-plugin\src\main\java\org\graalvm\buildtools\maven\sbom\ArtifactAdapterResolver.java:262: 错误: 编码 GBK 的不可映射字符 (0x82)
* 鈹? 鈹? 鈹? 鈹溾攢鈹? UrlValidator.class
^
D:\TwinklingLiftWorks\git\public\native-build-tools\native-maven-plugin\src\main\java\org\graalvm\buildtools\maven\sbom\ArtifactAdapterResolver.java:262: 错误: 编码 GBK 的不可映射字符 (0x82)
* 鈹? 鈹? 鈹? 鈹溾攢鈹? UrlValidator.class
^
D:\TwinklingLiftWorks\git\public\native-build-tools\native-maven-plugin\src\main\java\org\graalvm\buildtools\maven\sbom\ArtifactAdapterResolver.java:262: 错误: 编码 GBK 的不可映射字符 (0x80)
* 鈹? 鈹? 鈹? 鈹溾攢鈹? UrlValidator.class
^
D:\TwinklingLiftWorks\git\public\native-build-tools\native-maven-plugin\src\main\java\org\graalvm\buildtools\maven\sbom\ArtifactAdapterResolver.java:263: 错误: 编码 GBK 的不可映射字符 (0x82)
* 鈹? 鈹? 鈹? 鈹溾攢鈹? routines/
^
D:\TwinklingLiftWorks\git\public\native-build-tools\native-maven-plugin\src\main\java\org\graalvm\buildtools\maven\sbom\ArtifactAdapterResolver.java:263: 错误: 编码 GBK 的不可映射字符 (0x82)
* 鈹? 鈹? 鈹? 鈹溾攢鈹? routines/
^
D:\TwinklingLiftWorks\git\public\native-build-tools\native-maven-plugin\src\main\java\org\graalvm\buildtools\maven\sbom\ArtifactAdapterResolver.java:263: 错误: 编码 GBK 的不可映射字符 (0x82)
* 鈹? 鈹? 鈹? 鈹溾攢鈹? routines/
^
D:\TwinklingLiftWorks\git\public\native-build-tools\native-maven-plugin\src\main\java\org\graalvm\buildtools\maven\sbom\ArtifactAdapterResolver.java:263: 错误: 编码 GBK 的不可映射字符 (0x80)
* 鈹? 鈹? 鈹? 鈹溾攢鈹? routines/
^
D:\TwinklingLiftWorks\git\public\native-build-tools\native-maven-plugin\src\main\java\org\graalvm\buildtools\maven\sbom\ArtifactAdapterResolver.java:264: 错误: 编码 GBK 的不可映射字符 (0x82)
* 鈹? 鈹? 鈹? 鈹? 鈹斺攢鈹? ValidatorUtils.class
^
D:\TwinklingLiftWorks\git\public\native-build-tools\native-maven-plugin\src\main\java\org\graalvm\buildtools\maven\sbom\ArtifactAdapterResolver.java:264: 错误: 编码 GBK 的不可映射字符 (0x82)
* 鈹? 鈹? 鈹? 鈹? 鈹斺攢鈹? ValidatorUtils.class
^
D:\TwinklingLiftWorks\git\public\native-build-tools\native-maven-plugin\src\main\java\org\graalvm\buildtools\maven\sbom\ArtifactAdapterResolver.java:264: 错误: 编码 GBK 的不可映射字符 (0x82)
* 鈹? 鈹? 鈹? 鈹? 鈹斺攢鈹? ValidatorUtils.class
^
D:\TwinklingLiftWorks\git\public\native-build-tools\native-maven-plugin\src\main\java\org\graalvm\buildtools\maven\sbom\ArtifactAdapterResolver.java:264: 错误: 编码 GBK 的不可映射字符 (0x82)
* 鈹? 鈹? 鈹? 鈹? 鈹斺攢鈹? ValidatorUtils.class
^
D:\TwinklingLiftWorks\git\public\native-build-tools\native-maven-plugin\src\main\java\org\graalvm\buildtools\maven\sbom\ArtifactAdapterResolver.java:264: 错误: 编码 GBK 的不可映射字符 (0x80)
* 鈹? 鈹? 鈹? 鈹? 鈹斺攢鈹? ValidatorUtils.class
^
D:\TwinklingLiftWorks\git\public\native-build-tools\native-maven-plugin\src\main\java\org\graalvm\buildtools\maven\sbom\ArtifactAdapterResolver.java:265: 错误: 编码 GBK 的不可映射字符 (0x82)
* 鈹? 鈹? 鈹? 鈹溾攢鈹? util/
^
D:\TwinklingLiftWorks\git\public\native-build-tools\native-maven-plugin\src\main\java\org\graalvm\buildtools\maven\sbom\ArtifactAdapterResolver.java:265: 错误: 编码 GBK 的不可映射字符 (0x82)
* 鈹? 鈹? 鈹? 鈹溾攢鈹? util/
^
D:\TwinklingLiftWorks\git\public\native-build-tools\native-maven-plugin\src\main\java\org\graalvm\buildtools\maven\sbom\ArtifactAdapterResolver.java:265: 错误: 编码 GBK 的不可映射字符 (0x82)
* 鈹? 鈹? 鈹? 鈹溾攢鈹? util/
^
D:\TwinklingLiftWorks\git\public\native-build-tools\native-maven-plugin\src\main\java\org\graalvm\buildtools\maven\sbom\ArtifactAdapterResolver.java:265: 错误: 编码 GBK 的不可映射字符 (0x80)
* 鈹? 鈹? 鈹? 鈹溾攢鈹? util/
^
D:\TwinklingLiftWorks\git\public\native-build-tools\native-maven-plugin\src\main\java\org\graalvm\buildtools\maven\sbom\ArtifactAdapterResolver.java:266: 错误: 编码 GBK 的不可映射字符 (0x82)
* 鈹? 鈹? 鈹? 鈹? 鈹斺攢鈹? Flags.class
^
D:\TwinklingLiftWorks\git\public\native-build-tools\native-maven-plugin\src\main\java\org\graalvm\buildtools\maven\sbom\ArtifactAdapterResolver.java:266: 错误: 编码 GBK 的不可映射字符 (0x82)
* 鈹? 鈹? 鈹? 鈹? 鈹斺攢鈹? Flags.class
^
D:\TwinklingLiftWorks\git\public\native-build-tools\native-maven-plugin\src\main\java\org\graalvm\buildtools\maven\sbom\ArtifactAdapterResolver.java:266: 错误: 编码 GBK 的不可映射字符 (0x82)
* 鈹? 鈹? 鈹? 鈹? 鈹斺攢鈹? Flags.class
^
D:\TwinklingLiftWorks\git\public\native-build-tools\native-maven-plugin\src\main\java\org\graalvm\buildtools\maven\sbom\ArtifactAdapterResolver.java:266: 错误: 编码 GBK 的不可映射字符 (0x82)
* 鈹? 鈹? 鈹? 鈹? 鈹斺攢鈹? Flags.class
^
D:\TwinklingLiftWorks\git\public\native-build-tools\native-maven-plugin\src\main\java\org\graalvm\buildtools\maven\sbom\ArtifactAdapterResolver.java:266: 错误: 编码 GBK 的不可映射字符 (0x80)
* 鈹? 鈹? 鈹? 鈹? 鈹斺攢鈹? Flags.class
^
D:\TwinklingLiftWorks\git\public\native-build-tools\native-maven-plugin\src\main\java\org\graalvm\buildtools\maven\sbom\ArtifactAdapterResolver.java:267: 错误: 编码 GBK 的不可映射字符 (0x82)
* 鈹? 鈹? 鈹溾攢鈹? digester/
^
D:\TwinklingLiftWorks\git\public\native-build-tools\native-maven-plugin\src\main\java\org\graalvm\buildtools\maven\sbom\ArtifactAdapterResolver.java:267: 错误: 编码 GBK 的不可映射字符 (0x82)
* 鈹? 鈹? 鈹溾攢鈹? digester/
^
D:\TwinklingLiftWorks\git\public\native-build-tools\native-maven-plugin\src\main\java\org\graalvm\buildtools\maven\sbom\ArtifactAdapterResolver.java:267: 错误: 编码 GBK 的不可映射字符 (0x80)
* 鈹? 鈹? 鈹溾攢鈹? digester/
^
D:\TwinklingLiftWorks\git\public\native-build-tools\native-maven-plugin\src\main\java\org\graalvm\buildtools\maven\sbom\ArtifactAdapterResolver.java:268: 错误: 编码 GBK 的不可映射字符 (0x82)
* 鈹? 鈹? 鈹? 鈹溾攢鈹? plugins/
^
D:\TwinklingLiftWorks\git\public\native-build-tools\native-maven-plugin\src\main\java\org\graalvm\buildtools\maven\sbom\ArtifactAdapterResolver.java:268: 错误: 编码 GBK 的不可映射字符 (0x82)
* 鈹? 鈹? 鈹? 鈹溾攢鈹? plugins/
^
D:\TwinklingLiftWorks\git\public\native-build-tools\native-maven-plugin\src\main\java\org\graalvm\buildtools\maven\sbom\ArtifactAdapterResolver.java:268: 错误: 编码 GBK 的不可映射字符 (0x82)
* 鈹? 鈹? 鈹? 鈹溾攢鈹? plugins/
^
D:\TwinklingLiftWorks\git\public\native-build-tools\native-maven-plugin\src\main\java\org\graalvm\buildtools\maven\sbom\ArtifactAdapterResolver.java:268: 错误: 编码 GBK 的不可映射字符 (0x80)
* 鈹? 鈹? 鈹? 鈹溾攢鈹? plugins/
^
D:\TwinklingLiftWorks\git\public\native-build-tools\native-maven-plugin\src\main\java\org\graalvm\buildtools\maven\sbom\ArtifactAdapterResolver.java:269: 错误: 编码 GBK 的不可映射字符 (0x82)
* 鈹? 鈹? 鈹? 鈹? 鈹斺攢鈹? strategies/
^
D:\TwinklingLiftWorks\git\public\native-build-tools\native-maven-plugin\src\main\java\org\graalvm\buildtools\maven\sbom\ArtifactAdapterResolver.java:269: 错误: 编码 GBK 的不可映射字符 (0x82)
* 鈹? 鈹? 鈹? 鈹? 鈹斺攢鈹? strategies/
^
D:\TwinklingLiftWorks\git\public\native-build-tools\native-maven-plugin\src\main\java\org\graalvm\buildtools\maven\sbom\ArtifactAdapterResolver.java:269: 错误: 编码 GBK 的不可映射字符 (0x82)
* 鈹? 鈹? 鈹? 鈹? 鈹斺攢鈹? strategies/
^
D:\TwinklingLiftWorks\git\public\native-build-tools\native-maven-plugin\src\main\java\org\graalvm\buildtools\maven\sbom\ArtifactAdapterResolver.java:269: 错误: 编码 GBK 的不可映射字符 (0x82)
* 鈹? 鈹? 鈹? 鈹? 鈹斺攢鈹? strategies/
^
D:\TwinklingLiftWorks\git\public\native-build-tools\native-maven-plugin\src\main\java\org\graalvm\buildtools\maven\sbom\ArtifactAdapterResolver.java:269: 错误: 编码 GBK 的不可映射字符 (0x80)
* 鈹? 鈹? 鈹? 鈹? 鈹斺攢鈹? strategies/
^
D:\TwinklingLiftWorks\git\public\native-build-tools\native-maven-plugin\src\main\java\org\graalvm\buildtools\maven\sbom\ArtifactAdapterResolver.java:270: 错误: 编码 GBK 的不可映射字符 (0x82)
* 鈹? 鈹? 鈹? 鈹? 鈹斺攢鈹? DigesterPlugin.class
^
D:\TwinklingLiftWorks\git\public\native-build-tools\native-maven-plugin\src\main\java\org\graalvm\buildtools\maven\sbom\ArtifactAdapterResolver.java:270: 错误: 编码 GBK 的不可映射字符 (0x82)
* 鈹? 鈹? 鈹? 鈹? 鈹斺攢鈹? DigesterPlugin.class
^
D:\TwinklingLiftWorks\git\public\native-build-tools\native-maven-plugin\src\main\java\org\graalvm\buildtools\maven\sbom\ArtifactAdapterResolver.java:270: 错误: 编码 GBK 的不可映射字符 (0x82)
* 鈹? 鈹? 鈹? 鈹? 鈹斺攢鈹? DigesterPlugin.class
^
D:\TwinklingLiftWorks\git\public\native-build-tools\native-maven-plugin\src\main\java\org\graalvm\buildtools\maven\sbom\ArtifactAdapterResolver.java:270: 错误: 编码 GBK 的不可映射字符 (0x82)
* 鈹? 鈹? 鈹? 鈹? 鈹斺攢鈹? DigesterPlugin.class
^
D:\TwinklingLiftWorks\git\public\native-build-tools\native-maven-plugin\src\main\java\org\graalvm\buildtools\maven\sbom\ArtifactAdapterResolver.java:270: 错误: 编码 GBK 的不可映射字符 (0x80)
* 鈹? 鈹? 鈹? 鈹? 鈹斺攢鈹? DigesterPlugin.class
^
D:\TwinklingLiftWorks\git\public\native-build-tools\native-maven-plugin\src\main\java\org\graalvm\buildtools\maven\sbom\ArtifactAdapterResolver.java:271: 错误: 编码 GBK 的不可映射字符 (0x80)
* 鈹溾攢鈹? json/
^
D:\TwinklingLiftWorks\git\public\native-build-tools\native-maven-plugin\src\main\java\org\graalvm\buildtools\maven\sbom\ArtifactAdapterResolver.java:272: 错误: 编码 GBK 的不可映射字符 (0x82)
* 鈹? 鈹斺攢鈹? org/
^
D:\TwinklingLiftWorks\git\public\native-build-tools\native-maven-plugin\src\main\java\org\graalvm\buildtools\maven\sbom\ArtifactAdapterResolver.java:272: 错误: 编码 GBK 的不可映射字符 (0x80)
* 鈹? 鈹斺攢鈹? org/
^
D:\TwinklingLiftWorks\git\public\native-build-tools\native-maven-plugin\src\main\java\org\graalvm\buildtools\maven\sbom\ArtifactAdapterResolver.java:273: 错误: 编码 GBK 的不可映射字符 (0x82)
* 鈹? 鈹斺攢鈹? json/
^
D:\TwinklingLiftWorks\git\public\native-build-tools\native-maven-plugin\src\main\java\org\graalvm\buildtools\maven\sbom\ArtifactAdapterResolver.java:273: 错误: 编码 GBK 的不可映射字符 (0x80)
* 鈹? 鈹斺攢鈹? json/
^
D:\TwinklingLiftWorks\git\public\native-build-tools\native-maven-plugin\src\main\java\org\graalvm\buildtools\maven\sbom\ArtifactAdapterResolver.java:274: 错误: 编码 GBK 的不可映射字符 (0x82)
* 鈹? 鈹斺攢鈹? JSONObject.class
^
D:\TwinklingLiftWorks\git\public\native-build-tools\native-maven-plugin\src\main\java\org\graalvm\buildtools\maven\sbom\ArtifactAdapterResolver.java:274: 错误: 编码 GBK 的不可映射字符 (0x80)
* 鈹? 鈹斺攢鈹? JSONObject.class
^
52 个错误
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':native-maven-plugin:javadoc'.
> Javadoc generation failed. Generated Javadoc options file (useful for troubleshooting): 'D:\TwinklingLiftWorks\git\public\native-build-tools\native-maven-plugin\build\tmp\javadoc\javadoc.options'
* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
> Get more help at https://help.gradle.org.
BUILD FAILED in 2s
126 actionable tasks: 18 executed, 108 up-to-date
System Info (please complete the following information):
- OS: [e.g.
Windows
]Windows
- GraalVM Version [e.g.
22.0 CE
]CE For JDK 17.0.9
- Java Version [e.g.
17
]17
- Plugin version [e.g.
native-gradle-plugin:0.9.10
]native-gradle-plugin:0.11.0-SNAPSHOT
Additional context
Add any other context about the problem here.
- Just add the following to the
native-maven-plugin/build.gradle.kts
file to fix it.
tasks {
withType<Javadoc>().configureEach { options.encoding = "UTF-8" }
}
- Considering the strange effects of Add encoding to JavaPluginExtension gradle/gradle#12538 and Enable UTF-8 by default gradle/gradle#16763 , I would say that if the minimum JDK compilation version of NBT is increased to JDK 18 one day, there is no need to add the above code. But the problem is that Gradle seems to actively hard-code something related to the system default character set.