Repository structure for building Remote stores (crs
) packages
To configure the build properties for a Store server package, build-buildtype-crs.properties, consider the following relevant configurations that you need to complete. The values in the following name-value pairs are the folders in your workspace.
web.module.list=crs-web
java.module.list=crs-extensions-logic
This project is used to customize java code for the crs-web store.
Build process takes these folders from the workspace | Packages to these folders in the output ZIP file | Description |
---|---|---|
crs-web/ | Code/crs-app/crs-web.war:/ |
|
crs-extensions-logic | Code/crs-app/lib/crs-extensions-logic.jar |
|
crs-alias-proxy-web.war | Code/crs-app/crs-alias-proxy-web.war |
|
crs-preview-web.war | Code/crs-app/crs-preview-web.war |
|
Jar files | Code/crs-app/lib/*.jar |
|
META-INF | Code/crs-app/META-INF |
|
properties | Code/crs-app/properties |
|
xml | Code/crs-app/xml |
|
crs-web/src/ | Code/crs-app/crs-web.war:/WEB-INF/classes/ |
|
crs-web/WebContent/META-INF/ | Code/crs-app/crs-web.war:/META-INF/ |
|
crs-web/WebContent/WEB-INF/ | Code/crs-app/crs-web.war:/WEB-INF/ |
|
Certs/crs-app |
|
|
DeployScripts/crs-app |
|
Store server deployment package structure
The following file structure shows the generated package structure for a remote store (crs) package after the HCL Commerce Build tool completes building the package.
¦
+---Code
¦ +---crs-app The default deployment process handles the following three types of WAR files within the crs-app folder.)
¦ ¦ crs-alias-proxy-web.war
¦ ¦ crs-preview-web.war
¦ ¦ crs-web.war
¦ ¦
¦ +---lib (The default deployment process copies all files under the lib folder to the crs.ear/lib directory.)
¦ ¦ ¦ aopalliance-1.0.jar
¦ ¦ ¦ cf-wcf.jar
¦ ¦ ¦ commons-codec-1.6.jar
¦ ¦ ¦ commons-configuration-1.8.jar
¦ ¦ ¦ commons-io-2.1.jar
¦ ¦ ¦ commons-lang-2.6.jar
¦ ¦ ¦ commons-lang3-3.3.2.jar
¦ ¦ ¦ commons-logging-1.2.jar
¦ ¦ ¦ crs-extensions-logic.jar
¦ ¦ ¦ crs-store-publish-jianing.jar
¦ ¦ ¦ crs-store-publish.jar
¦ ¦ ¦ crs-web-taglibs.jar
¦ ¦ ¦ .....
¦ ¦ ¦ zookeeper-3.4.12.jar
¦ ¦
¦ +---META-INF (The default deployment process copies all files under the META-INF folder to the crs.ear/META-INF directory.)
¦ ¦ MANIFEST.MF
¦ ¦ application.xml
¦ ¦
¦ +---properties (The default deployment process copies all files under the properties folder to the crs.ear/properties directory.)
¦ ¦ ¦ GenericApplicationError.properties
¦ ¦ ¦ GenericApplicationError_ar_EG.properties
¦ ¦ ¦ GenericApplicationError_de_DE.properties
¦ ¦ ¦ ......properties
¦ ¦ ¦ GenericApplicationError_ru_RU.properties
¦ ¦ ¦ GenericApplicationError_tr_TR.properties
¦ ¦ ¦ GenericApplicationError_zh_CN.properties
¦ ¦ ¦ GenericApplicationError_zh_TW.properties
¦ ¦ ¦ GenericSystemError.properties
¦ ¦ ¦ GenericSystemError_ar_EG.properties
¦ ¦ ¦ ......properties
¦ ¦ ¦ GenericSystemError_zh_CN.properties
¦ ¦ ¦ GenericSystemError_zh_TW.properties
¦ ¦ ¦ log4j.properties
¦ ¦ ¦
¦ ¦ +---com
¦ ¦ +---ibm
¦ ¦ +---commerce
¦ ¦ +---ras
¦ ¦ +---properties
¦ ¦ ecServerMessages.properties
¦ ¦ ecServerMessages_ar_EG.properties
¦ ¦ ......properties
¦ ¦ ecServerMessages_zh_TW.properties
¦ ¦
¦ +---xml (The default deployment process copies all files under the xml folder to the crs.ear/xml directory.)
¦ +---config
¦ ¦ ¦ denyList.xml
¦ ¦ ¦ wc-attribute-masking.xml
¦ ¦ ¦ wc-store.xml
¦ ¦ ¦
¦ ¦ +---com.ibm.commerce.store
¦ ¦ ¦ store-rest-group.xml
¦ ¦ ¦
¦ ¦ +---xsd
¦ ¦ wc-alias-config.xsd
¦ ¦ wc-seo-url-pattern.xsd
¦ ¦
¦ +---mapper
¦ SEOUrlMapper.xml
¦
+---Certs (You can add this folder on demand.)
¦ +---crs-app
+---DeployScripts (You can add this folder on demand.)
+---crs-app
applyDeployScripts.sh
HCL Commerce now supports handling custom files within
all default folders of a remote store (crs
) package, as indicating in the preceding
repository structure. This support provides you with more capability for applying custom logic to
your store server.
For your Certs and DeployScripts folders, both folders are reserved within the default code for applying customization logic for you to use for extensions. The default code for applying logic is included within the /SETUP/bin/applyCustomization.sh file. The HCL Commerce Build tool scripts do not generate these folders by default. You need customize the scripts to configure the tool to generate and package these two folders.
If your environments are not updated to the 9.0.1.3 or 9.0.0.12 update package level, the default provided logic handles one extension point, the crs-web.war archive. If you need to apply customization files, you need to customize the DeployScripts folder to add your custom logic for applying your files.