Solr4.72 source code compilation failed

Source: Internet
Author: User

SOLR has recently been used to query data in hbase, and SOLR compilation has encountered some problems:

Use ant to compile the SOLR source code:

Source code: https://svn.apache.org/repos/asf/lucene/dev/trunk

Method 1:

1. After ant is installed, go to the SOLR directory.

2. Execute ant eclipse

When I run ant eclipse, the system prompts that eclispe does not exist.

[[email protected] solrcode]$ ant eclipseBuildfile: build.xmlBUILD FAILEDTarget "eclipse" does not exist in the project "solr". Total time: 0 seconds[[email protected] solrcode]$ ant -versionApache Ant version 1.7.1 compiled on August 24 2010[[email protected] solrcode]$ 

Eclispe not found during ant-P execution

ant -pBuildfile: build.xmlMain targets: build-contrib       Builds all contrib modules and their tests build-site          Prototype Helper for Committers.  Assumes SVN is in the path clean               Cleans compiled files and other temporary artifacts. clean-contrib       Cleans all contrib modules and their tests clean-dest          Cleans out ${dest} but leaves ${dist} alone.  This allows us to run nightly and clover together in Hudson clover              Instrument the Unit tests using Clover.  Requires a Clover license and clover.jar in the ANT classpath.  
To use, specify -Drun.clover=true on the command line. compile Compile the source code. compile-common Compile the source code. compile-solrj Compile the java client. compile-solrj-core Compile the java client. compileTests Compile unit tests. create-package Packages the Solr Distribution files and Documentation. dist Creates the Solr distribution files. dist-contrib Make the contribs ready for distribution dist-jar Creates the Solr JAR Distribution file. dist-javadoc Creates the Solr javadoc distribution files dist-solrj Creates the Solr JAR Distribution file. dist-src Creates the Solr source distribution files dist-war Creates the Solr WAR Distribution file. example Creates a runnable example configuration. javadoc-all Generate javadoc for core, client and contrib javadoc-common Generates javadoc documentation for core. javadoc-contrib Generate javadoc for contrib classes javadoc-core Generates javadoc documentation for core. javadoc-solrj Generates solrj javadoc documentation. prepare-release Prototype helper for Committers. Assumes gpg is in the path rat-sources runs the tasks over src/java excluding the license directory stub-factories Generates stub factories as needed test Runs the core unit tests. test-core Runs the core unit tests. test-reports Generates HTML test reports. usage Prints out instructionsDefault target: usage

Method 2: Using Ant Ivy-Bootstrap requires you to download your ivy-xxxx.jar my online disk address: http://pan.baidu.com/s/1kTl3nRx

Place the ivy-2.3.0.jar under the Apache-Ivy-2.3.0-bin directory under the ant lib directory and then execute ant Ivy-Bootstrap

 

[[email protected] solrcode]$ ant ivy-bootstrapBuildfile: build.xmlBUILD FAILEDTarget "ivy-bootstrap" does not exist in the project "solr". Total time: 0 seconds[[email protected] solrcode]$ 

 

The above two methods are successful on the Internet, but I still did not succeed. Which of the following statements is successful.

Reference: http://searchhub.org/2009/09/02/setting-up-apache-solr-in-eclipse/

 

Solr4.72 source code compilation failed

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.