
Customizing Data Hub
Extension
Custom Extension to populate the data to Datahub
Step 1:
Go to https://help.hybris.com/6.2.0/hcd/8ac5f84bad6d48a7ba9f71a1271d700d.html
Download the following jar file
Step 2:
Go to the path <YOUR_PATH>\datahub6.2
Create the folder named as archetype and copy the above-downloaded file into this folder
Step 3:
Now to go the path <YOUR_PATH>\Hybris\hybris\bin\ext-integration\datahub\sdk and copy the below-highlighted jar file to the above-created archetype folder
Step 4:
Now archetype folder consists of two jar files as shown below
Step 5:
Modify the command as per you version
mvn install:install-file -DgroupId=com.hybris.datahub -DartifactId=datahub-extension-archetype -Dversion=6.2.0.0-RC4 -Dpackaging=jar -Dfile=datahub-extension-archetype-6.2.0.0-RC4.jar -DgeneratePom=true
Run the command in the <YOUR_PATH>\datahub6.2\archetype
Step 6:
In the same way, modify the file-name and version in the command with the second of the list
modify the command as per you version
mvn install:install-file -DgroupId=com.hybris.datahub -DartifactId=datahub-extension-sdk -Dversion=6.2.0.2-RC13 -Dpackaging=jar -Dfile=datahub-extension-sdk-6.2.0.2-RC13.jar -DgeneratePom=true
Step 7:
Now modify the archetype version and SDK version in below command as yours and run the command
mvn archetype:generate -DarchetypeGroupId=com.hybris.datahub -DarchetypeArtifactId=datahub-extension-archetype -DarchetypeVersion=6.2.0.0-RC4 -DgroupId=com.sap.hybris -DartifactId=customproduct -DsdkVersion=6.2.0.2-RC13
Run the command in the <YOUR_PATH>\datahub6.2\archetype
Step 8:
Open your archetype folder <YOUR_PATH>\datahub6.2\archetype and see that the customproduct named folder is created automatically
Step 9:
In that folder, we can find three folders available where we need to development
Step 10:
Now open eclipse IDE
Select Existing Maven Projects
Step 13:
Check whether projects added or not and click here to view (load IDoc to Hybris).
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.