繁体   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