SAP Commerce Cloud无法使用自定义插件生成构建

发布于 2025-02-01 01:09:21 字数 4749 浏览 1 评论 0原文

我已经在本地环境中安装了CustomGigyaAddon(Gigyaloginaddon的扩展版本),并在我的CustomStoreFront中注入,并添加到loCalextensions.xml并毫无问题地编译,但是,当我尝试在SAP Commerce Cloud Cloud Cloud中生成同一版本的构建时,它给我带来以下例外:

/opt/workspace/build/commerce- 
suite/hybris/bin/platform/resources/ant/antmacros.xml:587: 
java.lang.IllegalArgumentException: cannot merge namespace ((customgigyaaddon)) into 
((<merged>)) due to duplicate type code 'gigyaconfig2cmssite' : GigyaConfig2CMSSite:: 
((customgigyaaddon))::YRelation[customgigyaaddon-items.xml:14(RelationTypeTagListener)] 
<>GigyaConfig2CMSSite::((gigyaservices))::YRelation[gigyaservices- 
items.xml:65(RelationTypeTagListener)] 

localextensions-cloud.xml与我的localextensions.xml完全相同,在清单中。

{
  "commerceSuiteVersion":"2105",
  "enableImageProcessingService": true,
  "extensionPacks" : [
    {
      "name" : "hybris-commerce-integrations",
      "version" : "2108.2"
    }
  ],
  "extensions":[
    "sapymktcommon",
    "sapymktclickstream",
    "sapymktrecommendation",
    "sapymktrecommendationbuffer",
    "sapymktrecommendationwebservices",
    "cloudmediaconversion",
    "mediaconversionbackoffice",
    "sapymktsegmentation",
    "sapymktsegmentationb2b",
    "sapymktsegmentationwebservices",
    "personalizationymkt",
    "integrationbackoffice",
    "outboundsyncbackoffice",
    "sapymktdatareplication",
    "assistedservicestorefront"
  ],
  "useConfig":{
    "properties":[
      {
        "location":"config/local-dev.properties",
        "persona":"development"
      },
      {
        "location":"config/local-stag.properties",
        "persona":"staging"
      },
      {
        "location":"config/local-prd.properties",
        "persona":"production"
      }
    ],
    "extensions":{
      "location":"/config/localextensions-cloud.xml"
    },
    "solr":{
      "location":"customSolr"
    }
  },
  "storefrontAddons":[
    {
      "addons":["commerceorgsamplesaddon","smarteditaddon","textfieldconfiguratortemplateaddon","customerticketingaddon","orderselfserviceaddon","consignmenttrackingaddon","marketplaceaddon","notificationaddon","customerinterestsaddon","stocknotificationaddon","customaddon","configurablebundleaddon","sapymktrecommendationaddon"],
      "storefronts":["customstorefront"],
      "template":"yacceleratorstorefront"
    },
    {
      "addons":["customgigyaaddon"],
      "storefronts":["customstorefront"],
      "template":"yacceleratorstorefront"
    }
  ],
  "aspects":[
    {
      "name":"backoffice",
      "webapps":[
        {
          "name":"mediaweb",
          "contextPath":"/medias"
        },
        {
          "name":"backoffice",
          "contextPath":"/backoffice"
        },
        {
          "name":"hac",
          "contextPath":"/hac"
        },
        {
          "name":"dathubadapter",
          "contextPath":"/datahubadapter"
        },
        {
          "name":"oauth2",
          "contextPath":"/authorizationserver"
        },
        
        {
          "name": "customstorefront",
          "contextPath": "/valet"
        }
        {
          "name": "personalizationsmartedit",
          "contextPath": "/personalizationsmartedit"
        },
        {
          "name": "personalizationpromotionssmartedit",
          "contextPath": "/personalizationpromotionssmartedit"
        },
        {
          "name": "personalizationwebservices",
          "contextPath": "/personalizationwebservices"
        },
        {
          "name": "personalizationsearchsmartedit",
          "contextPath": "/personalizationsearchsmartedit"
        },
        {
          "name":"previewwebservices",
          "contextPath":"/previewwebservices"
        },
        {
          "name":"permissionswebservices",
          "contextPath":"/permissionswebservices"
        },
        {
          "name":"ycommercewebservices",
          "contextPath":"/rest"
        }
      ]
    } 
      ],
      "webapps":[
        {
          "name":"customstorefront",
          "contextPath":"/custom"
        }
      ]
    },
    {
      "name":"backgroundProcessing",
      "properties":[
        {
          "key":"cluster.node.groups",
          "value":"integration,yHotfolderCandidate"
        }
      ],
      "webapps":[
        {
          "name":"hac",
          "contextPath":"/hac"
        },
        {
          "name":"mediaweb",
          "contextPath":"/medias"
        }
      ]
    }
      ]
    }
  ],
  "properties": [
      {
        "key":"configFile",
        "value":"/opt/hybris/bin/custom/resources/update-config.json"
      }
  ]
}

我的 gigyaconfig2cmssite在gigyaservices-items.xml中声明,但是这不是正确的,因为此特定关系仅在customgigyaservices-items.xml中声明。

我想念什么吗?我真的迷路了

I've installed in my local environment customgigyaaddon (an extended version of gigyaloginaddon), injected in my customstorefront and added to localextensions.xml and compiled without any problems, however, when I try to generate a build of this same version in sap commerce cloud, it throws me the following exception :

/opt/workspace/build/commerce- 
suite/hybris/bin/platform/resources/ant/antmacros.xml:587: 
java.lang.IllegalArgumentException: cannot merge namespace ((customgigyaaddon)) into 
((<merged>)) due to duplicate type code 'gigyaconfig2cmssite' : GigyaConfig2CMSSite:: 
((customgigyaaddon))::YRelation[customgigyaaddon-items.xml:14(RelationTypeTagListener)] 
<>GigyaConfig2CMSSite::((gigyaservices))::YRelation[gigyaservices- 
items.xml:65(RelationTypeTagListener)] 

My localextensions-cloud.xml is exactly the same as my localextensions.xml and in the manifest.json I've declared the addon injection as follows:

{
  "commerceSuiteVersion":"2105",
  "enableImageProcessingService": true,
  "extensionPacks" : [
    {
      "name" : "hybris-commerce-integrations",
      "version" : "2108.2"
    }
  ],
  "extensions":[
    "sapymktcommon",
    "sapymktclickstream",
    "sapymktrecommendation",
    "sapymktrecommendationbuffer",
    "sapymktrecommendationwebservices",
    "cloudmediaconversion",
    "mediaconversionbackoffice",
    "sapymktsegmentation",
    "sapymktsegmentationb2b",
    "sapymktsegmentationwebservices",
    "personalizationymkt",
    "integrationbackoffice",
    "outboundsyncbackoffice",
    "sapymktdatareplication",
    "assistedservicestorefront"
  ],
  "useConfig":{
    "properties":[
      {
        "location":"config/local-dev.properties",
        "persona":"development"
      },
      {
        "location":"config/local-stag.properties",
        "persona":"staging"
      },
      {
        "location":"config/local-prd.properties",
        "persona":"production"
      }
    ],
    "extensions":{
      "location":"/config/localextensions-cloud.xml"
    },
    "solr":{
      "location":"customSolr"
    }
  },
  "storefrontAddons":[
    {
      "addons":["commerceorgsamplesaddon","smarteditaddon","textfieldconfiguratortemplateaddon","customerticketingaddon","orderselfserviceaddon","consignmenttrackingaddon","marketplaceaddon","notificationaddon","customerinterestsaddon","stocknotificationaddon","customaddon","configurablebundleaddon","sapymktrecommendationaddon"],
      "storefronts":["customstorefront"],
      "template":"yacceleratorstorefront"
    },
    {
      "addons":["customgigyaaddon"],
      "storefronts":["customstorefront"],
      "template":"yacceleratorstorefront"
    }
  ],
  "aspects":[
    {
      "name":"backoffice",
      "webapps":[
        {
          "name":"mediaweb",
          "contextPath":"/medias"
        },
        {
          "name":"backoffice",
          "contextPath":"/backoffice"
        },
        {
          "name":"hac",
          "contextPath":"/hac"
        },
        {
          "name":"dathubadapter",
          "contextPath":"/datahubadapter"
        },
        {
          "name":"oauth2",
          "contextPath":"/authorizationserver"
        },
        
        {
          "name": "customstorefront",
          "contextPath": "/valet"
        }
        {
          "name": "personalizationsmartedit",
          "contextPath": "/personalizationsmartedit"
        },
        {
          "name": "personalizationpromotionssmartedit",
          "contextPath": "/personalizationpromotionssmartedit"
        },
        {
          "name": "personalizationwebservices",
          "contextPath": "/personalizationwebservices"
        },
        {
          "name": "personalizationsearchsmartedit",
          "contextPath": "/personalizationsearchsmartedit"
        },
        {
          "name":"previewwebservices",
          "contextPath":"/previewwebservices"
        },
        {
          "name":"permissionswebservices",
          "contextPath":"/permissionswebservices"
        },
        {
          "name":"ycommercewebservices",
          "contextPath":"/rest"
        }
      ]
    } 
      ],
      "webapps":[
        {
          "name":"customstorefront",
          "contextPath":"/custom"
        }
      ]
    },
    {
      "name":"backgroundProcessing",
      "properties":[
        {
          "key":"cluster.node.groups",
          "value":"integration,yHotfolderCandidate"
        }
      ],
      "webapps":[
        {
          "name":"hac",
          "contextPath":"/hac"
        },
        {
          "name":"mediaweb",
          "contextPath":"/medias"
        }
      ]
    }
      ]
    }
  ],
  "properties": [
      {
        "key":"configFile",
        "value":"/opt/hybris/bin/custom/resources/update-config.json"
      }
  ]
}

Looking the exception it looks like there is already an relation gigyaconfig2cmssite declared in gigyaservices-items.xml, however this is not true since this specific relation is only declared in customgigyaservices-items.xml.

Am I missing something? I feel really lost

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

多情出卖 2025-02-08 01:09:21

如果您对问题进行了如下分析:customgigyaaddon-Items.xml和gigyaservices-items.xml,都包含该条目。

否则,您是否试图清洁所有平台?另外,设置生成并自动创建为false并删除扩展。

if you analyzed the issue as follows:customgigyaaddon-items.xml and gigyaservices-items.xml, both contain the entry.

Otherwise, have you tried to ant clean all the platform? Also, set generate and auto-create as false and removed the extends.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文