[英]How to get “[DEBUG] Executing command line:” when running exec-maven-plugin java
I am running someone else's pom.xml
which has:我正在运行其他人的
pom.xml
,它具有:
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<version>1.3.2</version>
<executions>
<execution>
<goals>
<goal>java</goal>
</goals>
</execution>
</executions>
<configuration>
<mainClass>${main.class.remote-query}</mainClass>
</configuration>
</plugin>
When I run mvn
with -X
the actual command that is executed is not displayed.当我使用
-X
运行mvn
,不显示执行的实际命令。 Changing java
to exec
will probably provide it but I am curious if there is a way to see the full command line when using java.将
java
更改为exec
可能会提供它,但我很好奇在使用 java 时是否有办法查看完整的命令行。
According to ExecJavaMojo.html
is should say something like: 'Invoking ' + the class to call + main-method + its arguments.根据
ExecJavaMojo.html
应该这样说:“调用”+要调用的类+主方法+它的参数。 However, it is executed within the same JVM and not from commandline.但是,它是在同一个 JVM 中执行的,而不是从命令行执行的。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.