[ 
https://issues.apache.org/jira/browse/MCOMPILER-480?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17622590#comment-17622590
 ] 

Vasiliy Kudriavtsev commented on MCOMPILER-480:
-----------------------------------------------

I am getting the same problem, but on Windows (with russian locale)

Downgrading to MCP 3.8.1 makes the problem go away

 

[INFO] --- maven-compiler-plugin:3.10.1:testCompile (default-testCompile) @ 
snakeyaml ---
[DEBUG] Configuring mojo 
org.apache.maven.plugins:maven-compiler-plugin:3.10.1:testCompile from plugin 
realm ClassRealm[plugin>org.apache.maven.plugins:maven-compiler-plugin:3.10.1, 
parent: jdk.internal.loader.ClassLoaders$AppClassLoader@5a2e4553]
[DEBUG] Configuring mojo 
'org.apache.maven.plugins:maven-compiler-plugin:3.10.1:testCompile' with basic 
configurator -->[DEBUG]   (f) basedir = c:\dev\snakeyaml
[DEBUG]   (f) buildDirectory = c:\dev\snakeyaml\target
[DEBUG]   (f) compileSourceRoots = [c:\dev\snakeyaml\src\test\java]
[DEBUG]   (f) compilerId = javac
[DEBUG]   (f) createMissingPackageInfoClass = true
[DEBUG]   (f) debug = true
[DEBUG]   (f) debugFileName = javac-test
[DEBUG]   (f) enablePreview = false
[DEBUG]   (f) encoding = UTF-8
[DEBUG]   (f) failOnError = true
[DEBUG]   (f) failOnWarning = false
[DEBUG]   (f) forceJavacCompilerUse = false
[DEBUG]   (f) fork = false
[DEBUG]   (f) generatedTestSourcesDirectory = 
c:\dev\snakeyaml\target\generated-test-sources\test-annotations
[DEBUG]   (f) mojoExecution = 
org.apache.maven.plugins:maven-compiler-plugin:3.10.1:testCompile \{execution: 
default-testCompile}
[DEBUG]   (f) optimize = false
[DEBUG]   (f) outputDirectory = c:\dev\snakeyaml\target\test-classes
[DEBUG]   (f) parameters = false
[DEBUG]   (f) project = MavenProject: org.yaml:snakeyaml:1.34-SNAPSHOT @ 
c:\dev\snakeyaml\pom.xml
[DEBUG]   (f) session = org.apache.maven.execution.MavenSession@6bf570c
[DEBUG]   (f) showDeprecation = false
[DEBUG]   (f) showWarnings = false
[DEBUG]   (f) skipMultiThreadWarning = false
[DEBUG]   (f) source = 7
[DEBUG]   (f) staleMillis = 0
[DEBUG]   (s) target = 7
[DEBUG]   (f) testPath = [c:\dev\snakeyaml\target\test-classes, 
c:\dev\snakeyaml\target\classes, 
C:\m2repo\repository\junit\junit\4.13.2\junit-4.13.2.jar, 
C:\m2repo\repository\org\hamcrest\hamcrest-core\1.3\hamcrest-core-1.3.jar, 
C:\m2repo\repository\org\apache\velocity\velocity-engine-core\2.3\velocity-engine-core-2.3.jar,
 
C:\m2repo\repository\org\apache\commons\commons-lang3\3.11\commons-lang3-3.11.jar,
 C:\m2repo\repository\org\slf4j\slf4j-api\1.7.30\slf4j-api-1.7.30.jar, 
C:\m2repo\repository\joda-time\joda-time\2.11.1\joda-time-2.11.1.jar, 
C:\m2repo\repository\org\projectlombok\lombok\1.18.24\lombok-1.18.24.jar]
[DEBUG]   (f) testSource = 8
[DEBUG]   (f) testTarget = 8
[DEBUG]   (f) useIncrementalCompilation = true
[DEBUG]   (f) verbose = false
[DEBUG] -- end configuration --
[DEBUG] Using compiler 'javac'.
[DEBUG] Adding c:\dev\snakeyaml\target\generated-test-sources\test-annotations 
to test-compile source roots:
  c:\dev\snakeyaml\src\test\java
[DEBUG] New test-compile source roots:
  c:\dev\snakeyaml\src\test\java
  c:\dev\snakeyaml\target\generated-test-sources\test-annotations
[DEBUG] CompilerReuseStrategy: reuseCreated
[DEBUG] useIncrementalCompilation enabled
[DEBUG] New dependency detected: c:\dev\snakeyaml\target\classes
[INFO] Changes detected - recompiling the module!
[DEBUG] Classpath:
[DEBUG]  c:\dev\snakeyaml\target\test-classes
[DEBUG]  c:\dev\snakeyaml\target\classes
[DEBUG]  C:\m2repo\repository\junit\junit\4.13.2\junit-4.13.2.jar
[DEBUG]  
C:\m2repo\repository\org\hamcrest\hamcrest-core\1.3\hamcrest-core-1.3.jar
[DEBUG]  
C:\m2repo\repository\org\apache\velocity\velocity-engine-core\2.3\velocity-engine-core-2.3.jar
[DEBUG]  
C:\m2repo\repository\org\apache\commons\commons-lang3\3.11\commons-lang3-3.11.jar
[DEBUG]  C:\m2repo\repository\org\slf4j\slf4j-api\1.7.30\slf4j-api-1.7.30.jar
[DEBUG]  C:\m2repo\repository\joda-time\joda-time\2.11.1\joda-time-2.11.1.jar
[DEBUG]  
C:\m2repo\repository\org\projectlombok\lombok\1.18.24\lombok-1.18.24.jar
[DEBUG] Source roots:
[DEBUG]  c:\dev\snakeyaml\src\test\java
[DEBUG]  c:\dev\snakeyaml\target\generated-test-sources\test-annotations
[DEBUG] Command line options:
[DEBUG] -d c:\dev\snakeyaml\target\test-classes -classpath 
c:\dev\snakeyaml\target\test-classes;c:\dev\snakeyaml\target\classes;C:\m2repo\repository\junit\junit\4.13.2\junit-4.13.2.jar;C:\m2repo\repository\org\hamcrest\hamcrest-core\1.3\hamcrest-core-1.3.jar;C:\m2repo\repository\org\apache\velocity\velocity-engine-core\2.3\velocity-engine-core-2.3.jar;C:\m2repo\repository\org\apache\commons\commons-lang3\3.11\commons-lang3-3.11.jar;C:\m2repo\repository\org\slf4j\slf4j-api\1.7.30\slf4j-api-1.7.30.jar;C:\m2repo\repository\joda-time\joda-time\2.11.1\joda-time-2.11.1.jar;C:\m2repo\repository\org\projectlombok\lombok\1.18.24\lombok-1.18.24.jar;
 -sourcepath 
c:\dev\snakeyaml\src\test\java;c:\dev\snakeyaml\target\generated-test-sources\test-annotations;
 -s c:\dev\snakeyaml\target\generated-test-sources\test-annotations -g -nowarn 
-target 8 -source 8 -encoding UTF-8
[DEBUG] incrementalBuildHelper#beforeRebuildExecution
[INFO] Compiling 513 source files to c:\dev\snakeyaml\target\test-classes
[DEBUG] incrementalBuildHelper#afterRebuildExecution
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  9.582 s
[INFO] Finished at: 2022-10-22T11:54:03+03:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal 
org.apache.maven.plugins:maven-compiler-plugin:3.10.1:testCompile 
(default-testCompile) on project snakeyaml: Error while storing the mojo 
status: Input length = 1 -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal 
org.apache.maven.plugins:maven-compiler-plugin:3.10.1:testCompile 
(default-testCompile) on project snakeyaml: Error while storing the mojo status
        at 
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:215)
        at 
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:156)
        at 
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:148)
        at 
org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:117)
        at 
org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:81)
        at 
org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:56)
        at 
org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:305)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:192)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:105)
        at org.apache.maven.cli.MavenCli.execute(MavenCli.java:972)
        at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:293)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:196)
        at 
java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at 
java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at 
java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.base/java.lang.reflect.Method.invoke(Method.java:566)
        at 
org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:282)
        at 
org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:225)
        at 
org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:406)
        at 
org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:347)
Caused by: org.apache.maven.plugin.MojoExecutionException: Error while storing 
the mojo status
        at 
org.apache.maven.shared.incremental.IncrementalBuildHelper.afterRebuildExecution(IncrementalBuildHelper.java:338)
        at 
org.apache.maven.plugin.compiler.AbstractCompilerMojo.execute(AbstractCompilerMojo.java:1244)
        at 
org.apache.maven.plugin.compiler.TestCompilerMojo.execute(TestCompilerMojo.java:183)
        at 
org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:137)
        at 
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:210)
        ... 20 common frames omitted
Caused by: java.nio.charset.UnmappableCharacterException: Input length = 1
        at 
java.base/java.nio.charset.CoderResult.throwException(CoderResult.java:275)
        at java.base/sun.nio.cs.StreamEncoder.implWrite(StreamEncoder.java:306)
        at java.base/sun.nio.cs.StreamEncoder.implWrite(StreamEncoder.java:281)
        at java.base/sun.nio.cs.StreamEncoder.write(StreamEncoder.java:125)
        at 
java.base/java.io.OutputStreamWriter.write(OutputStreamWriter.java:208)
        at java.base/java.io.BufferedWriter.flushBuffer(BufferedWriter.java:120)
        at java.base/java.io.BufferedWriter.write(BufferedWriter.java:233)
        at java.base/java.io.Writer.write(Writer.java:249)
        at 
org.apache.maven.shared.utils.io.FileUtils.fileWriteArray(FileUtils.java:460)
        at 
org.apache.maven.shared.utils.io.FileUtils.fileWriteArray(FileUtils.java:437)
        at 
org.apache.maven.shared.incremental.IncrementalBuildHelper.afterRebuildExecution(IncrementalBuildHelper.java:334)
        ... 24 common frames omitted
        Suppressed: java.nio.charset.UnmappableCharacterException: Input length 
= 1
                at 
java.base/java.nio.charset.CoderResult.throwException(CoderResult.java:275)
                at 
java.base/sun.nio.cs.StreamEncoder.implWrite(StreamEncoder.java:306)
                at 
java.base/sun.nio.cs.StreamEncoder.implWrite(StreamEncoder.java:281)
                at 
java.base/sun.nio.cs.StreamEncoder.write(StreamEncoder.java:125)
                at 
java.base/java.io.OutputStreamWriter.write(OutputStreamWriter.java:208)
                at 
java.base/java.io.BufferedWriter.flushBuffer(BufferedWriter.java:120)
                at 
java.base/java.io.BufferedWriter.close(BufferedWriter.java:268)
                at 
org.apache.maven.shared.utils.io.FileUtils.fileWriteArray(FileUtils.java:466)
                ... 26 common frames omitted
[ERROR]
[ERROR]
[ERROR] For more information about the errors and possible solutions, please 
read the following articles:
[ERROR] [Help 1] 
http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException

 

> Running om macOS Monterey produces an error
> -------------------------------------------
>
>                 Key: MCOMPILER-480
>                 URL: https://issues.apache.org/jira/browse/MCOMPILER-480
>             Project: Maven Compiler Plugin
>          Issue Type: Bug
>    Affects Versions: 3.9.0
>         Environment: macOS 12.1 Monterey
>            Reporter: Michal Sladek
>            Assignee: Olivier Lamy
>            Priority: Major
>             Fix For: waiting-for-feedback
>
>
> We get the following error building our project with MCP 3.9.0 on 12.1 
> Morterey macOS (verified on 2 other machines).
> Running on maven 3.8.3 and 3.8.4.
> The problem disappears when downgrading to 3.8.1. We haven't observed this 
> issue on ubuntu os neither windows machines. 
> {code:java}
> [ERROR] Failed to execute goal 
> org.apache.maven.plugins:maven-compiler-plugin:3.9.0:testCompile 
> (default-testCompile) on project dokgen: Error while storing the mojo status: 
> Input length = 1 -> [Help 1]
> org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute 
> goal org.apache.maven.plugins:maven-compiler-plugin:3.9.0:testCompile 
> (default-testCompile) on project fp-dokgen: Error while storing the mojo 
> status
>     at org.apache.maven.lifecycle.internal.MojoExecutor.execute 
> (MojoExecutor.java:215)
>     at org.apache.maven.lifecycle.internal.MojoExecutor.execute 
> (MojoExecutor.java:156)
>     at org.apache.maven.lifecycle.internal.MojoExecutor.execute 
> (MojoExecutor.java:148)
>     at 
> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject 
> (LifecycleModuleBuilder.java:117)
>     at 
> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject 
> (LifecycleModuleBuilder.java:81)
>     at 
> org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build
>  (SingleThreadedBuilder.java:56)
>     at org.apache.maven.lifecycle.internal.LifecycleStarter.execute 
> (LifecycleStarter.java:128)
>     at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305)
>     at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)
>     at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)
>     at org.apache.maven.cli.MavenCli.execute (MavenCli.java:972)
>     at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:293)
>     at org.apache.maven.cli.MavenCli.main (MavenCli.java:196)
>     at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
>     at jdk.internal.reflect.NativeMethodAccessorImpl.invoke 
> (NativeMethodAccessorImpl.java:62)
>     at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke 
> (DelegatingMethodAccessorImpl.java:43)
>     at java.lang.reflect.Method.invoke (Method.java:566)
>     at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced 
> (Launcher.java:282)
>     at org.codehaus.plexus.classworlds.launcher.Launcher.launch 
> (Launcher.java:225)
>     at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode 
> (Launcher.java:406)
>     at org.codehaus.plexus.classworlds.launcher.Launcher.main 
> (Launcher.java:347)
> Caused by: org.apache.maven.plugin.MojoExecutionException: Error while 
> storing the mojo status
>     at 
> org.apache.maven.shared.incremental.IncrementalBuildHelper.afterRebuildExecution
>  (IncrementalBuildHelper.java:338)
>     at org.apache.maven.plugin.compiler.AbstractCompilerMojo.execute 
> (AbstractCompilerMojo.java:1191)
>     at org.apache.maven.plugin.compiler.TestCompilerMojo.execute 
> (TestCompilerMojo.java:175)
>     at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo 
> (DefaultBuildPluginManager.java:137)
>     at org.apache.maven.lifecycle.internal.MojoExecutor.execute 
> (MojoExecutor.java:210)
>     at org.apache.maven.lifecycle.internal.MojoExecutor.execute 
> (MojoExecutor.java:156)
>     at org.apache.maven.lifecycle.internal.MojoExecutor.execute 
> (MojoExecutor.java:148)
>     at 
> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject 
> (LifecycleModuleBuilder.java:117)
>     at 
> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject 
> (LifecycleModuleBuilder.java:81)
>     at 
> org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build
>  (SingleThreadedBuilder.java:56)
>     at org.apache.maven.lifecycle.internal.LifecycleStarter.execute 
> (LifecycleStarter.java:128)
>     at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305)
>     at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)
>     at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)
>     at org.apache.maven.cli.MavenCli.execute (MavenCli.java:972)
>     at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:293)
>     at org.apache.maven.cli.MavenCli.main (MavenCli.java:196)
>     at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
>     at jdk.internal.reflect.NativeMethodAccessorImpl.invoke 
> (NativeMethodAccessorImpl.java:62)
>     at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke 
> (DelegatingMethodAccessorImpl.java:43)
>     at java.lang.reflect.Method.invoke (Method.java:566)
>     at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced 
> (Launcher.java:282)
>     at org.codehaus.plexus.classworlds.launcher.Launcher.launch 
> (Launcher.java:225)
>     at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode 
> (Launcher.java:406)
>     at org.codehaus.plexus.classworlds.launcher.Launcher.main 
> (Launcher.java:347)
> Caused by: java.nio.charset.UnmappableCharacterException: Input length = 1
>     at java.nio.charset.CoderResult.throwException (CoderResult.java:275)
>     at sun.nio.cs.StreamEncoder.implWrite (StreamEncoder.java:306)
>     at sun.nio.cs.StreamEncoder.implWrite (StreamEncoder.java:281)
>     at sun.nio.cs.StreamEncoder.write (StreamEncoder.java:125)
>     at java.io.OutputStreamWriter.write (OutputStreamWriter.java:211)
>     at java.io.BufferedWriter.flushBuffer (BufferedWriter.java:120)
>     at java.io.BufferedWriter.close (BufferedWriter.java:268)
>     at org.apache.maven.shared.utils.io.FileUtils.fileWriteArray 
> (FileUtils.java:466)
>     at org.apache.maven.shared.utils.io.FileUtils.fileWriteArray 
> (FileUtils.java:437)
>     at 
> org.apache.maven.shared.incremental.IncrementalBuildHelper.afterRebuildExecution
>  (IncrementalBuildHelper.java:334)
>     at org.apache.maven.plugin.compiler.AbstractCompilerMojo.execute 
> (AbstractCompilerMojo.java:1191)
>     at org.apache.maven.plugin.compiler.TestCompilerMojo.execute 
> (TestCompilerMojo.java:175)
>     at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo 
> (DefaultBuildPluginManager.java:137)
>     at org.apache.maven.lifecycle.internal.MojoExecutor.execute 
> (MojoExecutor.java:210)
>     at org.apache.maven.lifecycle.internal.MojoExecutor.execute 
> (MojoExecutor.java:156)
>     at org.apache.maven.lifecycle.internal.MojoExecutor.execute 
> (MojoExecutor.java:148)
>     at 
> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject 
> (LifecycleModuleBuilder.java:117)
>     at 
> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject 
> (LifecycleModuleBuilder.java:81)
>     at 
> org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build
>  (SingleThreadedBuilder.java:56)
>     at org.apache.maven.lifecycle.internal.LifecycleStarter.execute 
> (LifecycleStarter.java:128)
>     at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305)
>     at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)
>     at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)
>     at org.apache.maven.cli.MavenCli.execute (MavenCli.java:972)
>     at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:293)
>     at org.apache.maven.cli.MavenCli.main (MavenCli.java:196)
>     at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
>     at jdk.internal.reflect.NativeMethodAccessorImpl.invoke 
> (NativeMethodAccessorImpl.java:62)
>     at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke 
> (DelegatingMethodAccessorImpl.java:43)
>     at java.lang.reflect.Method.invoke (Method.java:566)
>     at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced 
> (Launcher.java:282)
>     at org.codehaus.plexus.classworlds.launcher.Launcher.launch 
> (Launcher.java:225)
>     at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode 
> (Launcher.java:406)
>     at org.codehaus.plexus.classworlds.launcher.Launcher.main 
> (Launcher.java:347)
>  {code}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to