I fixed it, I forgot to download the pom file of these library … so it still missed many libraries. Actually, I'm always use the VPN and I can access the website by the browser, but I can’t configure maven with my proxy settings properly, it uses the socks5 and have the encryption type of aes-256-cfb, how can I indicate this in the setting?
I tried like this: <proxy> <id>my-proxy</id> <active>true</active> <protocol>socks5</protocol> <host>my.host</host> <port>3633</port> <username></username> <password>password</password> <method>aes-256-cfb</method> </proxy> but failed, any idea? I appreciate your help. Xiaoyuan > 在 2016年12月2日,01:19,Sijie Guo <si...@apache.org> 写道: > > That's my suspect too. > > Xiaoyuan, > > The maven might be hanging connecting to maven.twttr.com. Is your web > browser using any proxy settings to access maven.twttr.com? > > You might try to configure your maven to use same proxy settings if it > can't connect to maven.twttr.com. > > https://maven.apache.org/guides/mini/guide-proxies.html > > - Sijie > > On Thu, Dec 1, 2016 at 7:49 AM, Jia Zhai <zhaiji...@gmail.com> wrote: > >> Hi Xiaoyuan, >> Seems this is the network access issue in China, You could have a try if >> you could access http://www.twitter.com/. Usually we need use VPN to get >> access . >> >> Regards. >> -Jia >> >> On Thu, Dec 1, 2016 at 9:10 PM, Xiaoyuan Chen <253441...@qq.com> wrote: >> >>> Hi guys, >>> >>> >>> I downloaded the source code from here, the 0.3.51-RC1: >>> http://distributedlog.incubator.apache.org/docs/latest/start/download >>> Like you said, I run the cmd: >>> mvn clean package -DskipTests >>> >>> >>> First problem: It got stuck in the process of trying to get the library >>> : libthrift-0.5.0-1, always keeping retrying, like this: >>> Downloading: http://maven.twttr.com/org/ >> apache/thrift/libthrift/0.5.0- >>> 1/libthrift-0.5.0-1.pom >>> >>> >>> I don't know whether it's the problem of twitter or not. I'm sure there >>> is no problem with my network. Fine, I installed this library manually, >>> download from here: >>> http://mvnrepository.com/artifact/org.apache.thrift/ >> libthrift/0.5.0-1 >>> >>> >>> Ok, same problem again, It can't find the library : stats-util-0.0.58, >>> installed manually too >>> Downloading: http://maven.twttr.com/com/ >> twitter/common/stats-util/0.0. >>> 58/stats-util-0.0.58.pom >>> >>> >>> BUT , second problem, >>> distributedlog-0.3.51-RC1/distributedlog-core/src/main/ >>> java/com/twitter/distributedlog/rate/SampledMovingAverageRate.java: >> [20,32] >>> it can't find the class Rate from com.twitter.common.stats, I check the >>> library stats-util-0.0.58 , there is no class Rate in it indeed, AND I >> find >>> it in the library stats-0.0.58.jar, weird, so I change the dependency to >>> it, BUT it ended up in the same error, but it just can't resolve the >> method >>> Rate.of(...). >>> >>> >>> That's it, how can I fix it? I need help. By the way, how can I import >>> this project to the idea? >>> >>> >>> Thanks >>