Estou tentando instalar o Apache Ivy e baixei o binário. Seguindo a pergunta aqui: Como instalar o ant & ivy? e instruções aqui: http://ant.apache.org/ivy/history/2.3.0/install.html Mudei o binário do diretório de download como tal:
sudo cp ivy-2.3.0.jar /usr/share/ant/lib/ivy.jar
No entanto, quando eu corro formiga do exemplo do hello-ivy, ainda recebo:
apache-ivy-2.3.0/src/example/hello-ivy/build.xml:38: Problem: failed to create task or type antlib:org.apache.ivy.ant:retrieve
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
Eu também tentei colocá-lo em $ HOME / .ant / lib. Eu também tentei executar da seguinte forma:
ant-lib / usr / share / form / lib
Estou executando o CentOS6.4 com Ant 1.7.1.
Ele ESTÁ aparecendo no meu classpath. De antdiagnósticos:
java.class.path: /usr/share/java/ant.jar:/usr/share/java/ant-launcher.jar:/usr/share/java/jaxp_parser_impl.jar:/usr/share/java/xml- commons-apis.jar: /usr/share/java/antlr.jar: /usr/share/java/ant/ant-antlr.jar: /usr/share/java/bcel.jar: /usr/share/java/ ant / ant-apache-bcel.jar: /usr/share/java/bsf.jar: /usr/share/java/ant/ant-apache-bsf.jar: /usr/share/java/log4j.jar: / usr / share / java / ant / ant-apache-log4j.jar: /usr/share/java/oro.jar: /usr/share/java/ant/ant-apache-oro.jar: / usr / share / java /regexp.jar:/usr/share/java/ant/ant-apache-regexp.jar:/usr/share/java/xml-commons-resolver.jar:/usr/share/java/ant/ant-apache- resolver.jar: /usr/share/java/jakarta-commons-logging.jar: /usr/share/java/ant/ant-commons-logging.jar: /usr/share/java/jakarta-commons-net.jar : /usr/share/java/ant/ant-commons-net.jar: /usr/share/java/javamail.jar: /usr/share/java/jaf.jar:/usr/share/java/ant/ant-javamail.jar:/usr/share/java/jdepend.jar:/usr/share/java/ant/ant-jdepend.jar:/usr/share/java/jsch. jar: /usr/share/java/ant/ant-jsch.jar: /usr/share/java/junit.jar: /usr/share/java/ant/ant-junit.jar: / usr / share / java / ant / ant-nodeps.jar: /usr/share/java/ant/ant-swing.jar: /usr/share/java/jaxp_transform_impl.jar: /usr/share/java/ant/ant-trax.jar: / usr / share / java / xalan-j2-serializer.jar: /usr/lib/jvm/java/lib/tools.jar: /home/jteems/.ant/lib/ivy.jar: / usr / share / ant / lib / ant-apache-resolver.jar: /usr/share/ant/lib/ant-apache-regexp.jar: /usr/share/ant/lib/ant-javamail.jar: / usr / share / ant / lib /ant-apache-bsf.jar:/usr/share/ant/lib/ant-launcher.jar:/usr/share/ant/lib/ant-antlr.jar:/usr/share/ant/lib/ant- apache-log4j.jar:/usr/share/java/ant/ant-jsch.jar:/usr/share/java/junit.jar:/usr/share/java/ant/ant-junit.jar:/usr/share/java/ant/ ant-nodeps.jar: /usr/share/java/ant/ant-swing.jar: /usr/share/java/jaxp_transform_impl.jar: /usr/share/java/ant/ant-trax.jar: / usr / compartilhar / java / xalan-j2-serializer.jar: /usr/lib/jvm/java/lib/tools.jar: /home/jteems/.ant/lib/ivy.jar: /usr/share/ant/lib/ ant-apache-resolver.jar: /usr/share/ant/lib/ant-apache-regexp.jar: /usr/share/ant/lib/ant-javamail.jar: / usr / share / ant / lib / ant -apache-bsf.jar: /usr/share/ant/lib/ant-launcher.jar: /usr/share/ant/lib/ant-antlr.jar: /usr/share/ant/lib/ant-apache- log4j.jar:/usr/share/java/ant/ant-jsch.jar:/usr/share/java/junit.jar:/usr/share/java/ant/ant-junit.jar:/usr/share/java/ant/ ant-nodeps.jar: /usr/share/java/ant/ant-swing.jar: /usr/share/java/jaxp_transform_impl.jar: /usr/share/java/ant/ant-trax.jar: / usr / compartilhar / java / xalan-j2-serializer.jar: /usr/lib/jvm/java/lib/tools.jar: /home/jteems/.ant/lib/ivy.jar: /usr/share/ant/lib/ ant-apache-resolver.jar: /usr/share/ant/lib/ant-apache-regexp.jar: /usr/share/ant/lib/ant-javamail.jar: / usr / share / ant / lib / ant -apache-bsf.jar: /usr/share/ant/lib/ant-launcher.jar: /usr/share/ant/lib/ant-antlr.jar: /usr/share/ant/lib/ant-apache- log4j.jar:/usr/lib/jvm/java/lib/tools.jar:/home/jteems/.ant/lib/ivy.jar:/usr/share/ant/lib/ant-apache-resolver.jar:/usr/share /ant/lib/ant-apache-regexp.jar:/usr/share/ant/lib/ant-javamail.jar:/usr/share/ant/lib/ant-apache-bsf.jar:/usr/share/ ant / lib / ant-launcher.jar: /usr/share/ant/lib/ant-antlr.jar: /usr/share/ant/lib/ant-apache-log4j.jar:/usr/lib/jvm/java/lib/tools.jar:/home/jteems/.ant/lib/ivy.jar:/usr/share/ant/lib/ant-apache-resolver.jar:/usr/share /ant/lib/ant-apache-regexp.jar:/usr/share/ant/lib/ant-javamail.jar:/usr/share/ant/lib/ant-apache-bsf.jar:/usr/share/ ant / lib / ant-launcher.jar: /usr/share/ant/lib/ant-antlr.jar: /usr/share/ant/lib/ant-apache-log4j.jar:/usr/share/ant/lib/ivy.jar : /usr/share/ant/lib/ant-commons-logging.jar: /usr/share/ant/lib/ant-jdepend.jar: / usr / share / ant / lib / ant-nodeps.jar: /usr/share/ant/lib/ant-swing.jar: /usr/share/ant/lib/ant-jsch.jar: / usr / share / ant / lib / ant -trax.jar: /usr/share/ant/lib/ant-commons-net.jar: /usr/share/ant/lib/ant-junit.jar: / usr / share / ant / lib / ant-bootstrap. jar: /usr/share/ant/lib/ant.jar: /usr/share/ant/lib/ant-apache-bcel.jar: /usr/share/ant/lib/ant-apache-oro.jar
Tudo sem sucesso. Alguém tem alguma ideia?