zookeeper本地源碼引入

下載源碼 

https://mirrors.tuna.tsinghua.edu.cn/apache/zookeeper/zookeeper-3.4.10/

下載ant 

https://ant.apache.org/bindownload.cgi?Preferred=http%3A%2F%2Fmirrors.tuna.tsinghua.edu.cn%2Fapache%2F


配置環境不表

ant eclipse時報錯


PS G:\zookeeper-3.4.10> ant eclipse
Buildfile: G:\zookeeper-3.4.10\build.xml


ant-eclipse-download:
      [get] Getting: http://downloads.sourceforge.net/project/ant-eclipse/ant-eclipse/1.0/ant-eclipse-1.0.bin.tar.bz2
      [get] To: G:\zookeeper-3.4.10\src\java\ant-eclipse-1.0.bin.tar.bz2
      [get] http://downloads.sourceforge.net/project/ant-eclipse/ant-eclipse/1.0/ant-eclipse-1.0.bin.tar.bz2 moved to https://jaist.dl.sourceforge.net/project/ant-eclipse/ant-eclipse/1.0/ant-eclipse-1.0.bin.tar.bz2


BUILD FAILED
G:\zookeeper-3.4.10\build.xml:1791: Redirection detected from http to https. Protocol switch unsafe, not allowed.


Total time: 0 seconds

PS G:\zookeeper-3.4.10>



打開build.xml 1791行爲

http://downloads.sourceforge.net/project/ant-eclipse/ant-eclipse/1.0/ant-eclipse-1.0.bin.tar.bz2

替換爲

http://ufpr.dl.sourceforge.net/project/ant-eclipse/ant-eclipse/1.0/ant-eclipse-1.0.bin.tar.bz2



然後可以等待build success了







發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章