title: Build failed.Step 2: Build and initialize the new recipe. Initialize the system
body: <p>I'm trying to install Spartacus for SAP Commerce 2005 following the guide:
  <a href="https://sap.github.io/spartacus-docs/installing-sap-commerce-cloud-2005/" rel="nofollow noreferrer">https://sap.github.io/spartacus-docs/installing-sap-commerce-cloud-2005/</a></p>
  <p>At Step 2-3 (Initialize the system using the following command) I've got an error:</p>
  <pre><code>    [testClassesScanner] Found 12 ordercalculation testclasses in 7.191 ms                                                                                                      
      [touch] Creating C:\CX2005\hybris\temp\hybris\touch\ordercalculation_testsrctouch                                                                                       
       [copy] Copying 1 file to C:\CX2005\hybris\bin\modules\integration-apis\outboundservices                                                                                
       [copy] Copying 1 file to C:\CX2005\hybris\bin\modules\integration-apis\outboundservices                                                                                
      [mkdir] Created dir: C:\CX2005\hybris\bin\modules\integration-apis\outboundservices\classes                                                                             
       [copy] Copying 1 file to C:\CX2005\hybris\bin\modules\integration-apis\odata2services                                                                                  
       [copy] Copying 1 file to C:\CX2005\hybris\bin\modules\integration-apis\odata2services                                                                                  
      [mkdir] Created dir: C:\CX2005\hybris\bin\modules\integration-apis\odata2services\classes                                                                               
     [yjavac] Compiling 73 source files to C:\CX2005\hybris\bin\modules\integration-apis\outboundservices\classes                                                             
     [yjavac] Compiling 396 source files to C:\CX2005\hybris\bin\modules\integration-apis\odata2services\classes                                                              
      [touch] Creating C:\CX2005\hybris\temp\hybris\touch\outboundservices_srctouch                                                                                           
    [groovyc] Compiling 26 source files to C:\CX2005\hybris\bin\modules\integration-apis\outboundservices\classes                                                             
      [touch] Creating C:\CX2005\hybris\temp\hybris\touch\odata2services_srctouch                                                                                             
    [groovyc] Compiling 150 source files to C:\CX2005\hybris\bin\modules\integration-apis\odata2services\classes                                                              
  [testClassesScanner] Found 218 odata2services testclasses in 16.72 ms                                                                                                       
      [touch] Creating C:\CX2005\hybris\temp\hybris\touch\odata2services_testsrctouch                                                                                         
                                                                                                                                                                              
  BUILD FAILED                                                                                                                                                                
  C:\CX2005\hybris\bin\platform\build.xml:13: The following error occurred while executing this line:                                                                         
  C:\CX2005\hybris\bin\platform\resources\ant\compiling.xml:75: The following error occurred while executing this line:                                                       
  C:\CX2005\hybris\bin\platform\resources\ant\compiling.xml:116: The following error occurred while executing this line:                                                      
  C:\CX2005\hybris\bin\platform\resources\ant\util.xml:42: The following error occurred while executing this line:                                                            
  C:\CX2005\hybris\bin\platform\resources\ant\util.xml:44: The following error occurred while executing this line:                                                            
  C:\CX2005\hybris\bin\platform\resources\ant\compiling.xml:123: The following error occurred while executing this line:                                                      
  C:\CX2005\hybris\bin\platform\resources\ant\compiling.xml:340: The following error occurred while executing this line:                                                      
  C:\CX2005\hybris\bin\modules\platform\groovynature\buildcallbacks.xml:33: BUG! exception in phase 'semantic analysis' in source unit 'C:\CX2005\hybris\bin\modules\integrati
  n-apis\outboundservices\testsrc\de\hybris\platform\outboundservices\client\RestTemplateFactoryIntegrationTest.groovy' null                                                  
          at org.codehaus.groovy.control.CompilationUnit.applyToSourceUnits(CompilationUnit.java:980)                                                                         
          at org.codehaus.groovy.control.CompilationUnit.doPhaseOperation(CompilationUnit.java:651)                                                                           
          at org.codehaus.groovy.control.CompilationUnit.compile(CompilationUnit.java:600)                                                                                    
          at org.codehaus.groovy.control.CompilationUnit.compile(CompilationUnit.java:583)                                                                                    
          at org.codehaus.groovy.tools.FileSystemCompiler.compile(FileSystemCompiler.java:75)                                                                                 
          at org.codehaus.groovy.tools.FileSystemCompiler.doCompilation(FileSystemCompiler.java:243)                                                                          
          at org.codehaus.groovy.ant.Groovyc.runCompiler(Groovyc.java:1206)                                                                                                   
          at org.codehaus.groovy.ant.Groovyc.compile(Groovyc.java:1258)                                                                                                       
          at org.codehaus.groovy.ant.Groovyc.execute(Groovyc.java:853)                                                                                                        
  </code></pre>
  <p>The last part of the log:</p>
  <pre><code>        at org.codehaus.groovy.control.CompilationUnit.applyToSourceUnits(CompilationUnit.java:976)
          ... 102 more
  
  Total time: 10 minutes 32 seconds
  
  &gt; Task :recipes:cx-for-spa:buildSystem FAILED
  
  FAILURE: Build failed with an exception.
  
  * Where:
  Build file 'C:\CX2005\installer\recipes\cx-for-spa\build.gradle' line: 594
  
  * What went wrong:
  Execution failed for task ':recipes:cx-for-spa:buildSystem'.
  &gt; external process returned non-zero exit code, command: [cmd, /c, set &quot;ANT_OPTS=-Xmx1024m -Dfile.encoding=UTF-8&quot; &amp; set &quot;PLATFORM_HOME=C:\CX2005\hybris\bin\platform&quot; &amp; set &quot;ANT_HOME=C:\CX2005\hybris\bin\platform\apache-ant&quot; &amp; set &quot;PATH=C:\CX2005\hybris\bin\platform\apache-ant\bin;%PATH%&quot; &amp; ant clean all]
  </code></pre>
  <p>Any ideas how to resolve this?</p>
  <p>Regards,
  Jegors</p>