[英]sourceanalyzer is not recognized as an internal or external command
這些是我為我的源代碼設置Fortify SCA所遵循的步驟。
嘗試運行mvn sca:translate .
,它給了我下面的錯誤。
[INFO] Created output dir <dir> [INFO] cmd: "sourceanalyzer @<dir>/sca-translate-java.txt" 'sourceanalyzer' is not recognized as an internal or external command, operable program or batch file. [ERROR] Error invoking sourceanalyzer. Exit code: 1. Verify your project settings and your SCA installation. [INFO] Executing command: sourceanalyzer -b <id> -group-id -artifact-id <artifact> -show-module ERROR] Command execution failed. Exit code: 1. Make sure that the executable is available
不知道我在這里想念的是什么。
確保您可以直接從命令行運行sourceanalyzer。
C:\>sourceanalyzer -?
如果那不起作用,則可能必須重新安裝Fortify,但首先請檢查PATH變量。
C:\>echo %PATH%
那應該報告Fortify安裝位置bin目錄:
C:\Program Files\HP_Fortify\HP_Fortify_SCA_$version\bin
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.