Ant scp task not working, even with jsch on ant/lib

后端 未结 3 1184
广开言路
广开言路 2020-12-31 03:26

I need to copy a war file via scp.

I have added the jsch-0.1.42.jar to $ANT_HOME/lib but I\'m still getting this error:

3条回答
  •  一整个雨季
    2020-12-31 03:38

    This looks like your problem, from the top of the diagnostics:

    optional tasks : not available

    Your $ANT_HOME/lib directory is missing ant-jsch.jar, which is where your missing class comes from.

    I'm not sure how this happened - I always install Ant from the ZIP file on the download site, which includes all the optional tasks. If you installed Ant from a Linux package, try checking to see if there is a separate package for the optional tasks.

    Once you get the optional tasks installed, I would delete the old version of jsch.jar as @trashgod suggests.

提交回复
热议问题