Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Where to specify the path for Extension 'spartacussampledataaddon'

I following the instruction at https://sap.github.io/spartacus-docs/installing-sap-commerce-cloud-2005/

Step 1: completed successful

Step 2: Build and initialize the new recipe

At this step I have got an error. Where I have to specify path for the extension?

# install.bat -r cx-for-spa
...

> Task :recipes:cx-for-spa:createStoreFrontExt
Buildfile: C:\cx2005\hybris\bin\platform\build.xml
[ysetplatformproperties] Error while evaluating file 'C:\cx2005\hybris\config\localextensions.xml'. Extension 'spartacussampledataaddon' doesn't specify a path and no scanned extension was matching the name. Please check file C:\cx2005\hybris\config\localextensions.xml.
[ysetplatformproperties] java.lang.RuntimeException: Error while evaluating file 'C:\cx2005\hybris\config\localextensions.xml'. Extension 'spartacussampledataaddon' doesn't specify a path and no scanned extension was matching the name. Please check file C:\cx2005\hybris\config\localextensions.xml.
like image 784
Jegors Čemisovs Avatar asked Sep 21 '25 00:09

Jegors Čemisovs


2 Answers

I met the same issue, and solved it:

Please check :

1, hybris/bin/custom/spartacussampledata/extensioninfo.xml

<extension ... name="spartacussampledata">

2, hybris/config/localextensions.xml

<extension name='spartacussampledata' />

Above extension name must be the same!

I guess you have different ones one is spartacussampledata (extension) and the other is spartacussampledataaddon (addon)

Because Spartacus 3.0 and later use the new Spartacus sample data extension (not the addon). For now Spartacus provides both for download. However, the sample data extension will be the only one updated in the future. Both will work for older releases, the new extension contains updates to b2b sample data

Here is URL of spartacussampledata.zip version 3.0.0: https://github.com/SAP/spartacus/releases/download/storefront-3.0.0/spartacussampledata.2005.zip

like image 184
Timothy.Li Avatar answered Sep 23 '25 10:09

Timothy.Li


You can store it at /hybris/bin/custom.

The modules and platform folder contain the standard modules that are shipped with the commerce release. The custom folder is supposed to contain your customer extensions.

The spartacussampledataaddon is a bit in between, as its shipped by product team, but outside the standard commerce release process.

like image 33
tobi-or-not-tobi Avatar answered Sep 23 '25 12:09

tobi-or-not-tobi



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!