2017-06-19 91 views
-1
mydep] $ /var/jenkins_home/tools/hudson.tasks.Ant_AntInstallation/Ant/bin/ant deploy 
Buildfile: /var/jenkins_home/workspace/mydep/build.xml 
    [taskdef] Could not load definitions from resource /Users/mannesiddhardha/.ant/lib/antlib.xml. It could not be found. 

deploy: 

BUILD FAILED 
/var/jenkins_home/workspace/mydep/build.xml:12: Problem: failed to create task or type antlib:com.salesforce:deploy 
Cause: The name is undefined. 
Action: Check the spelling. 
Action: Check that any custom tasks/types have been declared. 
Action: Check that any <presetdef>/<macrodef> declarations have taken place. 
No types or tasks have been defined in this namespace yet 

This appears to be an antlib declaration. 
Action: Check that the implementing library exists in one of: 
     -/var/jenkins_home/tools/hudson.tasks.Ant_AntInstallation/Ant/lib 
     -/var/jenkins_home/.ant/lib 
     -a directory added on the command line with the -lib argument 
+0

是否设置了“ANT_HOME”? – Rao

+0

我在我的Mac上安装了Ant“brew install Ant” – siddhardha

+0

当我查看“env”时,我还没有找到ant ANT_HOME路径。 – siddhardha

回答

0

将Antlib.jar文件添加到Ant_Home/lib文件夹并再次尝试。

+0

我的ANT_HOME/lib中有antlib.xml,并且有一些jar文件,但是我还没有找到任何antlib.jar。 – siddhardha

+0

我需要手动下载并放置它吗? – siddhardha

+0