[英]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.