编译Solr4.72 源码没有成功
最近需要用到solr,查询Hbase里面的数据,编译Solr的时候遇到了点问题:
下了solr的源码后需要用ant自己编译:
源码下载地址:https://svn.apache.org/repos/asf/lucene/dev/trunk
第一种办法:
1、安装好ant 后进入到solr所在目录
2、执行 ant eclipse
我在执行 ant eclipse 的时候提示eclispe 不存在
[hadoop@bogon solrcode]$ ant eclipse
Buildfile: build.xml BUILD FAILED
Target "eclipse" does not exist in the project "solr". Total time: 0 seconds
[hadoop@bogon solrcode]$ ant -version
Apache Ant version 1.7.1 compiled on August 24 2010
[hadoop@bogon solrcode]$
执行 ant -p的时候没有找到eclispe
ant -p
Buildfile: build.xml Main 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 instructions
Default target: usage
第二中方法:用ant ivy-bootstrap 需要自己下载 ivy-xxxx.jar 我的网盘地址: http://pan.baidu.com/s/1kTl3nRx
将apache-ivy-2.3.0-bin目录下的ivy-2.3.0.jar 放在ant lib目录下 然后在执行 ant ivy-bootstrap
[hadoop@bogon solrcode]$ ant ivy-bootstrap
Buildfile: build.xml BUILD FAILED
Target "ivy-bootstrap" does not exist in the project "solr". Total time: 0 seconds
[hadoop@bogon solrcode]$
以上2种方式网上都说可以成功,但是我的最后还是没有成功。有哪位有成功的说下。
参考地址:http://searchhub.org/2009/09/02/setting-up-apache-solr-in-eclipse/
编译Solr4.72 源码没有成功的更多相关文章
- msvc2013编译qt5.6源码
1.回顾 说起到qt的编译,真是领人痛心啊,不仅编译选项繁多,而且编译时间比较久,总是能使想编译qt源码的人望而却步,呵呵...我就是其中一个,不知道从什么时候开始就想着把qt的源码编译一下,也尝试过 ...
- 编译android5.0源码的
java环境 Android 5.1 用到的jdk不再是Oracle 的 jdk ,而是开源的 openjdk,在ubuntu安装好后,使用如下命令安装jdk: $sudo apt-get insta ...
- 【转】编译Android系统源码和内核源码
原文网址:http://blog.csdn.net/jiangwei0910410003/article/details/37988637 好长时间没有写blog了,之所以没有写,主要还是工作上的事, ...
- 编译jmeter5.0源码
jmeter5.0使用过程中,遇到request或者response乱码的情况,想要一次性解决这个问题,需要编译ApacheJMeter_http.jar这个包(lib\ext文件下)里的Reques ...
- FW 编译Android系统源码和内核源码
编译Android系统源码和内核源码 分类: Android2014-07-21 20:58 7287人阅读 评论(28) 收藏 举报 好长时间没有写blog了,之所以没有写,主要还是工作上的事,发现 ...
- Android系统篇之—-编写简单的驱动程序并且将其编译到内核源码中【转】
本文转载自:大神 通过之前的一篇文章,我们了解了 Android中的Binder机制和远程服务调用 在这篇文章中主要介绍了Android中的应用在调用一些系统服务的时候的原理,那么接下来就继续来介绍一 ...
- Android系统篇之—-编写系统服务并且将其编译到系统源码中【转】
本文转载自:http://www.wjdiankong.cn/android%E7%B3%BB%E7%BB%9F%E7%AF%87%E4%B9%8B-%E7%BC%96%E5%86%99%E7%B3% ...
- 使用idea编译spring-framework5.0源码
自从迈入java开发这个行当,从来没有好好的研究过源码,深感惭愧,话不多说,今天上一篇使用idea编译spring5.0源码. 以下在win中构建和编译过程分为 jdk环境的配置 gradle的下载和 ...
- 编译Android系统源码和内核源码
[日期:2016-01-11] 来源:Linux社区 作者:jiangwei [字体:大 中 小] 把我之前编译Android系统源码和内核源码的过程记录一下,因为这个过程真的是受益匪浅,看 ...
随机推荐
- BZOJ 2055: 80人环游世界(有上下界的费用流)
题面 Time Limit: 10 Sec Memory Limit: 64 MB Submit: 693 Solved: 434 [Submit][Status][Discuss] Descript ...
- Sqli labs系列-less-2 详细篇
就今天晚上一个小插曲,瞬间感觉我被嘲讽了. SQL手工注入这个东西,杂说了吧,如果你好久不玩的话,一时说开了,你也只能讲个大概,有时候,长期不写写,你的构造语句还非常容易忘,要不我杂会被瞬间嘲讽了啊. ...
- makefile.new(7117) : error U1087: cannot have : and :: dependents for same target
makefile.new(7117) : fatal error U1087: cannot have : and :: dependents for same target(2012-05-21 2 ...
- Yslow压力测试
1.yslow介绍 概述:YSlow是Yahoo发布的一款插件,可安装在Firefox或Chrome上,这个插件可以分析网站的页面,并告诉你为了提高网站性能,如何基于某些规则而进行优化. 2.安装方法 ...
- 高级UI晋升之常用View(三)中篇
更多Android高级架构进阶视频学习请点击:https://space.bilibili.com/474380680本篇文章将从ViewPager来介绍常用View:文章目录 一.简介 二.基本使用 ...
- [Code+#3]博弈论与概率统计
题目 记得曾经和稳稳比谁后抄这个题的题解,看来是我输了 不难发现\(p\)是给着玩的,只需要求一个总情况数除以\(\binom{n+m}{n}\)就好了 记\(i\)为无效的失败次数,即\(\rm A ...
- pytest的断言、跳过、运行的按需要处理
def test_one(): assert 1==1 assert 1!=2 assert {'name':'linda','age':19}=={'name':'linda','age':190} ...
- 微信1.8.6.1 SDK 无法授权登录解决办法
我用的cocos2d-lua 3.9 项目打包 调用微信授权登录的时候 授权登录接口一直抛异常导致微信都无法拉起来 按照官网配置了universal link (这个也搞了很长时间jason 配置文件 ...
- 网络编程之 TCP-UDP的详细介绍
一.TCP协议 1. TCP协议的特点 1.TCP是面向连接的运输层协议.这就意味着,在使用该协议之前,必须建立TCP连接.在传输数据完毕后,必须释放已经建立的TCP连接. 2.每一条TCP连接只能有 ...
- Codeforces 1152D DP
题意:有一颗由长度为2 * n的合法的括号序列构成的字典树,现在你需要在这颗字典树上选择一些不连接的边,问最多可以选择多少条边? 思路:不考虑题目条件的话,我们只考虑在随意的一棵树上选择边,这是一个贪 ...