jhipster / generator-jhipster

JHipster is a development platform to quickly generate, develop, & deploy modern web applications & microservice architectures.
https://www.jhipster.tech
Apache License 2.0
21.56k stars 4.02k forks source link

mvnw command throws Compilation failure #10239

Closed mrgenco closed 5 years ago

mrgenco commented 5 years ago
Overview of the issue

I'm trying to use JHipster for the first time and after running mvnw command, build fails with following stack trace. I don't understand if the error is related to JHipster or Maven. Note : I opened a stackoverflow entry for this one but a team member suggested me to open a github issue. https://stackoverflow.com/questions/57526801/


[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  8.217 s
[INFO] Finished at: 2019-08-17T09:26:54+03:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.1:compile (default-compile) on project samplejhipster: Compilation failure: Compilation failure:
[ERROR] /C:/Users/mehme/OneDrive/Masaüstü/samplejhipster/target/generated-sources/annotations/org/sample/blog/domain/User_.java:[29,39] unmappable character (0xDD) for encoding UTF-8
[ERROR] /C:/Users/mehme/OneDrive/Masaüstü/samplejhipster/target/generated-sources/annotations/org/sample/blog/domain/User_.java:[30,39] unmappable character (0xDD) for encoding UTF-8
[ERROR] /C:/Users/mehme/OneDrive/Masaüstü/samplejhipster/target/generated-sources/annotations/org/sample/blog/domain/User_.java:[30,43] unmappable character (0xDD) for encoding UTF-8
[ERROR] /C:/Users/mehme/OneDrive/Masaüstü/samplejhipster/target/generated-sources/annotations/org/sample/blog/domain/User_.java:[32,42] unmappable character (0xDD) for encoding UTF-8
[ERROR] /C:/Users/mehme/OneDrive/Masaüstü/samplejhipster/target/generated-sources/annotations/org/sample/blog/domain/User_.java:[32,44] unmappable character (0xDD) for encoding UTF-8
[ERROR] /C:/Users/mehme/OneDrive/Masaüstü/samplejhipster/target/generated-sources/annotations/org/sample/blog/domain/User_.java:[33,37] unmappable character (0xDD) for encoding UTF-8
[ERROR] /C:/Users/mehme/OneDrive/Masaüstü/samplejhipster/target/generated-sources/annotations/org/sample/blog/domain/User_.java:[36,36] unmappable character (0xDD) for encoding UTF-8
[ERROR] /C:/Users/mehme/OneDrive/Masaüstü/samplejhipster/target/generated-sources/annotations/org/sample/blog/domain/User_.java:[37,36] unmappable character (0xDD) for encoding UTF-8
[ERROR] /C:/Users/mehme/OneDrive/Masaüstü/samplejhipster/target/generated-sources/annotations/org/sample/blog/domain/User_.java:[38,39] unmappable character (0xDD) for encoding UTF-8
[ERROR] /C:/Users/mehme/OneDrive/Masaüstü/samplejhipster/target/generated-sources/annotations/org/sample/blog/domain/User_.java:[39,39] unmappable character (0xDD) for encoding UTF-8
[ERROR] /C:/Users/mehme/OneDrive/Masaüstü/samplejhipster/target/generated-sources/annotations/org/sample/blog/domain/AbstractAuditingEntity_.java:[19,44] unmappable character (0xDD) for encoding UTF-8
[ERROR] /C:/Users/mehme/OneDrive/Masaüstü/samplejhipster/target/generated-sources/annotations/org/sample/blog/domain/AbstractAuditingEntity_.java:[19,46] unmappable character (0xDD) for encoding UTF-8
[ERROR] /C:/Users/mehme/OneDrive/Masaüstü/samplejhipster/target/generated-sources/annotations/org/sample/blog/domain/AbstractAuditingEntity_.java:[20,44] unmappable character (0xDD) for encoding UTF-8
[ERROR] /C:/Users/mehme/OneDrive/Masaüstü/samplejhipster/target/generated-sources/annotations/org/sample/blog/domain/AbstractAuditingEntity_.java:[20,46] unmappable character (0xDD) for encoding UTF-8
[ERROR] /C:/Users/mehme/OneDrive/Masaüstü/samplejhipster/target/generated-sources/annotations/org/sample/blog/domain/PersistentAuditEvent_.java:[19,38] unmappable character (0xDD) for encoding UTF-8
[ERROR] /C:/Users/mehme/OneDrive/Masaüstü/samplejhipster/target/generated-sources/annotations/org/sample/blog/domain/PersistentAuditEvent_.java:[19,41] unmappable character (0xDD) for encoding UTF-8
[ERROR] /C:/Users/mehme/OneDrive/Masaüstü/samplejhipster/target/generated-sources/annotations/org/sample/blog/domain/PersistentAuditEvent_.java:[20,39] unmappable character (0xDD) for encoding UTF-8
[ERROR] /C:/Users/mehme/OneDrive/Masaüstü/samplejhipster/target/generated-sources/annotations/org/sample/blog/domain/PersistentAuditEvent_.java:[22,36] unmappable character (0xDD) for encoding UTF-8
[ERROR] /C:/Users/mehme/OneDrive/Masaüstü/samplejhipster/target/generated-sources/annotations/org/sample/blog/domain/PersistentAuditEvent_.java:[23,39] unmappable character (0xDD) for encoding UTF-8
[ERROR] /C:/Users/mehme/OneDrive/Masaüstü/samplejhipster/target/generated-sources/annotations/org/sample/blog/domain/User_.java:[29,39] illegal character: '\ufffd'
[ERROR] /C:/Users/mehme/OneDrive/Masaüstü/samplejhipster/target/generated-sources/annotations/org/sample/blog/domain/User_.java:[29,41] <identifier> expected
[ERROR] /C:/Users/mehme/OneDrive/Masaüstü/samplejhipster/target/generated-sources/annotations/org/sample/blog/domain/User_.java:[30,39] illegal character: '\ufffd'
[ERROR] /C:/Users/mehme/OneDrive/Masaüstü/samplejhipster/target/generated-sources/annotations/org/sample/blog/domain/User_.java:[30,43] illegal character: '\ufffd'
[ERROR] /C:/Users/mehme/OneDrive/Masaüstü/samplejhipster/target/generated-sources/annotations/org/sample/blog/domain/User_.java:[30,50] <identifier> expected
[ERROR] /C:/Users/mehme/OneDrive/Masaüstü/samplejhipster/target/generated-sources/annotations/org/sample/blog/domain/User_.java:[32,42] illegal character: '\ufffd'
[ERROR] /C:/Users/mehme/OneDrive/Masaüstü/samplejhipster/target/generated-sources/annotations/org/sample/blog/domain/User_.java:[32,44] illegal character: '\ufffd'
[ERROR] /C:/Users/mehme/OneDrive/Masaüstü/samplejhipster/target/generated-sources/annotations/org/sample/blog/domain/User_.java:[32,47] <identifier> expected
[ERROR] /C:/Users/mehme/OneDrive/Masaüstü/samplejhipster/target/generated-sources/annotations/org/sample/blog/domain/User_.java:[33,37] illegal character: '\ufffd'
[ERROR] /C:/Users/mehme/OneDrive/Masaüstü/samplejhipster/target/generated-sources/annotations/org/sample/blog/domain/User_.java:[33,46] <identifier> expected
[ERROR] /C:/Users/mehme/OneDrive/Masaüstü/samplejhipster/target/generated-sources/annotations/org/sample/blog/domain/User_.java:[36,36] illegal character: '\ufffd'
[ERROR] /C:/Users/mehme/OneDrive/Masaüstü/samplejhipster/target/generated-sources/annotations/org/sample/blog/domain/User_.java:[36,45] <identifier> expected
[ERROR] /C:/Users/mehme/OneDrive/Masaüstü/samplejhipster/target/generated-sources/annotations/org/sample/blog/domain/User_.java:[37,36] illegal character: '\ufffd'
[ERROR] /C:/Users/mehme/OneDrive/Masaüstü/samplejhipster/target/generated-sources/annotations/org/sample/blog/domain/User_.java:[37,38] <identifier> expected
[ERROR] /C:/Users/mehme/OneDrive/Masaüstü/samplejhipster/target/generated-sources/annotations/org/sample/blog/domain/User_.java:[38,39] illegal character: '\ufffd'
[ERROR] /C:/Users/mehme/OneDrive/Masaüstü/samplejhipster/target/generated-sources/annotations/org/sample/blog/domain/User_.java:[38,41] <identifier> expected
[ERROR] /C:/Users/mehme/OneDrive/Masaüstü/samplejhipster/target/generated-sources/annotations/org/sample/blog/domain/User_.java:[39,39] illegal character: '\ufffd'
[ERROR] /C:/Users/mehme/OneDrive/Masaüstü/samplejhipster/target/generated-sources/annotations/org/sample/blog/domain/User_.java:[39,45] <identifier> expected
[ERROR] /C:/Users/mehme/OneDrive/Masaüstü/samplejhipster/target/generated-sources/annotations/org/sample/blog/domain/AbstractAuditingEntity_.java:[19,44] illegal character: '\ufffd'
[ERROR] /C:/Users/mehme/OneDrive/Masaüstü/samplejhipster/target/generated-sources/annotations/org/sample/blog/domain/AbstractAuditingEntity_.java:[19,46] illegal character: '\ufffd'
[ERROR] /C:/Users/mehme/OneDrive/Masaüstü/samplejhipster/target/generated-sources/annotations/org/sample/blog/domain/AbstractAuditingEntity_.java:[19,54] <identifier> expected
[ERROR] /C:/Users/mehme/OneDrive/Masaüstü/samplejhipster/target/generated-sources/annotations/org/sample/blog/domain/AbstractAuditingEntity_.java:[20,44] illegal character: '\ufffd'
[ERROR] /C:/Users/mehme/OneDrive/Masaüstü/samplejhipster/target/generated-sources/annotations/org/sample/blog/domain/AbstractAuditingEntity_.java:[20,46] illegal character: '\ufffd'
[ERROR] /C:/Users/mehme/OneDrive/Masaüstü/samplejhipster/target/generated-sources/annotations/org/sample/blog/domain/AbstractAuditingEntity_.java:[20,52] <identifier> expected
[ERROR] /C:/Users/mehme/OneDrive/Masaüstü/samplejhipster/target/generated-sources/annotations/org/sample/blog/domain/PersistentAuditEvent_.java:[19,38] illegal character: '\ufffd'
[ERROR] /C:/Users/mehme/OneDrive/Masaüstü/samplejhipster/target/generated-sources/annotations/org/sample/blog/domain/PersistentAuditEvent_.java:[19,41] illegal character: '\ufffd'
[ERROR] /C:/Users/mehme/OneDrive/Masaüstü/samplejhipster/target/generated-sources/annotations/org/sample/blog/domain/PersistentAuditEvent_.java:[19,45] <identifier> expected
[ERROR] /C:/Users/mehme/OneDrive/Masaüstü/samplejhipster/target/generated-sources/annotations/org/sample/blog/domain/PersistentAuditEvent_.java:[20,39] illegal character: '\ufffd'
[ERROR] /C:/Users/mehme/OneDrive/Masaüstü/samplejhipster/target/generated-sources/annotations/org/sample/blog/domain/PersistentAuditEvent_.java:[20,52] <identifier> expected
[ERROR] /C:/Users/mehme/OneDrive/Masaüstü/samplejhipster/target/generated-sources/annotations/org/sample/blog/domain/PersistentAuditEvent_.java:[22,36] illegal character: '\ufffd'
[ERROR] /C:/Users/mehme/OneDrive/Masaüstü/samplejhipster/target/generated-sources/annotations/org/sample/blog/domain/PersistentAuditEvent_.java:[22,38] <identifier> expected
[ERROR] /C:/Users/mehme/OneDrive/Masaüstü/samplejhipster/target/generated-sources/annotations/org/sample/blog/domain/PersistentAuditEvent_.java:[23,39] illegal character: '\ufffd'
[ERROR] /C:/Users/mehme/OneDrive/Masaüstü/samplejhipster/target/generated-sources/annotations/org/sample/blog/domain/PersistentAuditEvent_.java:[23,52] <identifier> expected
[ERROR] -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.1:compile (default-compile) on project samplejhipster: Compilation failure
    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.MojoExecutor.executeForkedExecutions (MojoExecutor.java:355)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:200)
    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:956)
    at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:288)
    at org.apache.maven.cli.MavenCli.main (MavenCli.java:192)
    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:567)
    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)
    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:567)
    at org.apache.maven.wrapper.BootstrapMainStarter.start (BootstrapMainStarter.java:39)
    at org.apache.maven.wrapper.WrapperExecutor.execute (WrapperExecutor.java:122)
    at org.apache.maven.wrapper.MavenWrapperMain.main (MavenWrapperMain.java:61)
Caused by: org.apache.maven.plugin.compiler.CompilationFailureException: Compilation failure
    at org.apache.maven.plugin.compiler.AbstractCompilerMojo.execute (AbstractCompilerMojo.java:1220)
    at org.apache.maven.plugin.compiler.CompilerMojo.execute (CompilerMojo.java:187)
    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.MojoExecutor.executeForkedExecutions (MojoExecutor.java:355)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:200)
    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:956)
    at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:288)
    at org.apache.maven.cli.MavenCli.main (MavenCli.java:192)
    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:567)
    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)
    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:567)
    at org.apache.maven.wrapper.BootstrapMainStarter.start (BootstrapMainStarter.java:39)
    at org.apache.maven.wrapper.WrapperExecutor.execute (WrapperExecutor.java:122)
    at org.apache.maven.wrapper.MavenWrapperMain.main (MavenWrapperMain.java:61)
[ERROR]
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[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/MojoFailureException
Motivation for or Use Case

jhipster command generated project successfully. But without any changes to the generated code I'm getting Compilation failure on mvnw command. I also tried with jhipster6 demo app to see if there is something wrong with my setup but mvnw command failed with the same error. https://github.com/mraible/jhipster6-demo

JHipster Version(s)

v 6.1.2

JHipster configuration

Environment and Tools java version "1.8.0_211" Java(TM) SE Runtime Environment (build 1.8.0_211-b12) Java HotSpot(TM) 64-Bit Server VM (build 25.211-b12, mixed mode)

git version 2.21.0.windows.1

node: v10.15.3

npm: 6.10.1

yeoman: 3.1.0

Browsers and Operating System

Google Chrome 64 Bit 76.0.3809.100 Windows-10

pascalgrimaud commented 5 years ago

I don't think it's related to JHipster.

Your problem looks like related to a problem with encoding. Can you have a look at https://stackoverflow.com/questions/8978013/error-unmappable-character-for-encoding-utf8-during-maven-compilation and try different solutions plz ?

mrgenco commented 5 years ago

Ok I will try the solutions in the link and will be sharing the results

gmarziou commented 5 years ago

I noted that the errors are only in target/generated-sources which are the files generated by maven annotation processor. This might sound like a stupid question but have you ever compiled any maven project on this PC?

mrgenco commented 5 years ago

Yes I have other maven projects on my PC. They are working fine. I will be informing you as soon as I try encoding solutions. But I will probably need to change maven compiler plugin in pom.xml file as they re suggesting in the link which sounds like a problem with generated project.

pascalgrimaud commented 5 years ago

Another solution for you would be to use the JHipster DevBox : https://github.com/jhipster/jhipster-devbox

So it will confirm it comes from your environnement

mrgenco commented 5 years ago

I could manage to start generated project without using mvnw command but below steps. First I started the frontend project using npm start Then I started SpringBoot application using Eclipse IDE.

I changed the encoding to UTF-8 in maven plugin in pom.xml and Eclipse globally but mvnw command still fails with the same error. I didnt use mvnw command before in another project. I'm using Eclipse for compiling other maven projects. Since the generated application is working fine we can close the issue. Because it seems to me a problem with my global maven settings.

gmarziou commented 5 years ago

Have you tried to use globally installed mvn (if you have it) rather than local maven wrapper mvnw?

mrgenco commented 5 years ago

Yes I tried mvn command as well. The result is same.

gmarziou commented 5 years ago

Did you try to generate same project but with gradle ?

PierreBesson commented 5 years ago

/C:/Users/mehme/OneDrive/

This looks really suspicious to me. Why are your source/target files located in OneDrive which is a remote disk ? Can you try to put your project in your local disk.

mrgenco commented 5 years ago

I will try with gradle and on local disk and will be sharing the results. Thanks

mrgenco commented 5 years ago

The error is same on local disk(with mvnw and gradlew). And using gradlew command the stacktrace is below.

Exception is:
org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':compileJava'.
        at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter$3.accept(ExecuteActionsTaskExecuter.java:151)
        at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter$3.accept(ExecuteActionsTaskExecuter.java:148)
        at org.gradle.internal.Try$Failure.ifSuccessfulOrElse(Try.java:191)
        at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.execute(ExecuteActionsTaskExecuter.java:141)
        at org.gradle.api.internal.tasks.execution.ResolveBeforeExecutionStateTaskExecuter.execute(ResolveBeforeExecutionStateTaskExecuter.java:75)
        at org.gradle.api.internal.tasks.execution.ValidatingTaskExecuter.execute(ValidatingTaskExecuter.java:62)
        at org.gradle.api.internal.tasks.execution.SkipEmptySourceFilesTaskExecuter.execute(SkipEmptySourceFilesTaskExecuter.java:108)
        at org.gradle.api.internal.tasks.execution.ResolveBeforeExecutionOutputsTaskExecuter.execute(ResolveBeforeExecutionOutputsTaskExecuter.java:67)
        at org.gradle.api.internal.tasks.execution.ResolveAfterPreviousExecutionStateTaskExecuter.execute(ResolveAfterPreviousExecutionStateTaskExecuter.java:46)
        at org.gradle.api.internal.tasks.execution.CleanupStaleOutputsExecuter.execute(CleanupStaleOutputsExecuter.java:94)
        at org.gradle.api.internal.tasks.execution.FinalizePropertiesTaskExecuter.execute(FinalizePropertiesTaskExecuter.java:46)
        at org.gradle.api.internal.tasks.execution.ResolveTaskExecutionModeExecuter.execute(ResolveTaskExecutionModeExecuter.java:95)
        at org.gradle.api.internal.tasks.execution.SkipTaskWithNoActionsExecuter.execute(SkipTaskWithNoActionsExecuter.java:57)
        at org.gradle.api.internal.tasks.execution.SkipOnlyIfTaskExecuter.execute(SkipOnlyIfTaskExecuter.java:56)
        at org.gradle.api.internal.tasks.execution.CatchExceptionTaskExecuter.execute(CatchExceptionTaskExecuter.java:36)
        at org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter$1.executeTask(EventFiringTaskExecuter.java:73)
        at org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter$1.call(EventFiringTaskExecuter.java:52)
        at org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter$1.call(EventFiringTaskExecuter.java:49)
        at org.gradle.internal.operations.DefaultBuildOperationExecutor$CallableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:416)
        at org.gradle.internal.operations.DefaultBuildOperationExecutor$CallableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:406)
        at org.gradle.internal.operations.DefaultBuildOperationExecutor$1.execute(DefaultBuildOperationExecutor.java:165)
        at org.gradle.internal.operations.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:250)
        at org.gradle.internal.operations.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:158)
        at org.gradle.internal.operations.DefaultBuildOperationExecutor.call(DefaultBuildOperationExecutor.java:102)
        at org.gradle.internal.operations.DelegatingBuildOperationExecutor.call(DelegatingBuildOperationExecutor.java:36)
        at org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter.execute(EventFiringTaskExecuter.java:49)
        at org.gradle.execution.plan.LocalTaskNodeExecutor.execute(LocalTaskNodeExecutor.java:43)
        at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$InvokeNodeExecutorsAction.execute(DefaultTaskExecutionGraph.java:355)
        at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$InvokeNodeExecutorsAction.execute(DefaultTaskExecutionGraph.java:343)
        at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$BuildOperationAwareExecutionAction.execute(DefaultTaskExecutionGraph.java:336)
        at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$BuildOperationAwareExecutionAction.execute(DefaultTaskExecutionGraph.java:322)
        at org.gradle.execution.plan.DefaultPlanExecutor$ExecutorWorker$1.execute(DefaultPlanExecutor.java:134)
        at org.gradle.execution.plan.DefaultPlanExecutor$ExecutorWorker$1.execute(DefaultPlanExecutor.java:129)
        at org.gradle.execution.plan.DefaultPlanExecutor$ExecutorWorker.execute(DefaultPlanExecutor.java:202)
        at org.gradle.execution.plan.DefaultPlanExecutor$ExecutorWorker.executeNextNode(DefaultPlanExecutor.java:193)
        at org.gradle.execution.plan.DefaultPlanExecutor$ExecutorWorker.run(DefaultPlanExecutor.java:129)
        at org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:63)
        at org.gradle.internal.concurrent.ManagedExecutorImpl$1.run(ManagedExecutorImpl.java:46)
        at org.gradle.internal.concurrent.ThreadFactoryImpl$ManagedThreadRunnable.run(ThreadFactoryImpl.java:55)
Caused by: org.gradle.api.internal.tasks.compile.CompilationFailedException: Compilation failed; see the compiler error output for details.
        at org.gradle.api.internal.tasks.compile.JdkJavaCompiler.execute(JdkJavaCompiler.java:52)
        at org.gradle.api.internal.tasks.compile.JdkJavaCompiler.execute(JdkJavaCompiler.java:36)
        at org.gradle.api.internal.tasks.compile.NormalizingJavaCompiler.delegateAndHandleErrors(NormalizingJavaCompiler.java:100)
        at org.gradle.api.internal.tasks.compile.NormalizingJavaCompiler.execute(NormalizingJavaCompiler.java:52)
        at org.gradle.api.internal.tasks.compile.NormalizingJavaCompiler.execute(NormalizingJavaCompiler.java:38)
        at org.gradle.api.internal.tasks.compile.AnnotationProcessorDiscoveringCompiler.execute(AnnotationProcessorDiscoveringCompiler.java:51)
        at org.gradle.api.internal.tasks.compile.AnnotationProcessorDiscoveringCompiler.execute(AnnotationProcessorDiscoveringCompiler.java:37)
        at org.gradle.api.internal.tasks.compile.CleaningJavaCompilerSupport.execute(CleaningJavaCompilerSupport.java:39)
        at org.gradle.api.internal.tasks.compile.incremental.IncrementalCompilerFactory$2.execute(IncrementalCompilerFactory.java:110)
        at org.gradle.api.internal.tasks.compile.incremental.IncrementalCompilerFactory$2.execute(IncrementalCompilerFactory.java:106)
        at org.gradle.api.internal.tasks.compile.incremental.IncrementalResultStoringCompiler.execute(IncrementalResultStoringCompiler.java:60)
        at org.gradle.api.internal.tasks.compile.incremental.IncrementalResultStoringCompiler.execute(IncrementalResultStoringCompiler.java:44)
        at org.gradle.api.internal.tasks.compile.CompileJavaBuildOperationReportingCompiler$2.call(CompileJavaBuildOperationReportingCompiler.java:59)
        at org.gradle.api.internal.tasks.compile.CompileJavaBuildOperationReportingCompiler$2.call(CompileJavaBuildOperationReportingCompiler.java:51)
        at org.gradle.internal.operations.DefaultBuildOperationExecutor$CallableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:416)
        at org.gradle.internal.operations.DefaultBuildOperationExecutor$CallableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:406)
        at org.gradle.internal.operations.DefaultBuildOperationExecutor$1.execute(DefaultBuildOperationExecutor.java:165)
        at org.gradle.internal.operations.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:250)
        at org.gradle.internal.operations.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:158)
        at org.gradle.internal.operations.DefaultBuildOperationExecutor.call(DefaultBuildOperationExecutor.java:102)
        at org.gradle.internal.operations.DelegatingBuildOperationExecutor.call(DelegatingBuildOperationExecutor.java:36)
        at org.gradle.api.internal.tasks.compile.CompileJavaBuildOperationReportingCompiler.execute(CompileJavaBuildOperationReportingCompiler.java:51)
        at org.gradle.api.tasks.compile.JavaCompile.performCompilation(JavaCompile.java:154)
        at org.gradle.api.tasks.compile.JavaCompile.compile(JavaCompile.java:122)
        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 org.gradle.internal.reflect.JavaMethod.invoke(JavaMethod.java:103)
        at org.gradle.api.internal.project.taskfactory.IncrementalTaskInputsTaskAction.doExecute(IncrementalTaskInputsTaskAction.java:46)
        at org.gradle.api.internal.project.taskfactory.StandardTaskAction.execute(StandardTaskAction.java:41)
        at org.gradle.api.internal.project.taskfactory.AbstractIncrementalTaskAction.execute(AbstractIncrementalTaskAction.java:25)
        at org.gradle.api.internal.project.taskfactory.StandardTaskAction.execute(StandardTaskAction.java:28)
        at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter$5.run(ExecuteActionsTaskExecuter.java:404)
        at org.gradle.internal.operations.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:402)
        at org.gradle.internal.operations.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:394)
        at org.gradle.internal.operations.DefaultBuildOperationExecutor$1.execute(DefaultBuildOperationExecutor.java:165)
        at org.gradle.internal.operations.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:250)
        at org.gradle.internal.operations.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:158)
        at org.gradle.internal.operations.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:92)
        at org.gradle.internal.operations.DelegatingBuildOperationExecutor.run(DelegatingBuildOperationExecutor.java:31)
        at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeAction(ExecuteActionsTaskExecuter.java:393)
        at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:376)
        at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.access$200(ExecuteActionsTaskExecuter.java:80)
        at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter$TaskExecution.execute(ExecuteActionsTaskExecuter.java:213)
        at org.gradle.internal.execution.steps.ExecuteStep.lambda$execute$0(ExecuteStep.java:32)
        at org.gradle.internal.execution.steps.ExecuteStep.execute(ExecuteStep.java:32)
        at org.gradle.internal.execution.steps.ExecuteStep.execute(ExecuteStep.java:26)
        at org.gradle.internal.execution.steps.CleanupOutputsStep.execute(CleanupOutputsStep.java:58)
        at org.gradle.internal.execution.steps.CleanupOutputsStep.execute(CleanupOutputsStep.java:35)
        at org.gradle.internal.execution.steps.ResolveInputChangesStep.execute(ResolveInputChangesStep.java:48)
        at org.gradle.internal.execution.steps.ResolveInputChangesStep.execute(ResolveInputChangesStep.java:33)
        at org.gradle.internal.execution.steps.CancelExecutionStep.execute(CancelExecutionStep.java:39)
        at org.gradle.internal.execution.steps.TimeoutStep.executeWithoutTimeout(TimeoutStep.java:73)
        at org.gradle.internal.execution.steps.TimeoutStep.execute(TimeoutStep.java:54)
        at org.gradle.internal.execution.steps.CatchExceptionStep.execute(CatchExceptionStep.java:35)
        at org.gradle.internal.execution.steps.CreateOutputsStep.execute(CreateOutputsStep.java:51)
        at org.gradle.internal.execution.steps.SnapshotOutputsStep.execute(SnapshotOutputsStep.java:45)
        at org.gradle.internal.execution.steps.SnapshotOutputsStep.execute(SnapshotOutputsStep.java:31)
        at org.gradle.internal.execution.steps.CacheStep.executeWithoutCache(CacheStep.java:201)
        at org.gradle.internal.execution.steps.CacheStep.execute(CacheStep.java:70)
        at org.gradle.internal.execution.steps.CacheStep.execute(CacheStep.java:45)
        at org.gradle.internal.execution.steps.BroadcastChangingOutputsStep.execute(BroadcastChangingOutputsStep.java:49)
        at org.gradle.internal.execution.steps.StoreSnapshotsStep.execute(StoreSnapshotsStep.java:43)
        at org.gradle.internal.execution.steps.StoreSnapshotsStep.execute(StoreSnapshotsStep.java:32)
        at org.gradle.internal.execution.steps.RecordOutputsStep.execute(RecordOutputsStep.java:38)
        at org.gradle.internal.execution.steps.RecordOutputsStep.execute(RecordOutputsStep.java:24)
        at org.gradle.internal.execution.steps.SkipUpToDateStep.executeBecause(SkipUpToDateStep.java:96)
        at org.gradle.internal.execution.steps.SkipUpToDateStep.lambda$execute$0(SkipUpToDateStep.java:89)
        at org.gradle.internal.execution.steps.SkipUpToDateStep.execute(SkipUpToDateStep.java:54)
        at org.gradle.internal.execution.steps.SkipUpToDateStep.execute(SkipUpToDateStep.java:38)
        at org.gradle.internal.execution.steps.ResolveChangesStep.execute(ResolveChangesStep.java:77)
        at org.gradle.internal.execution.steps.ResolveChangesStep.execute(ResolveChangesStep.java:37)
        at org.gradle.internal.execution.steps.legacy.MarkSnapshottingInputsFinishedStep.execute(MarkSnapshottingInputsFinishedStep.java:36)
        at org.gradle.internal.execution.steps.legacy.MarkSnapshottingInputsFinishedStep.execute(MarkSnapshottingInputsFinishedStep.java:26)
        at org.gradle.internal.execution.steps.ResolveCachingStateStep.execute(ResolveCachingStateStep.java:90)
        at org.gradle.internal.execution.steps.ResolveCachingStateStep.execute(ResolveCachingStateStep.java:48)
        at org.gradle.internal.execution.impl.DefaultWorkExecutor.execute(DefaultWorkExecutor.java:33)
        at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.execute(ExecuteActionsTaskExecuter.java:120)
        ... 35 more
vishal423 commented 5 years ago

would it be possible to create a sample github repository that can be used to reproduce this?

gmarziou commented 5 years ago

So, now we know that this is not a maven specific problem as you reproduced it with gradle and that you are able to compile from Eclipse. Do you confirm that maven build works when launched from Eclipse?

I suspect something wrong with your shell environment. What do you use: cmd, powershell, git bash ?

mrgenco commented 5 years ago

Yes, I confirmed that maven build is working fine in Eclipse and I use cmd.

gmarziou commented 5 years ago

So, I think we won't be able to reproduce on our side because it's probably related to your environment and Turkish language. In the past, we have already seen issues with Liquibase and Turkish, only a Turkish developer was able to debug it.

Hopefully, you have a workaround for dev and for continuous integration you can probably use a server or service configured as "English" and maybe running on Linux rather than on Windows.

So I propose we close this issue and if you come back with some clues, we may re-open it.

PierreBesson commented 5 years ago

I'd also like to close the issue because it's very specific to your environment and we can't reproduce the bug. Thank you for providing all this info. Good luck for the future.