簡體   English   中英

無法將sourceanalyzer識別為內部或外部命令

[英]sourceanalyzer is not recognized as an internal or external command

這些是我為我的源代碼設置Fortify SCA所遵循的步驟。

  1. 作為我的Maven插件(pom.xml)的一部分,包含了sca-maven-plugin-3.90.jar。
  2. 嘗試運行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.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM