[ https://issues.apache.org/jira/browse/LUCENE-6007?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14172522#comment-14172522 ]
Steve Rowe commented on LUCENE-6007: ------------------------------------ Here's the verbose output from {{ant resolve}}: {noformat} [ivy:retrieve] == resolving dependencies org.apache.solr#dataimporthandler-extras;working@smb.local->javax.activation#activation;1.1.1 [compile->*] [ivy:retrieve] default: Checking cache for: dependency: javax.activation#activation;1.1.1 {compile=[*]} [ivy:retrieve] don't use cache for javax.activation#activation;1.1.1: checkModified=true [ivy:retrieve] tried /Users/sarowe/.ivy2/local/javax.activation/activation/1.1.1/ivys/ivy.xml [ivy:retrieve] tried /Users/sarowe/.ivy2/local/javax.activation/activation/1.1.1/jars/activation.jar [ivy:retrieve] local: no ivy file nor artifact found for javax.activation#activation;1.1.1 [ivy:retrieve] main: Checking cache for: dependency: javax.activation#activation;1.1.1 {compile=[*]} [ivy:retrieve] tried /Users/sarowe/.ivy2/shared/javax.activation/activation/1.1.1/ivys/ivy.xml [ivy:retrieve] tried /Users/sarowe/.ivy2/shared/javax.activation/activation/1.1.1/jars/activation.jar [ivy:retrieve] shared: no ivy file nor artifact found for javax.activation#activation;1.1.1 [ivy:retrieve] tried http://repo1.maven.org/maven2/javax/activation/activation/1.1.1/activation-1.1.1.pom [ivy:retrieve] public: found md file for javax.activation#activation;1.1.1 [ivy:retrieve] => http://repo1.maven.org/maven2/javax/activation/activation/1.1.1/activation-1.1.1.pom (1.1.1) [ivy:retrieve] downloading http://repo1.maven.org/maven2/javax/activation/activation/1.1.1/activation-1.1.1.pom ... [ivy:retrieve] public: downloading http://repo1.maven.org/maven2/javax/activation/activation/1.1.1/activation-1.1.1.pom [ivy:retrieve] public: downloading http://repo1.maven.org/maven2/javax/activation/activation/1.1.1/activation-1.1.1.pom.sha1 [ivy:retrieve] sha1 OK for http://repo1.maven.org/maven2/javax/activation/activation/1.1.1/activation-1.1.1.pom [ivy:retrieve] [SUCCESSFUL ] javax.activation#activation;1.1.1!activation.pom(pom.original) (341ms) [ivy:retrieve] tried /Users/sarowe/.ivy2/local/javax.activation/activation/1.1.1/jars/activation.jar [ivy:retrieve] tried /Users/sarowe/.ivy2/shared/javax.activation/activation/1.1.1/jars/activation.jar [ivy:retrieve] tried http://repo1.maven.org/maven2/javax/activation/activation/1.1.1/activation-1.1.1.jar [ivy:retrieve] tried /Users/sarowe/.ivy2/local/javax.activation/activation/1.1.1/sources/activation.jar [ivy:retrieve] tried /Users/sarowe/.ivy2/shared/javax.activation/activation/1.1.1/sources/activation.jar [ivy:retrieve] tried http://repo1.maven.org/maven2/javax/activation/activation/1.1.1/activation-1.1.1-sources.jar [ivy:retrieve] tried /Users/sarowe/.ivy2/local/javax.activation/activation/1.1.1/javadocs/activation.jar [ivy:retrieve] tried /Users/sarowe/.ivy2/shared/javax.activation/activation/1.1.1/javadocs/activation.jar [ivy:retrieve] tried http://repo1.maven.org/maven2/javax/activation/activation/1.1.1/activation-1.1.1-javadoc.jar [ivy:retrieve] CLIENT ERROR: Not Found url=http://repo1.maven.org/maven2/javax/activation/activation/1.1.1/activation-1.1.1-javadoc.jar [ivy:retrieve] tried http://repository.cloudera.com/artifactory/repo/javax/activation/activation/1.1.1/activation-1.1.1-javadoc.jar [ivy:retrieve] found javax.activation#activation;1.1.1 in public [ivy:retrieve] == resolving dependencies org.apache.solr#dataimporthandler-extras;working@smb.local->javax.activation#activation;1.1.1 [compile->runtime] [ivy:retrieve] == resolving dependencies org.apache.solr#dataimporthandler-extras;working@smb.local->javax.activation#activation;1.1.1 [compile->compile] [ivy:retrieve] == resolving dependencies org.apache.solr#dataimporthandler-extras;working@smb.local->javax.activation#activation;1.1.1 [compile->master] [ivy:retrieve] == resolving dependencies org.apache.solr#dataimporthandler-extras;working@smb.local->javax.activation#activation;1.1.1 [compile->compile] [ivy:retrieve] == resolving dependencies org.apache.solr#dataimporthandler-extras;working@smb.local->com.sun.mail#javax.mail;1.5.1 [compile->*] {noformat} Looks like the culprit is the ivy configuration mapping in {{solr/contrib/dataimporthandler-extras/ivy.xml}}, where the configurations are mapped to "\*", which apparently means all configurations (I don't understand this aspect of Ivy very well - found some useful info here: [http://stackoverflow.com/questions/4982485/ivy-appears-to-fetch-javadoc-jars-only]): {code:xml} <configurations> <conf name="compile" transitive="false"/> <conf name="test" transitive="false"/> </configurations> <dependencies> <dependency org="javax.activation" name="activation" rev="${/javax.activation/activation}" conf="compile->*"/> <dependency org="com.sun.mail" name="javax.mail" rev="${/com.sun.mail/javax.mail}" conf="compile->*"/> <dependency org="com.sun.mail" name="gimap" rev="${/com.sun.mail/gimap}" conf="compile->*"/> <dependency org="org.slf4j" name="jcl-over-slf4j" rev="${/org.slf4j/jcl-over-slf4j}" conf="test->*"/> </dependencies> {code} When I change all the {{\->\*}} mappings in {{solr/contrib/dataimporthandler-extras/ivy.xml}} to specifying default mappings for each configuration, {{ant resolve}} succeeds for me: {code:xml} <configurations defaultconfmapping="compile->master;test->default"> {code} I noticed that Ivy is attempting to download a lot of javadoc and source jars, which we don't need - I see lots of {{CLIENT ERROR}} messages in the verbose output of {{ant resolve}} for ones that fail - for some reason failing to download those other source&javadoc jars doesn't fail the build. Conversely, I don't know why failing to download the javadoc jar for javax.activation:activation caused a build failure. I'm going to change all other {{ivy.xml}} files in the project to use default configuration mappings, and see if everything still works. I'm thinking this may also speed up {{ant resolve}} for new users too. > Failed attempt of downloading javax:activation javadoc > ------------------------------------------------------ > > Key: LUCENE-6007 > URL: https://issues.apache.org/jira/browse/LUCENE-6007 > Project: Lucene - Core > Issue Type: Bug > Components: general/build, general/javadocs > Affects Versions: Trunk > Environment: java version "1.7.0_67" > Java(TM) SE Runtime Environment (build 1.7.0_67-b01) > Java HotSpot(TM) 64-Bit Server VM (build 24.65-b04, mixed mode) > Apache Ant(TM) version 1.9.4 compiled on April 29 2014 > Microsoft Windows Professional 8.1 (6.3.9600) x64 > Reporter: Илья > Labels: ant, download, ivy, jar, javadoc, javax, maven > > I have [checked out the trunk source > code|https://wiki.apache.org/lucene-java/HowToContribute]. > But then running the following commands fails: > * [ant clean test|https://wiki.apache.org/lucene-java/HowToContribute] > * [ant idea|https://wiki.apache.org/lucene-java/HowtoConfigureIntelliJ] > The failure message says the following: > {noformat} > ivy-fail: > resolve: > [ivy:retrieve] > [ivy:retrieve] :: problems summary :: > [ivy:retrieve] :::: WARNINGS > [ivy:retrieve] [FAILED ] > javax.activation#activation;1.1.1!activation.jar(javadoc): (0ms) > [ivy:retrieve] ==== shared: tried > [ivy:retrieve] > C:\Users\Ilia\.ivy2\shared\javax.activation\activation\1.1.1\javadocs\activation.jar > [ivy:retrieve] ==== public: tried > [ivy:retrieve] > http://repo1.maven.org/maven2/javax/activation/activation/1.1.1/activation-1.1.1-javadoc.jar > [ivy:retrieve] :::::::::::::::::::::::::::::::::::::::::::::: > [ivy:retrieve] :: FAILED DOWNLOADS :: > [ivy:retrieve] :: ^ see resolution messages for details ^ :: > [ivy:retrieve] :::::::::::::::::::::::::::::::::::::::::::::: > [ivy:retrieve] :: > javax.activation#activation;1.1.1!activation.jar(javadoc) > [ivy:retrieve] :::::::::::::::::::::::::::::::::::::::::::::: > [ivy:retrieve] > [ivy:retrieve] > [ivy:retrieve] :: USE VERBOSE OR DEBUG MESSAGE LEVEL FOR MORE DETAILS > BUILD FAILED > C:\Users\Ilia\Documents\IdeaProjects\svn.apache.org\lucene\build.xml:61: The > following error occurred while executing this line: > C:\Users\Ilia\Documents\IdeaProjects\svn.apache.org\lucene\extra-targets.xml:39: > The following error occurred while executing this line: > C:\Users\Ilia\Documents\IdeaProjects\svn.apache.org\lucene\solr\build.xml:209: > The following error occurred while executing this line: > C:\Users\Ilia\Documents\IdeaProjects\svn.apache.org\lucene\solr\common-build.xml:440: > The following error occurred while executing this line: > C:\Users\Ilia\Documents\IdeaProjects\svn.apache.org\lucene\solr\common-build.xml:496: > The following error occurred while executing this line: > C:\Users\Ilia\Documents\IdeaProjects\svn.apache.org\lucene\solr\contrib\contrib-build.xml:52: > impossible to resolve dependencies: > resolve failed - see output for details > Total time: 53 minutes 19 seconds > {noformat} > There was a javadoc file for > [javax:activation:1.1-rev-1|http://repo1.maven.org/maven2/javax/activation/activation/1.1-rev-1/], > but none for > [javax:activation:1.1.1|http://repo1.maven.org/maven2/javax/activation/activation/1.1.1/], > which might be the cause. -- This message was sent by Atlassian JIRA (v6.3.4#6332) --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org