`

maven-antrun-plugin中无法调用 jsch

 
阅读更多

只需要添加jsch依赖

<plugin>
  <groupId>org.apache.maven.plugins</groupId>
  <artifactId>maven-antrun-plugin</artifactId>
  <version>1.7</version>
  <dependencies>
    <dependency>
      <groupId>org.apache.ant</groupId>
      <artifactId>ant-jsch</artifactId>
      <version>1.8.2</version>
    </dependency>
  </dependencies>
  <executions>
    <execution>
      <id>deploy-archive</id>
      <phase>integration-test</phase>
      <goals>
	<goal>run</goal>
      </goals>
    </execution>
  </executions>
</plugin>

 

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics