A web module in hybris is referenced as extension. We have multiple templates in hybris which we can choose as base to create our new extension.
Step 1: Create a new extension using hybris extension command ant extgen. Select the template as yempty
give extension name as "extensiontest" and package as "com.test". Refer screens below
Step 2:Once step 1 is done, the below screen will be appeared with a message of build successful
Step 4: Once build is done.Go to directory C:\hybristest\hybris\bin\custom and you will find folder with name of your extension.
Step 5: Make entry of the new extension in localextensions.xml. Can be found at C:\hybristest\hybris\config\localextensions.xml
Step 6: Run ant clean all. Once build is successful add the new extension to your workspace using import.
Step 7: Start hybris server using hybrisserver.bat
Step 8: Open hybris admin console using admin and nimda as username and password(http://localhost:9001/) and under extensions tab you can see the newly created extension, which validates that the new extension is created successfully.
No comments:
Post a Comment