只需要添加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>