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>

猜你喜欢

转载自ayk-tao.iteye.com/blog/2158432