相关疑难解决方法(0)

我想从Maven的pom.xml中执行shell命令

我想用Maven执行Linux shell命令.这是我尝试过的:

<plugin>  
  <groupId>org.codehaus.mojo</groupId> 
  <artifactId>exec-maven-plugin</artifactId> 
  <version>1.1.1</version> 
  <executions>
    <execution>
      <goals>
        <goal>exec</goal> 
      </goals>
    </execution>
  </executions>
  <configuration>
    <executable>hostname</executable> 
  </configuration>
</plugin>
Run Code Online (Sandbox Code Playgroud)

maven-2

99
推荐指数
4
解决办法
15万
查看次数

标签 统计

maven-2 ×1