[英]sourceanalyzer is not recognized as an internal or external command
These are the steps i'm following to set up Fortify SCA for my Source code. 这些是我为我的源代码设置Fortify SCA所遵循的步骤。
While trying to run mvn sca:translate .
尝试运行
mvn sca:translate .
, it gives me below error. ,它给了我下面的错误。
[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
Not sure what i'm missing here. 不知道我在这里想念的是什么。
Make sure you can run sourceanalyzer directly from the command line. 确保您可以直接从命令行运行sourceanalyzer。
C:\>sourceanalyzer -?
If that doesn't work, you may have to reinstall Fortify but first check your PATH variable. 如果那不起作用,则可能必须重新安装Fortify,但首先请检查PATH变量。
C:\>echo %PATH%
That should report the Fortify install location bin directory: 那应该报告Fortify安装位置bin目录:
C:\Program Files\HP_Fortify\HP_Fortify_SCA_$version\bin
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.