gpt4 book ai didi

sonarqube - 如何将 SonarQube 与 SAP Hybris 集成

转载 作者:行者123 更新时间:2023-12-02 22:52:58 34 4
gpt4 key购买 nike

SAP Hybris Suite 附带集成的 PMD 插件并运行自定义 PMD 代码规则集。

PMD 插件是通过 Hybris ANT 构建脚本调用的。

但是我想知道是否有办法将 Hybris Suite 与 SonarQube 集成

最佳答案

根据您的 hybris 版本,已经存在 sonar Ant 任务会将指标发送到 Sonar。

首先进入您的平台主页:

cd $HYBRIS_HOME/hybris/bin/platform

然后,正确初始化 Ant:

. ./setantenv.sh

执行测试:

ant unittests

将结果发送到 Sonar :

ant sonar

Sonar Runner 可以在 config/local.properties 的平台内部进行配置文件。例如:

sonar.java.source=8
sonar.projectName=Example
sonar.projectKey=example
sonar.exclusions=file:**/gensrc/**, **/ws/axis/*
sonar.login=secret
sonar.password=evenmoresecret
sonar.excludedExtensions=core,testweb,scripting,paymentstandard,mediaweb,maintenanceweb,deliveryzone,commons,processing,impex,validation,catalog,europe1,platformservices,workflow,hac,comments,advancedsavedquery,springintegrationlibs,ldap,hmc,virtualjdbc,cockpit,admincockpit,reportcockpit,platformhmc,productcockpit,customerreview,sapcoretest,sapcoreodata,sapcore,sapcorejco,sapcorejcorec,sapcorebol,advancedexport,backoffice,datahubbackoffice,mcc,wishlist,mediaconversion,solrfacetsearch,solrfacetsearchhmc,voucher,promotions,basecommerce,ticketsystem,cms2,cms2lib,btg,cmscockpit,btgcockpit,b2bcommerce,payment,commerceservices,b2bapprovalprocess,commercewebservicescommons,cscockpit,acceleratorservices,b2bacceleratorservices,acceleratorcms,commercefacades,acceleratorfacades,acceleratorstorefrontcommons,b2bacceleratorfacades,addonsupport,sapcoreaddon,captchaaddon,liveeditaddon,commercesearch,commercesearchhmc,commercesearchbackoffice,datahubadapter,sapcoreconfiguration,sapmodel,sapproductavailability,sapproductavailabilityhmc,b2bsapproductavailability,sappricingbol,sappricinghmc,sappricing,sappricingproductcarouseladdon,b2bsappricing,sapcustomerb2c,sapcustomerb2b,sapmodelhmc,saporderexchange,saporderexchangeb2b,sapcoreconfigurationhmc,sapproducthmc,sapcoreconfigurationbackoffice,multipaymentmode,amazonpay,codpayment,bspay,paypalservice

这也是您可能想要配置 Sonar 实例结果需要发送到的位置。

关于sonarqube - 如何将 SonarQube 与 SAP Hybris 集成,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39147071/

34 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com