在 Maven 中使用-q 选项时,它会静默所有日志输出,“props”除外。我想安静那些“道具”输出,怎么做?
我在跑:
mvn versions:set -DnewVersion=0.0.2 -DgenerateBackupPoms=false
输出:
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO]
[INFO] Products
[INFO] Products :: Base
[INFO] Products :: Badges
[INFO] Assembly
Downloading: http://nexus.xxx
Downloading: http://nexus.xxx
Downloaded: http://nexus.xxx (17 KB at 85.4 KB/sec)
Downloaded: http://nexus.xxx (27 KB at 136.0 KB/sec)
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Project 0.0.2-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- versions-maven-plugin:2.0:set (default-cli) @ campaigns ---
[INFO] Processing
[INFO] Updating project
[INFO] from version 0.0.2-SNAPSHOT to 0.0.2
Props: {project.version=0.0.2, project.artifactId=campaigns, project.groupId=campaigns}
Props: {project.version=0.0.2, project.artifactId=campaigns, project.groupId=campaigns}
Props: {project.version=0.0.2, project.artifactId=campaigns, project.groupId=campaigns}
Props: {project.version=0.0.2, project.artifactId=campaigns, project.groupId=campaigns}
Props: {project.version=0.0.2, project.artifactId=campaigns, project.groupId=campaigns}
如果我使用 -q 选项,它会静音所有“信息”和“下载”,但不会静音“道具”。
我有一个项目,它在构建日志中为每个“mvn 版本:set”命令生成 60 MB 的“道具”,所以我真的很想知道如何让这些“道具”安静下来。
也许这是Maven 版本插件中的一个错误,即使使用了 -q 选项,它也不会让那些“道具”安静下来。