我是使用 maven 的新手(如果问题看起来很愚蠢,请原谅我),我正在尝试使用 maven exec 插件在将项目打包为 jar 后运行我的项目,但我对所需的目标和参数标签感到困惑在插件标签内的 pom.xml 中
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<version>1.1.1</version>
<executions>><!-- what does this tag specify,nearly everything in it is un-understood to me-->
<execution>
<phase>test</phase>
<goals>
<goal>java</goal>
</goals>
<configuration>
<mainClass>my.company.name.packageName.TestMain</mainClass><!-- i understand its the path of my class which has the main method -->
<arguments><!-- what does this tell to the maven or the plugin ?-->
<argument>myArg1</argument>
<argument>myArg2</argument><!-- are these arguments passed to my main method in the args array?-->
</arguments>
</configuration>
</execution>
</executions>
</plugin>
参数标签在做什么?它指定了什么?它是否为 main 方法提供 String args 数组或什么?我很困惑,请帮忙