I am running someone else's pom.xml
which has:
<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. 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.
According to ExecJavaMojo.html
is should say something like: 'Invoking ' + the class to call + main-method + its arguments. However, it is executed within the same JVM and not from commandline.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.