Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/linux/26.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/maven/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
当我在Linux机器上运行时,显示其执行日志的命令,但当我通过ssh触发相同的命令时,它不显示日志_Linux_Maven_Tfs_Fortify - Fatal编程技术网

当我在Linux机器上运行时,显示其执行日志的命令,但当我通过ssh触发相同的命令时,它不显示日志

当我在Linux机器上运行时,显示其执行日志的命令,但当我通过ssh触发相同的命令时,它不显示日志,linux,maven,tfs,fortify,Linux,Maven,Tfs,Fortify,当我在putty中运行下面的命令时,它显示的执行日志如下 sourceanalyzer -b sample mvn com.fortify.sca.plugins.maven:sca-maven-plugin:18.10:translate [INFO] Scanning for projects... [WARNING] [WARNING] Some problems were encountered while building the effective model for com.te

当我在putty中运行下面的命令时,它显示的执行日志如下

sourceanalyzer -b sample mvn com.fortify.sca.plugins.maven:sca-maven-plugin:18.10:translate

[INFO] Scanning for projects...
[WARNING]
[WARNING] Some problems were encountered while building the effective model for com.test:sample:jar:0.0.5-SNAPSHOT`
----------
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-surefire-plugin is missing. @ line 159, column 12
[WARNING] 'build.plugins.plugin.version' for org.springframework.boot:spring-boot-maven-plugin is missing. @ line 155, column 12
[WARNING]
[WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.
[WARNING]
[WARNING] For this reason, future Maven versions might no longer support building such malformed projects.
[WARNING]
[INFO]
当我在TFS中的ssh任务上运行相同的命令时,上面的执行日志并没有显示&获得如下输出

2019-01-31T17:48:41.2940860Z sourceanalyzer -b sample mvn com.fortify.sca.plugins.maven:sca-maven-plugin:18.10:translate
2019-01-31T17:48:42.2004980Z ##[section]Finishing: Fortify scanning

我希望得到与TFS构建的第一步相同的输出。

一个简单的修复方法是将命令的输出通过管道传输到文本文件

[Fortify_command] > outputfile.txt