cancel
Showing results for 
Search instead for 
Did you mean: 

local setup commece cloud 2211 build failure groovyc

x1111111111
Explorer
0 Kudos
356

facing below error while setting up sap commerce cloud 2211 locally windows

 

[groovyc] org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed:
  [groovyc] General error during conversion: class groovy.transform.AnnotationCollectorMode cannot be cast to class groovy.transform.AnnotationCollectorMode (groovy.transform.AnnotationCollectorMode is in unnamed module of loader groovy.lang.GroovyClassLoader @3a2b459a; groovy.transform.AnnotationCollectorMode is in unnamed module of loader org.apache.tools.ant.AntClassLoader @26c89563)
  [groovyc]
  [groovyc] java.lang.ClassCastException: class groovy.transform.AnnotationCollectorMode cannot be cast to class groovy.transform.AnnotationCollectorMode (groovy.transform.AnnotationCollectorMode is in unnamed module of loader groovy.lang.GroovyClassLoader @3a2b459a; groovy.transform.AnnotationCollectorMode is in unnamed module of loader org.apache.tools.ant.AntClassLoader @26c89563)
  [groovyc]     at org.codehaus.groovy.transform.ASTTransformationCollectorCodeVisitor.lambda$findCollectedAnnotations$1(ASTTransformationCollectorCodeVisitor.java:187)
  [groovyc]     at java.base/java.util.Optional.map(Optional.java:260)
  [groovyc]     at org.codehaus.groovy.transform.ASTTransformationCollectorCodeVisitor.findCollectedAnnotations(ASTTransformationCollectorCodeVisitor.java:187)
  [groovyc]     at org.codehaus.groovy.transform.ASTTransformationCollectorCodeVisitor.visitAnnotations(ASTTransformationCollectorCodeVisitor.java:93)

 

tried with playing around with below configurations but did not help

groovyc.fork=false

<extname>.groovyc.fork=false

build.parallel=false

not sure if its log path issue. current hybris installation directory path 

 

C:\dl\core-customize\hybris\bin\custom

 

 

 

Sohail_Jahangir
Product and Topic Expert
Product and Topic Expert
0 Kudos
Please reinstall hybris and keep the installation directory path as short as possible eg C:\2211\workspace\hybris
View Entire Topic
Slava
Product and Topic Expert
Product and Topic Expert
0 Kudos

The problem may be related to the gradle version used. The platform requires version 7.3.3 for the build. If you installed 8.x on your machine or use and IDE such as IntelliJ, which uses gradle 8.x by default, you will get errors like that.