[ https://issues.apache.org/jira/browse/NUTCH-1243?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13665621#comment-13665621 ]
Lewis John McGibbney commented on NUTCH-1243: --------------------------------------------- I just deleted my ~/.ivy2 cache and when compiling 2.x HEAD I get the following {code} [javac] /home/law/Downloads/asf/2.x/src/plugin/lib-regex-filter/src/test/org/apache/nutch/urlfilter/api/RegexURLFilterBaseTest.java:27: error: package org.junit does not exist [javac] import static org.junit.Assert.*; [javac] ^ [javac] /home/law/Downloads/asf/2.x/src/plugin/lib-regex-filter/src/test/org/apache/nutch/urlfilter/api/RegexURLFilterBaseTest.java:63: error: cannot find symbol [javac] fail(e.toString()); [javac] ^ [javac] symbol: method fail(String) [javac] location: class RegexURLFilterBaseTest [javac] /home/law/Downloads/asf/2.x/src/plugin/lib-regex-filter/src/test/org/apache/nutch/urlfilter/api/RegexURLFilterBaseTest.java:76: error: cannot find symbol [javac] fail(e.toString()); [javac] ^ [javac] symbol: method fail(String) [javac] location: class RegexURLFilterBaseTest [javac] /home/law/Downloads/asf/2.x/src/plugin/lib-regex-filter/src/test/org/apache/nutch/urlfilter/api/RegexURLFilterBaseTest.java:87: error: cannot find symbol [javac] fail(e.toString()); [javac] ^ [javac] symbol: method fail(String) [javac] location: class RegexURLFilterBaseTest [javac] /home/law/Downloads/asf/2.x/src/plugin/lib-regex-filter/src/test/org/apache/nutch/urlfilter/api/RegexURLFilterBaseTest.java:95: error: cannot find symbol [javac] fail(e.toString()); [javac] ^ [javac] symbol: method fail(String) [javac] location: class RegexURLFilterBaseTest [javac] /home/law/Downloads/asf/2.x/src/plugin/lib-regex-filter/src/test/org/apache/nutch/urlfilter/api/RegexURLFilterBaseTest.java:103: error: cannot find symbol [javac] assertTrue(expected[i].url, expected[i].sign); [javac] ^ [javac] symbol: method assertTrue(String,boolean) [javac] location: class RegexURLFilterBaseTest [javac] /home/law/Downloads/asf/2.x/src/plugin/lib-regex-filter/src/test/org/apache/nutch/urlfilter/api/RegexURLFilterBaseTest.java:105: error: cannot find symbol [javac] assertFalse(expected[i].url, expected[i].sign); [javac] ^ [javac] symbol: method assertFalse(String,boolean) [javac] location: class RegexURLFilterBaseTest [javac] 7 errors [javac] 1 warning [ant] Exiting /home/law/Downloads/asf/2.x/src/plugin/lib-regex-filter/build.xml. [ant] Exiting /home/law/Downloads/asf/2.x/src/plugin/urlfilter-automaton/build.xml. [ant] Exiting /home/law/Downloads/asf/2.x/src/plugin/build.xml. BUILD FAILED /home/law/Downloads/asf/2.x/build.xml:108: The following error occurred while executing this line: /home/law/Downloads/asf/2.x/src/plugin/build.xml:52: The following error occurred while executing this line: /home/law/Downloads/asf/2.x/src/plugin/urlfilter-automaton/build.xml:25: The following error occurred while executing this line: /home/law/Downloads/asf/2.x/src/plugin/build-plugin.xml:180: Compile failed; see the compiler error output for details. {code} Right enough when I look at the build classpath, the JUnit dependency is absent. {code} [javac] '/home/law/Downloads/asf/2.x/build/lib-regex-filter/test:/home/law/Downloads/asf/2.x/build/test/classes:/home/law/Downloads/asf/2.x/src/test:/home/law/Downloads/asf/2.x/conf:/home/law/Downloads/asf/2.x/build:/home/law/Downloads/asf/2.x/build/lib-regex-filter/classes:/home/law/Downloads/asf/2.x/build/classes:/home/law/Downloads/asf/2.x/build/lib/aopalliance-1.0.jar:/home/law/Downloads/asf/2.x/build/lib/asm-3.2.jar:/home/law/Downloads/asf/2.x/build/lib/avro-1.3.3.jar:/home/law/Downloads/asf/2.x/build/lib/commons-beanutils-1.7.0.jar:/home/law/Downloads/asf/2.x/build/lib/commons-beanutils-core-1.8.0.jar:/home/law/Downloads/asf/2.x/build/lib/commons-cli-1.2.jar:/home/law/Downloads/asf/2.x/build/lib/commons-codec-1.4.jar:/home/law/Downloads/asf/2.x/build/lib/commons-collections-3.2.1.jar:/home/law/Downloads/asf/2.x/build/lib/commons-configuration-1.6.jar:/home/law/Downloads/asf/2.x/build/lib/commons-digester-1.8.jar:/home/law/Downloads/asf/2.x/build/lib/commons-el-1.0.jar:/home/law/Downloads/asf/2.x/build/lib/commons-httpclient-3.1.jar:/home/law/Downloads/asf/2.x/build/lib/commons-io-2.4.jar:/home/law/Downloads/asf/2.x/build/lib/commons-lang-2.6.jar:/home/law/Downloads/asf/2.x/build/lib/commons-logging-1.1.1.jar:/home/law/Downloads/asf/2.x/build/lib/commons-math-2.1.jar:/home/law/Downloads/asf/2.x/build/lib/commons-net-1.4.1.jar:/home/law/Downloads/asf/2.x/build/lib/crawler-commons-0.2.jar:/home/law/Downloads/asf/2.x/build/lib/cxf-api-2.5.2.jar:/home/law/Downloads/asf/2.x/build/lib/cxf-common-utilities-2.5.2.jar:/home/law/Downloads/asf/2.x/build/lib/cxf-rt-bindings-xml-2.5.2.jar:/home/law/Downloads/asf/2.x/build/lib/cxf-rt-core-2.5.2.jar:/home/law/Downloads/asf/2.x/build/lib/cxf-rt-frontend-jaxrs-2.5.2.jar:/home/law/Downloads/asf/2.x/build/lib/cxf-rt-transports-common-2.5.2.jar:/home/law/Downloads/asf/2.x/build/lib/cxf-rt-transports-http-2.5.2.jar:/home/law/Downloads/asf/2.x/build/lib/elasticsearch-0.19.4.jar:/home/law/Downloads/asf/2.x/build/lib/geronimo-javamail_1.4_spec-1.7.1.jar:/home/law/Downloads/asf/2.x/build/lib/geronimo-stax-api_1.0_spec-1.0.1.jar:/home/law/Downloads/asf/2.x/build/lib/gora-core-0.3.jar:/home/law/Downloads/asf/2.x/build/lib/guava-11.0.2.jar:/home/law/Downloads/asf/2.x/build/lib/hadoop-core-1.1.1.jar:/home/law/Downloads/asf/2.x/build/lib/hsqldb-2.2.8.jar:/home/law/Downloads/asf/2.x/build/lib/httpclient-4.1.1.jar:/home/law/Downloads/asf/2.x/build/lib/httpcore-4.1.jar:/home/law/Downloads/asf/2.x/build/lib/icu4j-4.0.1.jar:/home/law/Downloads/asf/2.x/build/lib/jackson-core-asl-1.8.8.jar:/home/law/Downloads/asf/2.x/build/lib/jackson-mapper-asl-1.8.8.jar:/home/law/Downloads/asf/2.x/build/lib/jasper-compiler-5.5.12.jar:/home/law/Downloads/asf/2.x/build/lib/jasper-runtime-5.5.12.jar:/home/law/Downloads/asf/2.x/build/lib/jaxb-impl-2.1.13.jar:/home/law/Downloads/asf/2.x/build/lib/jdom-1.1.jar:/home/law/Downloads/asf/2.x/build/lib/jettison-1.3.1.jar:/home/law/Downloads/asf/2.x/build/lib/jetty-6.1.26.jar:/home/law/Downloads/asf/2.x/build/lib/jetty-client-6.1.26.jar:/home/law/Downloads/asf/2.x/build/lib/jetty-sslengine-6.1.26.jar:/home/law/Downloads/asf/2.x/build/lib/jetty-util-6.1.26.jar:/home/law/Downloads/asf/2.x/build/lib/jetty-util5-6.1.26.jar:/home/law/Downloads/asf/2.x/build/lib/jline-0.9.1.jar:/home/law/Downloads/asf/2.x/build/lib/jsp-2.1-6.1.14.jar:/home/law/Downloads/asf/2.x/build/lib/jsp-api-2.1-6.1.14.jar:/home/law/Downloads/asf/2.x/build/lib/jsr305-1.3.9.jar:/home/law/Downloads/asf/2.x/build/lib/jsr311-api-1.1.1.jar:/home/law/Downloads/asf/2.x/build/lib/juniversalchardet-1.0.3.jar:/home/law/Downloads/asf/2.x/build/lib/log4j-1.2.16.jar:/home/law/Downloads/asf/2.x/build/lib/lucene-analyzers-3.6.0.jar:/home/law/Downloads/asf/2.x/build/lib/lucene-core-3.6.0.jar:/home/law/Downloads/asf/2.x/build/lib/lucene-highlighter-3.6.0.jar:/home/law/Downloads/asf/2.x/build/lib/lucene-memory-3.6.0.jar:/home/law/Downloads/asf/2.x/build/lib/lucene-queries-3.6.0.jar:/home/law/Downloads/asf/2.x/build/lib/neethi-3.0.1.jar:/home/law/Downloads/asf/2.x/build/lib/org.osgi.core-4.0.0.jar:/home/law/Downloads/asf/2.x/build/lib/org.restlet-2.0.5.jar:/home/law/Downloads/asf/2.x/build/lib/org.restlet.ext.jackson-2.0.5.jar:/home/law/Downloads/asf/2.x/build/lib/oro-2.0.8.jar:/home/law/Downloads/asf/2.x/build/lib/paranamer-2.2.jar:/home/law/Downloads/asf/2.x/build/lib/paranamer-ant-2.2.jar:/home/law/Downloads/asf/2.x/build/lib/paranamer-generator-2.2.jar:/home/law/Downloads/asf/2.x/build/lib/qdox-1.10.1.jar:/home/law/Downloads/asf/2.x/build/lib/serializer-2.7.1.jar:/home/law/Downloads/asf/2.x/build/lib/servlet-api-2.5-20081211.jar:/home/law/Downloads/asf/2.x/build/lib/servlet-api-2.5-6.1.14.jar:/home/law/Downloads/asf/2.x/build/lib/slf4j-api-1.6.6.jar:/home/law/Downloads/asf/2.x/build/lib/slf4j-log4j12-1.6.1.jar:/home/law/Downloads/asf/2.x/build/lib/solr-solrj-3.4.0.jar:/home/law/Downloads/asf/2.x/build/lib/spring-aop-3.0.6.RELEASE.jar:/home/law/Downloads/asf/2.x/build/lib/spring-asm-3.0.6.RELEASE.jar:/home/law/Downloads/asf/2.x/build/lib/spring-beans-3.0.6.RELEASE.jar:/home/law/Downloads/asf/2.x/build/lib/spring-context-3.0.6.RELEASE.jar:/home/law/Downloads/asf/2.x/build/lib/spring-core-3.0.6.RELEASE.jar:/home/law/Downloads/asf/2.x/build/lib/spring-expression-3.0.6.RELEASE.jar:/home/law/Downloads/asf/2.x/build/lib/spring-web-3.0.6.RELEASE.jar:/home/law/Downloads/asf/2.x/build/lib/stax-api-1.0.1.jar:/home/law/Downloads/asf/2.x/build/lib/stax2-api-3.1.1.jar:/home/law/Downloads/asf/2.x/build/lib/tika-core-1.2.jar:/home/law/Downloads/asf/2.x/build/lib/woodstox-core-asl-4.1.1.jar:/home/law/Downloads/asf/2.x/build/lib/wsdl4j-1.6.2.jar:/home/law/Downloads/asf/2.x/build/lib/wstx-asl-3.2.7.jar:/home/law/Downloads/asf/2.x/build/lib/xercesImpl-2.9.1.jar:/home/law/Downloads/asf/2.x/build/lib/xml-apis-1.3.04.jar:/home/law/Downloads/asf/2.x/build/lib/xmlParserAPIs-2.6.2.jar:/home/law/Downloads/asf/2.x/build/lib/xmlenc-0.52.jar:/home/law/Downloads/asf/2.x/build/lib/xmlschema-core-2.0.1.jar:/home/law/Downloads/asf/2.x/build/lib/zookeeper-3.3.1.jar:/home/law/Downloads/asf/2.x/build/plugins/lib-regex-filter/lib-regex-filter.jar' {code} > Junit jar removed from lib > -------------------------- > > Key: NUTCH-1243 > URL: https://issues.apache.org/jira/browse/NUTCH-1243 > Project: Nutch > Issue Type: Bug > Components: build > Affects Versions: 1.5 > Environment: Ivy 2.1.0 - 20090925235825 > Reporter: Julien Nioche > > When calling 'ant test' the junit jar is added to the lib dir by Ivy but gets > removed before the test classes are compiled. > -This seems to happen with Ivy 2.1 but not with Ivy 2.2.- > -We do have 2.2 in the /ivy directory but the ant script uses whatever is > found in ~/.ant/lib - ideally we would like to be able to force the location > of the jar file.- > Actually the issue also happens with Ivy 2.2. I will commit a quick fix > consisting of adding junit in the default ivy configuration, however it will > be good to get to the bottom of this. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira