【发布时间】:2018-03-05 06:22:42
【问题描述】:
我想用 Maven 执行 windows powershell 脚本。这是我尝试过的:
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<version>1.1.1</version>
<executions>
<execution>
<id>some-execution</id>
<goals>
<goal>exec</goal>
</goals>
</execution>
</executions>
<configuration>
<executable>D:\Projects\test.ps1</executable>
</configuration>
</plugin>
但它只是在执行 pom 时打开 powershell 脚本
mvn exec:exec
【问题讨论】:
标签: maven powershell maven-3 pom.xml