extension templates
yempty Skeleton for an extension with a core and web module
ycommercewebservices | Provides a working example how a REST API can be exposed dependent on the hybris commercefacades |
ycockpit | Sample cockpit application |
ybackoffice | Template to generate a backoffice extension to start developing widgets |
yaddon | Base template for writing Accelerator AddOns. |
- Open the Ant view in Eclipse and invoke the platform's task extgen. This will ask you to
- Select yempty for the extension template
- Enter the name cuppytrail for the extension.
- Enter the package prefix de.hybris.platform.cuppytrail
- The Ant script will now create a skeleton extension for you in
YOURPATH/bin/custom/cuppytrail
but this is not yet imported into Eclipse. -
Append the new extension to
config/localextensions.xml
:
<extension name="cuppytrail" />
- Stop the application server.
- Run ant all
- Start the application server
- Import the generated extension into your Eclipse environment
- Right-click in package explorer and select Import
- Select General|Existing Projects into Workspace and browse to the new extension
YOURPATH/bin/custom/cuppytrail
- Make sure that the Copy projects into workspace check box is not checked before clicking on the Finish button
- You should now see the extension in your Eclipse Package Explorer
- Open the hybris administration console http://localhost:9001/platform/extensions in a web browser and log in as admin nimda. You will get an overview on the available extensions and, if the extension comes with a core extension module, an hmc extension module, a webmodule depicted by the webroot and a core + extension module. As you can see, cuppytrail contains a core module and a web module.
cuppytrail/extensioninfo.xml
<!--
<webmodule jspcompile="false"
webroot="/cuppytrail"
/>
-->
<span style="font-size: 13.3333px; line-height: 17.316px; font-family: Arial, Helvetica, sans-serif; background-color: rgb(255, 255, 255);">Run </span><span style="font-size: 13.3333px; line-height: 17.316px; font-family: Arial, Helvetica, sans-serif; background-color: rgb(255, 255, 255);"><strong>ant all</strong></span><span style="font-size: 13.3333px; line-height: 17.316px; font-family: Arial, Helvetica, sans-serif; background-color: rgb(255, 255, 255);"> (check that the hybrisserver is restarted afterwards) and verify that there's no accessible webroot for cuppytrail</span>