2017-06-20 1 views

答えて

1

具体的な手順はここにあります https://help.hybris.com/6.0.0/hcd/f7bd6e3caca1412bb8ceb462145ba14d.html

私は下の要旨をコピー:$ {HYBRIS_BIN_DIR} /プラットフォームディレクトリに


移動します。

antant環境を設定するには、setantenv.bat(Windows)またはを開きます。 ./setantenv.sh(Linux/Mac)ファイル。

ant cleanを実行し、デフォルトの[開発]環境を選択します。

アリmodulegenコマンドを実行し、input.nameとinput.packageパラメータ調整:

modulegen呼び出し、この文書で注意

ant modulegen -Dinput.module=accelerator -Dinput.name=b2ctelcotrail -Dinput.package=de.hybris.b2ctelcotrail -Dinput.template=develop 

は、b2ctelcotrail変数が使用されている

をさまざまな場所で、コードとコマンド。別の変数を使用する場合は、代わりにその変数を使用してください。

アクセラレータモジュールを使用するための3つの最初のパラメータを使用して、新しい拡張モジュールにinput.name値を付加し、デフォルトのJavaパッケージ接頭辞にinput.package値を定義します。最後のパラメータinput.templateは、hybrisのデフォルト設定を使用するように定義されています。 コンソールでtheAnt出力を確認します。タスクが正常に完了し、次のステップがリストされていることを確認します。

後に呼び出さインストーラがlocalextensions.xmlファイルが上書きされるため、次のステップの指示に従わないでください。

は、デフォルトでは、インストーラのレシピが標準yacceleratorテンプレートの拡張機能を使用します。

は、インストーラのレシピを変更します。新しく作成した拡張機能を使用するには、まずb2c_telcoレシピを変更する必要があります。

{HYBRIS_HOME} /installer/recipes/b2c_telco/build.gradleファイルをテキストエディタで開きます。 すべてのyacceleratorをb2ctelcotrail(または代わりに使用した接頭辞)に置き換えて、ファイルを保存します。この方法で、インストーラはlocalextensions.xmlファイルを作成するときにyacceleratorテンプレート拡張の代わりに新しく作成された拡張を使用し、新しいb2ctelcotrailstorefrontにb2ctelcoアドオンをインストールします。以下に、編集前と編集後のレシピの例を示します。

バージョンによっては、実際のインストールスクリプトが若干異なって見える場合があります。Commerce Suiteに付属のスクリプトを使用してください。また、以下の例の内容はコピーしないでください。

前:HYBRIS_HOME /インストーラー/レシピ/ b2c_telco/build.gradle

apply plugin: 'installer-platform-plugin' 
apply plugin: 'installer-addon-plugin' 
apply plugin: 'installer-coreplus-plugin' 
def config = { 
    localProperties { 
     property 'subscription.client.endpoint.uri', 'http://localhost:9001/hybris-cis-mock-subscription-web/sub/cisSubscriptionMock' 
     property 'persistence.engine.mongodb.databaseName', 'entitlements' 
     property 'cis.client.subscription.mock', 'false' 
     property 'kernel.events.cluster.jgroups.channel', 'disable' 
     property 'datahub.publication.saveImpex', '' 
     property 'commerceservices.default.desktop.ui.experience', 'desktop' 
     property 'kernel.autoInitMode', 'update' 
    } 
    extensions { 
     extensions { 
      extName 'acceleratorcms' 
      extName 'addonsupport' 
      extName 'b2ctelcocheckoutaddon' 
      extName 'b2ctelcocockpits' 
      extName 'b2ctelcostore' 
      extName 'b2ctelcostorefront' 
      extName 'cissubscription' 
      extName 'cissubscriptionatddtests' 
      extName 'commercesearchbackoffice' 
      extName 'commerceservicesbackoffice' 
      extName 'emsclient' 
      extName 'emsui' 
      extName 'entitlementstorefront' 
      extName 'entitlementatddtests' 
      extName 'mcc' 
      extName 'solrfacetsearchbackoffice' 
      extName 'solrserver' 
      extName 'configurablebundleatddtests' 
      extName 'subscriptionstorefront' 
      extName 'subscriptionatddtests' 
      extName 'subscriptionserviceshmc' 
      extName 'subscriptionbackoffice' 
      extName 'yacceleratorstorefront' 
      extName 'yacceleratorcockpits' 
      extName 'yacceleratorfulfilmentprocess' 
      extName 'yacceleratorcore' 
      extName 'customersupportbackoffice' 
     } 
     webApp { 
      contextRoot 'entitlements-web' 
      path '${HYBRIS_BIN_DIR}/../../hybris-ems/binary/entitlements-web.war' 
     } 
     webApp { 
      contextRoot 'hybris-cis-mock-subscription-web' 
      path '${HYBRIS_BIN_DIR}/../../hybris-sbg/binary/hybris-cis-mock-subscription-web.war' 
     } 
    } 
} 
def pl = platformFactory.createPlatform config 
void modifySubscriptioncockpitsRequiredExtensions() { 
    def extensioninfoFile = "${suiteHome}/hybris/bin/ext-commerce/subscriptioncockpits/extensioninfo.xml" 
    def root = new XmlParser().parse(extensioninfoFile) 
    def required = root.extension[0].children() 
    def dependency = required.find { node -> [email protected] == 'yacceleratorcockpits'} 
    if(dependency == null) { 
     def node = new Node(null, 'requires-extension', [name: 'yacceleratorcockpits']) 
     required.add(0, node) 
     new XmlNodePrinter(new PrintWriter(new FileWriter(extensioninfoFile))).print(root) 
    } 
} 
task setup << { 
    modifySubscriptioncockpitsRequiredExtensions() 
    pl.setup() 
    pl.project.addons { 
     names "b2ctelcostorefront,b2ctelcocheckoutaddon" 
     b2c "yacceleratorstorefront" 
     platform pl 
    } 
    pl.project.addons { 
     names "entitlementstorefront" 
     b2c "yacceleratorstorefront" 
     platform pl 
    } 
    pl.project.addons { 
     names 'subscriptionstorefront' 
     b2c 'yacceleratorstorefront' 
     platform pl 
    } 
    copy { 
     from "${installerHome}/recipes/b2c_telco/logback.xml" 
     into "${suiteHome}/hybris/bin/platform/tomcat/lib" 
    } 
    copy { 
     from "${installerHome}/recipes/b2c_telco/sbg_properties" 
     into "${suiteHome}/hybris/bin/platform/tomcat/lib" 
     exclude "**/*.txt" 
    } 

} 
ext { 
    host = "http://localhost:9001" 
    contextRoot = "entitlements-web" 
    tenant = "single" 
    config = { 
     localProperties { 
      properties(
        'tomcat.generaloptions': '-Xmx3096M', 
        'standalone.javaoptions': '-Xmx3040M' 
      ) 
     } 
    } 
} 

task initialize << { 
    pl.build() 
    pl.initialize() 
} 
task start << { 
    pl.startInBackground() 
} 
task stop << { 
    pl.stopInBackground() 

後:HYBRIS_HOME /インストーラー/レシピ/ b2c_telco/build.gradle

apply plugin: 'installer-platform-plugin' 
apply plugin: 'installer-addon-plugin' 
apply plugin: 'installer-coreplus-plugin' 
def config = { 
    localProperties { 
     property 'subscription.client.endpoint.uri', 'http://localhost:9001/hybris-cis-mock-subscription-web/sub/cisSubscriptionMock' 
     property 'persistence.engine.mongodb.databaseName', 'entitlements' 
     property 'cis.client.subscription.mock', 'false' 
     property 'kernel.events.cluster.jgroups.channel', 'disable' 
     property 'datahub.publication.saveImpex', '' 
     property 'commerceservices.default.desktop.ui.experience', 'desktop' 
     property 'kernel.autoInitMode', 'update' 
    } 
    extensions { 
     extensions { 
      extName 'acceleratorcms' 
      extName 'addonsupport' 
      extName 'b2ctelcocheckoutaddon' 
      extName 'b2ctelcocockpits' 
      extName 'b2ctelcostore' 
      extName 'b2ctelcostorefront' 
      extName 'cissubscription' 
      extName 'cissubscriptionatddtests' 
      extName 'commercesearchbackoffice' 
      extName 'commerceservicesbackoffice' 
      extName 'emsclient' 
      extName 'emsui' 
      extName 'entitlementstorefront' 
      extName 'entitlementatddtests' 
      extName 'mcc' 
      extName 'solrfacetsearchbackoffice' 
      extName 'solrserver' 
      extName 'configurablebundleatddtests' 
      extName 'subscriptionstorefront' 
      extName 'subscriptionatddtests' 
      extName 'subscriptionserviceshmc' 
      extName 'subscriptionbackoffice' 
      extName 'b2ctelcotrailstorefront' 
      extName 'b2ctelcotrailcockpits' 
      extName 'b2ctelcotrailfulfilmentprocess' 
      extName 'b2ctelcotrailcore' 
      extName 'customersupportbackoffice' 
     } 
     webApp { 
      contextRoot 'entitlements-web' 
      path '${HYBRIS_BIN_DIR}/../../hybris-ems/binary/entitlements-web.war' 
     } 
     webApp { 
      contextRoot 'hybris-cis-mock-subscription-web' 
      path '${HYBRIS_BIN_DIR}/../../hybris-sbg/binary/hybris-cis-mock-subscription-web.war' 
     } 
    } 
} 
def pl = platformFactory.createPlatform config 
void modifySubscriptioncockpitsRequiredExtensions() { 
    def extensioninfoFile = "${suiteHome}/hybris/bin/ext-commerce/subscriptioncockpits/extensioninfo.xml" 
    def root = new XmlParser().parse(extensioninfoFile) 
    def required = root.extension[0].children() 
    def dependency = required.find { node -> [email protected] == 'b2ctelcotrailcockpits'} 
    if(dependency == null) { 
     def node = new Node(null, 'requires-extension', [name: 'b2ctelcotrailcockpits']) 
     required.add(0, node) 
     new XmlNodePrinter(new PrintWriter(new FileWriter(extensioninfoFile))).print(root) 
    } 
} 
task setup << { 
    modifySubscriptioncockpitsRequiredExtensions() 
    pl.setup() 
    pl.project.addons { 
     names "b2ctelcostorefront,b2ctelcocheckoutaddon" 
     b2c "b2ctelcotrailstorefront" 
     platform pl 
    } 
    pl.project.addons { 
     names "entitlementstorefront" 
     b2c "b2ctelcotrailstorefront" 
     platform pl 
    } 
    pl.project.addons { 
     names 'subscriptionstorefront' 
     b2c 'b2ctelcotrailstorefront' 
     platform pl 
    } 
    copy { 
     from "${installerHome}/recipes/b2c_telco/logback.xml" 
     into "${suiteHome}/hybris/bin/platform/tomcat/lib" 
    } 
    copy { 
     from "${installerHome}/recipes/b2c_telco/sbg_properties" 
     into "${suiteHome}/hybris/bin/platform/tomcat/lib" 
     exclude "**/*.txt" 
    } 

} 
ext { 
    host = "http://localhost:9001" 
    contextRoot = "entitlements-web" 
    tenant = "single" 
    config = { 
     localProperties { 
      properties(
        'tomcat.generaloptions': '-Xmx3096M', 
        'standalone.javaoptions': '-Xmx3040M' 
      ) 
     } 
    } 
} 

task initialize << { 
    pl.build() 
    pl.initialize() 
} 
task start << { 
    pl.startInBackground() 
} 
task stop << { 
    pl.stopInBackground() 
} 

ラン修正インストーラスクリプト

{HYBRIS_HOME}/installerディレクトリに移動します。 はb2c_telcoレシピでインストーラを起動します。

WINDOWS: install.bat -r b2c_telco 
UNIX: ./install.sh -r b2c_telco 

インストールスクリプトが新たに作成されたb2ctelcotrail拡張を使用して、新しいlocalextensions.xmlファイルを作成し、また、新しいb2ctelcotrailstorefront延長にB2C電話会社によって必要なアドオンをインストールします。 {HYBRIS_HOME} /hybris/config/localextensions.xmlファイルを確認し、yacceleratorテンプレート拡張の代わりにb2ctelcotrail拡張が含まれていることを確認します。 また、Telcoサイトが正しく開始するためには、次の変更を行う必要があります。

あなたがエントリー

<bean id="logoutSuccessHandler" class="de.hybris.platform.yacceleratorstorefront.security.StorefrontLogoutSuccessHandler"> 

を変更する必要があるファイルで

/b2ctelcostorefront/resources/b2ctelcostorefront/web/spring/b2ctelcostorefront-web-spring.xml

<bean id="logoutSuccessHandler" class="de.hybris.b2ctelcotrail.storefront.security.StorefrontLogoutSuccessHandler"> 

この前のリリースで修正されるビルドプロセスの既知のバグを克服することです。


さらにいくつかの手順があります(詳細についてはwikiをご覧ください)が、これは初期の問題に役立ちます。

希望します。 セバスチャン

関連する問題