[
https://issues.apache.org/jira/browse/LUCENE-6007?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Steve Rowe updated LUCENE-6007:
-------------------------------
Attachment: LUCENE-6007.patch
Patch fixing the javax-activation:activation javadoc download problem, and also
standardizing on the use of "compile" and "test" Ivy configurations in
{{ivy.xml}} files, mapped to remote "master" configurations, so that this
problem won't recur. Also regularized indenting in all {{ivy.xml}} files to be
two spaces per indent level.
I expected some speedups for {{ant resolve}} with these changes, since Ivy
should no longer attempt to download extraneously crap, but unfortunately my
testing shows the difference to be in the noise.
bq. 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.
With the patch I still see "CLIENT ERROR" messages in the verbose output, e.g.
from the Lucene test-framework module (scroll down to see the non-POM
{{ant-parent}} artifacts Ivy can't find:
{noformat}
[ivy:retrieve] == resolving dependencies
org.apache.lucene#core-test-framework;[email protected]>org.apache.ant#ant;1.8.2
[compile->master]
[ivy:retrieve] default: Checking cache for: dependency:
org.apache.ant#ant;1.8.2 {compile=[master]}
[ivy:retrieve] don't use cache for org.apache.ant#ant;1.8.2: checkModified=true
[ivy:retrieve] tried
/Users/sarowe/.ivy2/local/org.apache.ant/ant/1.8.2/ivys/ivy.xml
[ivy:retrieve] tried
/Users/sarowe/.ivy2/local/org.apache.ant/ant/1.8.2/jars/ant.jar
[ivy:retrieve] local: no ivy file nor artifact found for
org.apache.ant#ant;1.8.2
[ivy:retrieve] main: Checking cache for: dependency: org.apache.ant#ant;1.8.2
{compile=[master]}
[ivy:retrieve] tried
/Users/sarowe/.ivy2/shared/org.apache.ant/ant/1.8.2/ivys/ivy.xml
[ivy:retrieve] tried
/Users/sarowe/.ivy2/shared/org.apache.ant/ant/1.8.2/jars/ant.jar
[ivy:retrieve] shared: no ivy file nor artifact found for
org.apache.ant#ant;1.8.2
[ivy:retrieve] tried
http://repo1.maven.org/maven2/org/apache/ant/ant/1.8.2/ant-1.8.2.pom
[ivy:retrieve] public: found md file for org.apache.ant#ant;1.8.2
[ivy:retrieve] =>
http://repo1.maven.org/maven2/org/apache/ant/ant/1.8.2/ant-1.8.2.pom (1.8.2)
[ivy:retrieve] downloading
http://repo1.maven.org/maven2/org/apache/ant/ant/1.8.2/ant-1.8.2.pom ...
[ivy:retrieve] public: downloading
http://repo1.maven.org/maven2/org/apache/ant/ant/1.8.2/ant-1.8.2.pom
[ivy:retrieve] public: downloading
http://repo1.maven.org/maven2/org/apache/ant/ant/1.8.2/ant-1.8.2.pom.sha1
[ivy:retrieve] sha1 OK for
http://repo1.maven.org/maven2/org/apache/ant/ant/1.8.2/ant-1.8.2.pom
[ivy:retrieve] [SUCCESSFUL ] org.apache.ant#ant;1.8.2!ant.pom(pom.original)
(277ms)
[ivy:retrieve] default: Checking cache for: dependency:
org.apache.ant#ant-parent;1.8.2 {}
[ivy:retrieve] don't use cache for org.apache.ant#ant-parent;1.8.2:
checkModified=true
[ivy:retrieve] tried
/Users/sarowe/.ivy2/local/org.apache.ant/ant-parent/1.8.2/ivys/ivy.xml
[ivy:retrieve] tried
/Users/sarowe/.ivy2/local/org.apache.ant/ant-parent/1.8.2/jars/ant-parent.jar
[ivy:retrieve] local: no ivy file nor artifact found for
org.apache.ant#ant-parent;1.8.2
[ivy:retrieve] main: Checking cache for: dependency:
org.apache.ant#ant-parent;1.8.2 {}
[ivy:retrieve] tried
/Users/sarowe/.ivy2/shared/org.apache.ant/ant-parent/1.8.2/ivys/ivy.xml
[ivy:retrieve] tried
/Users/sarowe/.ivy2/shared/org.apache.ant/ant-parent/1.8.2/jars/ant-parent.jar
[ivy:retrieve] shared: no ivy file nor artifact found for
org.apache.ant#ant-parent;1.8.2
[ivy:retrieve] tried
http://repo1.maven.org/maven2/org/apache/ant/ant-parent/1.8.2/ant-parent-1.8.2.pom
[ivy:retrieve] public: found md file for org.apache.ant#ant-parent;1.8.2
[ivy:retrieve] =>
http://repo1.maven.org/maven2/org/apache/ant/ant-parent/1.8.2/ant-parent-1.8.2.pom
(1.8.2)
[ivy:retrieve] downloading
http://repo1.maven.org/maven2/org/apache/ant/ant-parent/1.8.2/ant-parent-1.8.2.pom
...
[ivy:retrieve] public: downloading
http://repo1.maven.org/maven2/org/apache/ant/ant-parent/1.8.2/ant-parent-1.8.2.pom
[ivy:retrieve] public: downloading
http://repo1.maven.org/maven2/org/apache/ant/ant-parent/1.8.2/ant-parent-1.8.2.pom.sha1
[ivy:retrieve] sha1 OK for
http://repo1.maven.org/maven2/org/apache/ant/ant-parent/1.8.2/ant-parent-1.8.2.pom
[ivy:retrieve] [SUCCESSFUL ]
org.apache.ant#ant-parent;1.8.2!ant-parent.pom(pom.original) (272ms)
[ivy:retrieve] tried
/Users/sarowe/.ivy2/local/org.apache.ant/ant-parent/1.8.2/jars/ant-parent.jar
[ivy:retrieve] tried
/Users/sarowe/.ivy2/shared/org.apache.ant/ant-parent/1.8.2/jars/ant-parent.jar
[ivy:retrieve] tried
http://repo1.maven.org/maven2/org/apache/ant/ant-parent/1.8.2/ant-parent-1.8.2.jar
[ivy:retrieve] CLIENT ERROR: Not Found
url=http://repo1.maven.org/maven2/org/apache/ant/ant-parent/1.8.2/ant-parent-1.8.2.jar
[ivy:retrieve] tried
http://repository.cloudera.com/artifactory/repo/org/apache/ant/ant-parent/1.8.2/ant-parent-1.8.2.jar
[ivy:retrieve] tried
/Users/sarowe/.ivy2/local/org.apache.ant/ant-parent/1.8.2/jars/ant-parent.jar
[ivy:retrieve] tried
/Users/sarowe/.ivy2/shared/org.apache.ant/ant-parent/1.8.2/jars/ant-parent.jar
[ivy:retrieve] tried
http://repo1.maven.org/maven2/org/apache/ant/ant-parent/1.8.2/ant-parent-1.8.2.jar
[ivy:retrieve] tried
http://repository.cloudera.com/artifactory/repo/org/apache/ant/ant-parent/1.8.2/ant-parent-1.8.2.jar
[ivy:retrieve] tried
/Users/sarowe/.ivy2/local/org.apache.ant/ant-parent/1.8.2/sources/ant-parent.jar
[ivy:retrieve] tried
/Users/sarowe/.ivy2/shared/org.apache.ant/ant-parent/1.8.2/sources/ant-parent.jar
[ivy:retrieve] tried
http://repo1.maven.org/maven2/org/apache/ant/ant-parent/1.8.2/ant-parent-1.8.2-sources.jar
[ivy:retrieve] CLIENT ERROR: Not Found
url=http://repo1.maven.org/maven2/org/apache/ant/ant-parent/1.8.2/ant-parent-1.8.2-sources.jar
[ivy:retrieve] tried
http://repository.cloudera.com/artifactory/repo/org/apache/ant/ant-parent/1.8.2/ant-parent-1.8.2-sources.jar
[ivy:retrieve] tried
/Users/sarowe/.ivy2/local/org.apache.ant/ant-parent/1.8.2/javadocs/ant-parent.jar
[ivy:retrieve] tried
/Users/sarowe/.ivy2/shared/org.apache.ant/ant-parent/1.8.2/javadocs/ant-parent.jar
[ivy:retrieve] tried
http://repo1.maven.org/maven2/org/apache/ant/ant-parent/1.8.2/ant-parent-1.8.2-javadoc.jar
[ivy:retrieve] CLIENT ERROR: Not Found
url=http://repo1.maven.org/maven2/org/apache/ant/ant-parent/1.8.2/ant-parent-1.8.2-javadoc.jar
[ivy:retrieve] tried
http://repository.cloudera.com/artifactory/repo/org/apache/ant/ant-parent/1.8.2/ant-parent-1.8.2-javadoc.jar
[ivy:retrieve] tried
/Users/sarowe/.ivy2/local/org.apache.ant/ant/1.8.2/jars/ant.jar
[ivy:retrieve] tried
/Users/sarowe/.ivy2/shared/org.apache.ant/ant/1.8.2/jars/ant.jar
[ivy:retrieve] tried
http://repo1.maven.org/maven2/org/apache/ant/ant/1.8.2/ant-1.8.2.jar
[ivy:retrieve] tried
/Users/sarowe/.ivy2/local/org.apache.ant/ant/1.8.2/sources/ant.jar
[ivy:retrieve] tried
/Users/sarowe/.ivy2/shared/org.apache.ant/ant/1.8.2/sources/ant.jar
[ivy:retrieve] tried
http://repo1.maven.org/maven2/org/apache/ant/ant/1.8.2/ant-1.8.2-sources.jar
[ivy:retrieve] CLIENT ERROR: Not Found
url=http://repo1.maven.org/maven2/org/apache/ant/ant/1.8.2/ant-1.8.2-sources.jar
[ivy:retrieve] tried
http://repository.cloudera.com/artifactory/repo/org/apache/ant/ant/1.8.2/ant-1.8.2-sources.jar
[ivy:retrieve] tried
/Users/sarowe/.ivy2/local/org.apache.ant/ant/1.8.2/javadocs/ant.jar
[ivy:retrieve] tried
/Users/sarowe/.ivy2/shared/org.apache.ant/ant/1.8.2/javadocs/ant.jar
[ivy:retrieve] tried
http://repo1.maven.org/maven2/org/apache/ant/ant/1.8.2/ant-1.8.2-javadoc.jar
[ivy:retrieve] CLIENT ERROR: Not Found
url=http://repo1.maven.org/maven2/org/apache/ant/ant/1.8.2/ant-1.8.2-javadoc.jar
[ivy:retrieve] tried
http://repository.cloudera.com/artifactory/repo/org/apache/ant/ant/1.8.2/ant-1.8.2-javadoc.jar
[ivy:retrieve] found org.apache.ant#ant;1.8.2 in public
{noformat}
However no javadoc or source jars are downloaded with the patch (previously
they were for {{jcl-over-slf4j}}).
Committing shortly.
> 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
> 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: Ilia Sretenskii
> Assignee: Steve Rowe
> Labels: ant, download, ivy, jar, javadoc, javax, maven
> Attachments: LUCENE-6007.patch
>
>
> 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: [email protected]
For additional commands, e-mail: [email protected]