Maven的蚂蚁SCP错误 [英] Maven Ant SCP error

查看:769
本文介绍了Maven的蚂蚁SCP错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我运行一个Maven的antrun-插件与蚂蚁命令(Maven的3.0.3):

when I run a "maven-antrun-plugin" (maven 3.0.3) with the ant-command:

 <scp />

我得到:
问题:无法创建任务或类型SCP
[错误]原因:类org.apache.tools.ant.taskdefs.optional.ssh.Scp未找到

I get: Problem: failed to create task or type scp [ERROR] Cause: the class org.apache.tools.ant.taskdefs.optional.ssh.Scp was not found.

我在$ ANT_HOME /检查lib和罐子那里(蚂蚁jsch.jar)。

I checked in my $ANT_HOME/lib and the jar is there (ant-jsch.jar).

这是什么问题?

顺便说一下,我使用Ubuntu 11.10。蚂蚁是从网站上下载(从Ubuntu的存储库,我得到了同样的问题)

BTW I'm using ubuntu 11.10. Ant is downloaded from the website (as from the ubuntu's repository I got the same problem)

推荐答案

你忘了设定的任务定义

<taskdef name="scp" classname="org.apache.tools.ant.taskdefs.optional.ssh.Scp" classpathref="lib/ant-jsch.jar" />

这篇关于Maven的蚂蚁SCP错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆