lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael McCandless (Commented) (JIRA)" <>
Subject [jira] [Commented] (LUCENE-3946) improve docs & ivy verification output to explain classpath problems and mention "--noconfig"
Date Tue, 03 Apr 2012 23:48:23 GMT


Michael McCandless commented on LUCENE-3946:

Patch works -- I see lots of JARs on the classpath:

     [echo]      Current Classpath:
     [echo]        /usr/share/java/ant.jar
     [echo]        /usr/share/java/ant-launcher.jar
     [echo]        /usr/share/java/jaxp_parser_impl.jar
     [echo]        /usr/share/java/xml-commons-apis.jar
     [echo]        /usr/share/java/antlr.jar
     [echo]        /usr/share/java/ant/ant-antlr.jar
     [echo]        /usr/share/java/bcel.jar
     [echo]        /usr/share/java/ant/ant-apache-bcel.jar
     [echo]        /usr/share/java/oro.jar
     [echo]        /usr/share/java/ant/ant-apache-oro.jar
     [echo]        /usr/share/java/regexp.jar
     [echo]        /usr/share/java/ant/ant-apache-regexp.jar
     [echo]        /usr/share/java/xml-commons-resolver.jar
     [echo]        /usr/share/java/ant/ant-apache-resolver.jar
     [echo]        /usr/share/java/jakarta-commons-logging.jar
     [echo]        /usr/share/java/ant/ant-commons-logging.jar
     [echo]        /usr/share/java/javamail.jar
     [echo]        /usr/share/java/jaf.jar
     [echo]        /usr/share/java/ant/ant-javamail.jar
     [echo]        /usr/share/java/jdepend.jar
     [echo]        /usr/share/java/ant/ant-jdepend.jar
     [echo]        /usr/share/java/junit.jar
     [echo]        /usr/share/java/ant/ant-junit.jar
     [echo]        /usr/share/java/ant/ant-nodeps.jar
     [echo]        /usr/share/java/ant/ant-swing.jar
     [echo]        /usr/share/java/jaxp_transform_impl.jar
     [echo]        /usr/share/java/ant/ant-trax.jar
     [echo]        /usr/share/java/xalan-j2-serializer.jar
     [echo]        /usr/local/src/jdk1.6.0_21/lib/tools.jar
     [echo]        /home/mike/.ant/lib/maven-ant-tasks-2.1.3.jar
     [echo]        /home/mike/.ant/lib/ivy-2.2.0.jar
     [echo]        /usr/share/ant/lib/ant-swing.jar
     [echo]        /usr/share/ant/lib/ant-launcher.jar
     [echo]        /usr/share/ant/lib/ant-junit.jar
     [echo]        /usr/share/ant/lib/ant-bootstrap.jar
     [echo]        /usr/share/ant/lib/ant-apache-bcel.jar
     [echo]        /usr/share/ant/lib/ant-apache-oro.jar
     [echo]        /usr/share/ant/lib/ant-nodeps.jar
     [echo]        /usr/share/ant/lib/ant-apache-resolver.jar
     [echo]        /usr/share/ant/lib/ant-trax.jar
     [echo]        /usr/share/ant/lib/ant-apache-log4j.jar
     [echo]        /usr/share/ant/lib/ant-antlr.jar
     [echo]        /usr/share/ant/lib/ant-javamail.jar
     [echo]        /usr/share/ant/lib/ant-jdepend.jar
     [echo]        /usr/share/ant/lib/ant-apache-regexp.jar
     [echo]        /usr/share/ant/lib/ant-commons-logging.jar

That's just running "ant", and it fails... "ant --noconfig" works (fortunately I don't have/need
~/.antrc).  Here's my /etc/ant.conf:

# ant.conf (Ant 1.7.x)
# JPackage Project <>

# Validate --noconfig setting in case being invoked
# from pre Ant 1.6.x environment
if [ -z "$no_config" ] ; then

# Setup ant configuration
if $no_config ; then
  # Disable RPM layout
  # Use RPM layout

  # ANT_HOME for rpm layout

> improve docs & ivy verification output to explain classpath problems and mention
> ---------------------------------------------------------------------------------------------
>                 Key: LUCENE-3946
>                 URL:
>             Project: Lucene - Java
>          Issue Type: Task
>    Affects Versions: 3.6
>            Reporter: Hoss Man
>            Assignee: Hoss Man
>             Fix For: 4.0
>         Attachments: LUCENE-3946.patch
> offshoot of LUCENE-3930, where shawn reported...
> {quote}
> I can't get either branch_3x or trunk to build now, on a system that used to build branch_3x
without complaint.  It
> says that ivy is not available, even after doing "ant ivy-bootstrap" to download ivy
into the home directory.
> Specifically I am trying to build solrj from trunk, but I can't even get "ant" in the
root directory of the checkout
> to work.  I'm on CentOS 6 with oracle jdk7 built using the SRPMs.  Ant (1.7.1)
and junit are installed
> from package repositories.  Building a checkout of lucene_solr_3_5 on the same machine
works fine.
> {quote}
> The root cause is that ant's global configs can be setup to ignore the users personal
lib dir.  suggested work arround is to run "ant --noconfig" but we should also try to give
the user feedback in our failure about exactly what classpath ant is currently using (because
apparently ${java.class.path} is not actually it)

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:!default.jspa
For more information on JIRA, see:


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message