In recent development, I was facing following issue with one of old existing POM file ;
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on project frucorcoreconfiguration: Compilation failure: Compilation failure:
[ERROR] /C:/Kapil/HybrisDatahub/hybris-5.7.0.2/hybris/bin/ext-integration/datahub/extensions/sap/sources/sapcoreconfiguration-5.7.0.2-RC1-sources/src/main/java/com/hybris/datahub/frucorcoreconfiguration/service/impl/DefaultAutoPublishConfigurationService.java:[57,42] lambda expressions are not supported in -source 1.5
[ERROR] (use -source 8 or higher to enable lambda expressions)
Further to solve the issue following configuration in POM file helped me overcome this issue since Lambda expression support only present in JDK version 1.8 and later ;) :
Hope it helps to you guys as well .[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on project frucorcoreconfiguration: Compilation failure: Compilation failure:
[ERROR] /C:/Kapil/HybrisDatahub/hybris-5.7.0.2/hybris/bin/ext-integration/datahub/extensions/sap/sources/sapcoreconfiguration-5.7.0.2-RC1-sources/src/main/java/com/hybris/datahub/frucorcoreconfiguration/service/impl/DefaultAutoPublishConfigurationService.java:[57,42] lambda expressions are not supported in -source 1.5
[ERROR] (use -source 8 or higher to enable lambda expressions)
Further to solve the issue following configuration in POM file helped me overcome this issue since Lambda expression support only present in JDK version 1.8 and later ;) :
Cheers ,
Kapil
No comments:
Post a Comment
Thanks for your comment, will revert as soon as we read it.