ANT - A build of Java Application
IVY - Dependency manager
Install Ant
nutch@45883500b170:~$ pwd /home/nutch nutch@45883500b170:~$ tar xzvf /software/apache-ivy-2.4.0-bin-with-deps.tar.gz ... nutch@45883500b170:~$ tar xzvf /software/apache-ant-1.9.7-bin.tar.gz ... nutch@45883500b170:~$ ls -l total 12 drwxr-xr-x 6 nutch nutch 4096 Apr 9 06:38 apache-ant-1.9.7 drwxr-xr-x 5 nutch nutch 4096 Aug 30 07:10 apache-ivy-2.4.0 drwxr-xr-x 7 nutch nutch 4096 Aug 30 05:48 apache-nutch-2.3.1 nutch@45883500b170:~/apache-ant-1.9.7$ tail ~/.bashrc if [ -f /usr/share/bash-completion/bash_completion ]; then . /usr/share/bash-completion/bash_completion elif [ -f /etc/bash_completion ]; then . /etc/bash_completion fi fi JAVA_HOME=/usr/lib/jvm/java-8-oracle ANT_HOME=/home/nutch/apache-ant-1.9.7 PATH=$ANT_HOME/bin:$PATH export JAVA_HOME ANT_HOME PATH
nutch@45883500b170:/$ cd nutch@45883500b170:~$ nutch@45883500b170:~$ cd apache-ant-1.9.7/ nutch@45883500b170:~/apache-ant-1.9.7$ nutch@45883500b170:~/apache-ant-1.9.7$ nutch@45883500b170:~/apache-ant-1.9.7$ ant -f fetch.xml -Ddest=system Buildfile: /home/nutch/apache-ant-1.9.7/fetch.xml pick-dest: [echo] Downloading to /home/nutch/apache-ant-1.9.7/lib probe-m2: download-m2: [echo] Downloading to /home/nutch/apache-ant-1.9.7/lib [get] Getting: http://repo1.maven.org/maven2/org/apache/maven/maven-artifact-ant/2.0.4/maven-artifact-ant-2.0.4-dep.jar [get] To: /home/nutch/apache-ant-1.9.7/lib/maven-artifact-ant-2.0.4-dep.jar [get] .................................................... [get] ................................... dont-validate-m2-checksum: validate-m2-checksum: checksum-mismatch: checksum-match: get-m2: macros: init: logging: [artifact:dependencies] Downloading: log4j/log4j/1.2.14/log4j-1.2.14.pom [artifact:dependencies] Transferring 2K [artifact:dependencies] Downloading: log4j/log4j/1.2.14/log4j-1.2.14.jar [artifact:dependencies] Transferring 358K [copy] Copying 1 file to /home/nutch/apache-ant-1.9.7/lib [artifact:dependencies] Downloading: commons-logging/commons-logging-api/1.1/commons-logging-api-1.1.pom [artifact:dependencies] Transferring 5K [artifact:dependencies] Downloading: commons-logging/commons-logging-api/1.1/commons-logging-api-1.1.jar [artifact:dependencies] Transferring 43K [copy] Copying 1 file to /home/nutch/apache-ant-1.9.7/lib junit: [artifact:dependencies] Downloading: junit/junit/4.11/junit-4.11.pom [artifact:dependencies] Transferring 2K [artifact:dependencies] Downloading: org/hamcrest/hamcrest-core/1.3/hamcrest-core-1.3.pom [artifact:dependencies] Transferring 0K [artifact:dependencies] Downloading: org/hamcrest/hamcrest-parent/1.3/hamcrest-parent-1.3.pom [artifact:dependencies] Transferring 1K [artifact:dependencies] Downloading: org/hamcrest/hamcrest-core/1.3/hamcrest-core-1.3.jar [artifact:dependencies] Transferring 43K [artifact:dependencies] Downloading: junit/junit/4.11/junit-4.11.jar [artifact:dependencies] Transferring 239K [copy] Copying 2 files to /home/nutch/apache-ant-1.9.7/lib xml: [artifact:dependencies] Downloading: xalan/xalan/2.7.1/xalan-2.7.1.pom [artifact:dependencies] Transferring 1K [artifact:dependencies] Downloading: org/apache/apache/4/apache-4.pom [artifact:dependencies] Transferring 4K [artifact:dependencies] Downloading: xalan/serializer/2.7.1/serializer-2.7.1.pom [artifact:dependencies] Transferring 1K [artifact:dependencies] Downloading: xml-apis/xml-apis/1.3.04/xml-apis-1.3.04.pom [artifact:dependencies] Transferring 1K [artifact:dependencies] Downloading: org/apache/apache/3/apache-3.pom [artifact:dependencies] Transferring 3K [artifact:dependencies] Downloading: xalan/serializer/2.7.1/serializer-2.7.1.jar [artifact:dependencies] Transferring 271K [artifact:dependencies] Downloading: xml-apis/xml-apis/1.3.04/xml-apis-1.3.04.jar [artifact:dependencies] Transferring 189K [artifact:dependencies] Downloading: xalan/xalan/2.7.1/xalan-2.7.1.jar [artifact:dependencies] Transferring 3101K [copy] Copying 3 files to /home/nutch/apache-ant-1.9.7/lib [artifact:dependencies] Downloading: xml-resolver/xml-resolver/1.2/xml-resolver-1.2.pom [artifact:dependencies] Transferring 1K [artifact:dependencies] Downloading: xml-resolver/xml-resolver/1.2/xml-resolver-1.2.jar [artifact:dependencies] Transferring 82K [copy] Copying 1 file to /home/nutch/apache-ant-1.9.7/lib networking: [artifact:dependencies] Downloading: commons-net/commons-net/1.4.1/commons-net-1.4.1.pom [artifact:dependencies] Transferring 4K [artifact:dependencies] Downloading: oro/oro/2.0.8/oro-2.0.8.pom [artifact:dependencies] Transferring 0K [artifact:dependencies] Downloading: oro/oro/2.0.8/oro-2.0.8.jar [artifact:dependencies] Transferring 63K [artifact:dependencies] Downloading: commons-net/commons-net/1.4.1/commons-net-1.4.1.jar [artifact:dependencies] Transferring 176K [copy] Copying 2 files to /home/nutch/apache-ant-1.9.7/lib [artifact:dependencies] Downloading: com/jcraft/jsch/0.1.50/jsch-0.1.50.pom [artifact:dependencies] Transferring 3K [artifact:dependencies] Downloading: org/sonatype/oss/oss-parent/6/oss-parent-6.pom [artifact:dependencies] Transferring 4K [artifact:dependencies] Downloading: com/jcraft/jsch/0.1.50/jsch-0.1.50.jar [artifact:dependencies] Transferring 248K [copy] Copying 1 file to /home/nutch/apache-ant-1.9.7/lib regexp: [artifact:dependencies] Downloading: regexp/regexp/1.3/regexp-1.3.pom [artifact:dependencies] Transferring 0K [artifact:dependencies] Downloading: regexp/regexp/1.3/regexp-1.3.jar [artifact:dependencies] Transferring 24K [copy] Copying 1 file to /home/nutch/apache-ant-1.9.7/lib antlr: [artifact:dependencies] Downloading: antlr/antlr/2.7.7/antlr-2.7.7.pom [artifact:dependencies] Transferring 0K [artifact:dependencies] Downloading: antlr/antlr/2.7.7/antlr-2.7.7.jar [artifact:dependencies] Transferring 434K [copy] Copying 1 file to /home/nutch/apache-ant-1.9.7/lib bcel: [artifact:dependencies] Downloading: bcel/bcel/5.1/bcel-5.1.pom [artifact:dependencies] Transferring 0K [artifact:dependencies] Downloading: regexp/regexp/1.2/regexp-1.2.pom [artifact:dependencies] Transferring 0K [artifact:dependencies] Downloading: regexp/regexp/1.2/regexp-1.2.jar [artifact:dependencies] Transferring 29K [artifact:dependencies] Downloading: bcel/bcel/5.1/bcel-5.1.jar [artifact:dependencies] Transferring 503K [copy] Copying 2 files to /home/nutch/apache-ant-1.9.7/lib jdepend: [artifact:dependencies] Downloading: jdepend/jdepend/2.9.1/jdepend-2.9.1.pom [artifact:dependencies] Transferring 0K [artifact:dependencies] Downloading: jdepend/jdepend/2.9.1/jdepend-2.9.1.jar [artifact:dependencies] Transferring 56K [copy] Copying 1 file to /home/nutch/apache-ant-1.9.7/lib bsf: [artifact:dependencies] Downloading: bsf/bsf/2.4.0/bsf-2.4.0.pom [artifact:dependencies] Transferring 1K [artifact:dependencies] Downloading: commons-logging/commons-logging/1.0.4/commons-logging-1.0.4.pom [artifact:dependencies] Transferring 5K [artifact:dependencies] Downloading: bsf/bsf/2.4.0/bsf-2.4.0.jar [artifact:dependencies] Transferring 110K [artifact:dependencies] Downloading: commons-logging/commons-logging/1.0.4/commons-logging-1.0.4.jar [artifact:dependencies] Transferring 37K [copy] Copying 2 files to /home/nutch/apache-ant-1.9.7/lib debugging: [artifact:dependencies] Downloading: which/which/1.0/which-1.0.pom [artifact:dependencies] Transferring 0K [artifact:dependencies] Downloading: which/which/1.0/which-1.0.jar [artifact:dependencies] Transferring 16K [copy] Copying 1 file to /home/nutch/apache-ant-1.9.7/lib jruby: [artifact:dependencies] Downloading: org/jruby/jruby/0.9.8/jruby-0.9.8.pom [artifact:dependencies] Transferring 5K [artifact:dependencies] Downloading: org/jruby/shared/0.9.8/shared-0.9.8.pom [artifact:dependencies] Transferring 4K [artifact:dependencies] Downloading: asm/asm-commons/2.2.3/asm-commons-2.2.3.pom [artifact:dependencies] Transferring 0K [artifact:dependencies] Downloading: asm/asm-parent/2.2.3/asm-parent-2.2.3.pom [artifact:dependencies] Transferring 2K [artifact:dependencies] Downloading: asm/asm-tree/2.2.3/asm-tree-2.2.3.pom [artifact:dependencies] Transferring 0K [artifact:dependencies] Downloading: asm/asm/2.2.3/asm-2.2.3.pom [artifact:dependencies] Transferring 0K [artifact:dependencies] Downloading: asm/asm/2.2.3/asm-2.2.3.jar [artifact:dependencies] Transferring 34K [artifact:dependencies] Downloading: asm/asm-tree/2.2.3/asm-tree-2.2.3.jar [artifact:dependencies] Transferring 15K [artifact:dependencies] Downloading: org/jruby/jruby/0.9.8/jruby-0.9.8.jar [artifact:dependencies] Transferring 1644K [artifact:dependencies] Downloading: asm/asm-commons/2.2.3/asm-commons-2.2.3.jar [artifact:dependencies] Transferring 14K [copy] Copying 4 files to /home/nutch/apache-ant-1.9.7/lib beanshell: [artifact:dependencies] Downloading: org/beanshell/bsh/2.0b4/bsh-2.0b4.pom [artifact:dependencies] Transferring 1K [artifact:dependencies] Downloading: org/beanshell/beanshell/2.0b4/beanshell-2.0b4.pom [artifact:dependencies] Transferring 1K [artifact:dependencies] Downloading: org/beanshell/bsh/2.0b4/bsh-2.0b4.jar [artifact:dependencies] Transferring 275K [copy] Copying 1 file to /home/nutch/apache-ant-1.9.7/lib [artifact:dependencies] Downloading: org/beanshell/bsh-core/2.0b4/bsh-core-2.0b4.pom [artifact:dependencies] Transferring 0K [artifact:dependencies] Downloading: org/beanshell/bsh-core/2.0b4/bsh-core-2.0b4.jar [artifact:dependencies] Transferring 140K [copy] Copying 1 file to /home/nutch/apache-ant-1.9.7/lib rhino: [artifact:dependencies] Downloading: rhino/js/1.6R7/js-1.6R7.pom [artifact:dependencies] Transferring 0K [artifact:dependencies] Downloading: rhino/js/1.6R7/js-1.6R7.jar [artifact:dependencies] Transferring 794K [copy] Copying 1 file to /home/nutch/apache-ant-1.9.7/lib script: javamail: [artifact:dependencies] Downloading: javax/mail/mail/1.4/mail-1.4.pom [artifact:dependencies] Transferring 0K [artifact:dependencies] Downloading: javax/activation/activation/1.1/activation-1.1.pom [artifact:dependencies] Transferring 1K [artifact:dependencies] Downloading: javax/mail/mail/1.4/mail-1.4.jar [artifact:dependencies] Transferring 379K [artifact:dependencies] Downloading: javax/activation/activation/1.1/activation-1.1.jar [artifact:dependencies] Transferring 61K [copy] Copying 2 files to /home/nutch/apache-ant-1.9.7/lib jspc: [artifact:dependencies] Downloading: tomcat/jasper-compiler/4.1.36/jasper-compiler-4.1.36.pom [artifact:dependencies] [WARNING] Unable to get resource from repository remote (http://repo1.maven.org/maven2/) [artifact:dependencies] Downloading: tomcat/jasper-compiler/4.1.36/jasper-compiler-4.1.36.pom [artifact:dependencies] [WARNING] Unable to get resource from repository central (http://repo1.maven.org/maven2) [artifact:dependencies] Downloading: tomcat/jasper-compiler/4.1.36/jasper-compiler-4.1.36.jar [artifact:dependencies] Transferring 179K [copy] Copying 1 file to /home/nutch/apache-ant-1.9.7/lib [artifact:dependencies] Downloading: tomcat/jasper-runtime/4.1.36/jasper-runtime-4.1.36.pom [artifact:dependencies] [WARNING] Unable to get resource from repository remote (http://repo1.maven.org/maven2/) [artifact:dependencies] Downloading: tomcat/jasper-runtime/4.1.36/jasper-runtime-4.1.36.pom [artifact:dependencies] [WARNING] Unable to get resource from repository central (http://repo1.maven.org/maven2) [artifact:dependencies] Downloading: tomcat/jasper-runtime/4.1.36/jasper-runtime-4.1.36.jar [artifact:dependencies] Transferring 70K [copy] Copying 1 file to /home/nutch/apache-ant-1.9.7/lib [artifact:dependencies] Downloading: javax/servlet/servlet-api/2.3/servlet-api-2.3.pom [artifact:dependencies] Transferring 0K [artifact:dependencies] Downloading: javax/servlet/servlet-api/2.3/servlet-api-2.3.jar [artifact:dependencies] Transferring 76K [copy] Copying 1 file to /home/nutch/apache-ant-1.9.7/lib jai: [artifact:dependencies] Downloading: javax/media/jai-core/1.1.3/jai-core-1.1.3.pom [artifact:dependencies] Transferring 1K [artifact:dependencies] Downloading: javax/media/jai-core/1.1.3/jai-core-1.1.3.jar [artifact:dependencies] Transferring 1856K [copy] Copying 1 file to /home/nutch/apache-ant-1.9.7/lib [artifact:dependencies] Downloading: com/sun/media/jai-codec/1.1.3/jai-codec-1.1.3.pom [artifact:dependencies] Transferring 1K [artifact:dependencies] Downloading: com/sun/media/jai-codec/1.1.3/jai-codec-1.1.3.jar [artifact:dependencies] Transferring 252K [copy] Copying 1 file to /home/nutch/apache-ant-1.9.7/lib nonm2-macros: init-no-m2: init-cache: -setup-temp-cache: [mkdir] Created dir: /home/nutch/.ant/tempcache -fetch-netrexx: -fetch-netrexx-no-commons-net: [get] Getting: ftp://ftp.software.ibm.com/software/awdtools/netrexx/NetRexx.zip [get] To: /home/nutch/.ant/tempcache/NetRexx.zip [get] Error getting ftp://ftp.software.ibm.com/software/awdtools/netrexx/NetRexx.zip to /home/nutch/.ant/tempcache/NetRexx.zip BUILD FAILED /home/nutch/apache-ant-1.9.7/fetch.xml:328: java.net.ConnectException: Connection timed out at java.net.PlainSocketImpl.socketConnect(Native Method) at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350) at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206) at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188) at java.net.Socket.connect(Socket.java:589) at java.net.Socket.connect(Socket.java:538) at sun.net.ftp.impl.FtpClient.doConnect(FtpClient.java:957) at sun.net.ftp.impl.FtpClient.tryConnect(FtpClient.java:917) at sun.net.ftp.impl.FtpClient.connect(FtpClient.java:1012) at sun.net.ftp.impl.FtpClient.connect(FtpClient.java:998) at sun.net.www.protocol.ftp.FtpURLConnection.connect(FtpURLConnection.java:294) at org.apache.tools.ant.taskdefs.Get$GetThread.openConnection(Get.java:728) at org.apache.tools.ant.taskdefs.Get$GetThread.get(Get.java:641) at org.apache.tools.ant.taskdefs.Get$GetThread.run(Get.java:631) Total time: 4 minutes 17 seconds
Manual install Ivy
nutch@45883500b170:~/apache-ant-1.9.7/lib$ cp -rp ~/apache-ivy-2.4.0/ivy-2.4.0.jar . nutch@45883500b170:~/apache-ant-1.9.7/lib$
No comments:
Post a Comment