请详细解释一下这个命令,好吗?什么是高管?和执行官:执行官? -Pexperiment? -DconfigFile?
mvn exec:exec -Pexperiment -DconfigFile=src/test/resources/configFile/configFile-demo000.js
答案 0 :(得分:3)
它使用'experiment'配置文件运行exec插件定义的exec目标。 'config File'值也在命令行中定义为系统属性。
答案 1 :(得分:1)
mvn
是Maven Command exec:exec
是目标org.codehaus.mojo:exec-maven-plugin:1.2.1:exec
的快捷方式(版本可能不同)。这在此处描述:http://mojo.codehaus.org/exec-maven-plugin/exec-mojo.html。-Pexperiment
告诉maven使用名为experiment
的构建配置文件。构建配置文件在此处描述:http://maven.apache.org/guides/introduction/introduction-to-profiles.html -DconfigFile=...
是maven在pom文件或插件中使用的系统属性。 Maven属性在此处描述:http://www.sonatype.com/books/mvnref-book/reference/resource-filtering-sect-properties.html。如何配置插件在此处描述:http://maven.apache.org/guides/mini/guide-configuring-plugins.html