Return-Path: X-Original-To: apmail-bookkeeper-user-archive@www.apache.org Delivered-To: apmail-bookkeeper-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id D941CC6E5 for ; Thu, 4 Dec 2014 13:06:30 +0000 (UTC) Received: (qmail 71274 invoked by uid 500); 4 Dec 2014 13:06:30 -0000 Delivered-To: apmail-bookkeeper-user-archive@bookkeeper.apache.org Received: (qmail 71243 invoked by uid 500); 4 Dec 2014 13:06:30 -0000 Mailing-List: contact user-help@bookkeeper.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@bookkeeper.apache.org Delivered-To: mailing list user@bookkeeper.apache.org Received: (qmail 71234 invoked by uid 99); 4 Dec 2014 13:06:30 -0000 Received: from mail-relay.apache.org (HELO mail-relay.apache.org) (140.211.11.15) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 04 Dec 2014 13:06:30 +0000 Received: from mail-lb0-f179.google.com (mail-lb0-f179.google.com [209.85.217.179]) by mail-relay.apache.org (ASF Mail Server at mail-relay.apache.org) with ESMTPSA id 9D0281A0019 for ; Thu, 4 Dec 2014 13:06:29 +0000 (UTC) Received: by mail-lb0-f179.google.com with SMTP id z11so13753186lbi.24 for ; Thu, 04 Dec 2014 05:06:26 -0800 (PST) X-Gm-Message-State: ALoCoQlSfjYKK3B7r1/nvu/PkB+15pOxSlqR7N9aTDBY4M6gbw+eBxgtGe/aXoNDtDjKaqG3D3gA MIME-Version: 1.0 X-Received: by 10.112.131.1 with SMTP id oi1mr9314520lbb.2.1417698386089; Thu, 04 Dec 2014 05:06:26 -0800 (PST) Received: by 10.112.31.47 with HTTP; Thu, 4 Dec 2014 05:06:26 -0800 (PST) X-Originating-IP: [213.27.241.137] In-Reply-To: <2014120322505586310662@gmail.com> References: <1416497134.26574.ezmlm@zookeeper.apache.org> <2014120320595581906618@gmail.com> <2014120322505586310662@gmail.com> Date: Thu, 4 Dec 2014 14:06:26 +0100 Message-ID: Subject: Re: Re: Please help: mvn compile error From: Ivan Kelly To: user@bookkeeper.apache.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Glad the tutorial helped :). One of the things for bringing the project to TLP is to review all docs. I'll make sure the mvn install issue is addressed. On 3 December 2014 at 15:51, zhaijia03@gmail.com wrot= e: > Hi Ivan, > > > > Thanks a ton for your great help. It worked well by =E2=80=9Cmvn install= =E2=80=9D. > > PS: A little suggestion, it would be great that bookkeeper has a tutorial= on > how to do the build and test. I tried bookkeeper by following your anothe= r > tutorial: https://github.com/ivankelly/bookkeeper-tutorial/, it is so > helpful a tutorial that I learn a lot as a beginner. > > > > Thanks a lot. > > -Jia > > > From: Ivan Kelly > Date: 2014-12-03 22:24 > To: user > Subject: Re: Please help: mvn compile error > This is a maven issue. Do mvn install rather than mvn compile. mvn > compile doesn't play nice with multimodule projects where modules > depend on each other. > > -Ivan > > On 3 December 2014 at 13:59, zhaijia03@gmail.com > wrote: >> Hi, >> >> >> >> :) Excuse me for troubling you by such a plain error. >> >> >> >> After trying bookkeeper, I try to build bookkeeper project by myself, so= I >> did the following things on my linux machine, and met an error in build. >> >> Would you please help on how to solve this problem? >> >> >> Here is the steps on my machine: >> >> 1, checkout project >> >> [root]# svn checkout https://svn.apache.org/repos/asfbookkeeper/trunk/ >> bookkeeper-trunk >> >> 2, compile >> >> [root]# cd bookkeeper-trunk >> >> [root]# mvn compile | tee mvn_compile.txt >> >> >> >> Then met error like this: >> >> [INFO] Reactor Summary: >> >> [INFO] >> >> [INFO] bookkeeper ........................................ SUCCESS >> [1.298s] >> >> [INFO] compability dependencies .......................... SUCCESS >> [0.061s] >> >> [INFO] bookkeeper-server-compat400 ....................... SUCCESS >> [1.594s] >> >> [INFO] bookkeeper-server-compat410 ....................... SUCCESS >> [0.415s] >> >> [INFO] bookkeeper-server-compat420 ....................... SUCCESS >> [0.405s] >> >> [INFO] hedwig-server-compat400 ........................... SUCCESS >> [0.663s] >> >> [INFO] hedwig-server-compat410 ........................... SUCCESS >> [0.672s] >> >> [INFO] hedwig-server-compat420 ........................... SUCCESS >> [0.384s] >> >> [INFO] hedwig-protocol ................................... SUCCESS >> [7.716s] >> >> [INFO] Stats API for bookkeeper .......................... SUCCESS >> [0.768s] >> >> [INFO] bookkeeper-server ................................. SUCCESS >> [21.749s] >> >> [INFO] hedwig-client ..................................... SUCCESS >> [5.230s] >> >> [INFO] hedwig-server ..................................... FAILURE >> [0.364s] >> < =3D=3D=3D=3D start the error >> >> [INFO] hedwig-client-jms ................................. SKIPPED >> >> [INFO] bookkeeper-benchmark .............................. SKIPPED >> >> [INFO] Stats provider for twitter-stats package .......... SKIPPED >> >> [INFO] Stats provider for twitter-ostrich package ........ SKIPPED >> >> [INFO] Stats provider for codahale metrics ............... SKIPPED >> >> [INFO] bookkeeper-stats-providers ........................ SKIPPED >> >> [INFO] >> ------------------------------------------------------------------------ >> >> [INFO] BUILD FAILURE >> >> [INFO] >> ------------------------------------------------------------------------ >> >> [INFO] Total time: 42.456s >> >> [INFO] Finished at: Wed Dec 03 20:44:16 CST 2014 >> >> [INFO] Final Memory: 23M/260M >> >> [INFO] >> ------------------------------------------------------------------------ >> >> [ERROR] Failed to execute goal >> org.apache.maven.plugins:maven-remote-resources-plugin:1.1:process >> (default) >> on project hedwig-server: Failed to resolve dependencies for one or more >> projects in the reactor. Reason: Missing: >> >> [ERROR] ---------- >> >> [ERROR] 1) >> org.apache.bookkeeper:bookkeeper-server:test-jar:tests:4.4.0-SNAPSHOT >> < =3D=3D=3D=3D=3D Failed to find this file on website. Do you know where= is it? >> >> [ERROR] >> >> [ERROR] Try downloading the file manually from the project website. >> >> [ERROR] >> >> [ERROR] Then, install it using the command: >> >> [ERROR] mvn install:install-file -DgroupId=3Dorg.apache.bookkeeper >> -DartifactId=3Dbookkeeper-server -Dversion=3D4.4.0-SNAPSHOT -Dclassifier= =3Dtests >> -Dpackaging=3Dtest-jar -Dfile=3D/path/to/file >> >> [ERROR] >> >> [ERROR] Alternatively, if you host your own repository you can deploy th= e >> file there: >> >> [ERROR] mvn deploy:deploy-file -DgroupId=3Dorg.apache.bookkeeper >> -DartifactId=3Dbookkeeper-server -Dversion=3D4.4.0-SNAPSHOT -Dclassifier= =3Dtests >> -Dpackaging=3Dtest-jar -Dfile=3D/path/to/file -Durl=3D[url] -Drepository= Id=3D[id] >> >> [ERROR] >> >> [ERROR] Path to dependency: >> >> [ERROR] 1) org.apache.bookkeeper:hedwig-server:jar:4.4.0-SNAPSHOT >> >> [ERROR] 2) >> org.apache.bookkeeper:bookkeeper-server:test-jar:tests:4.4.0-SNAPSHOT >> >> [ERROR] >> >> [ERROR] ---------- >> >> [ERROR] 1 required artifact is missing. >> >> [ERROR] >> >> [ERROR] for artifact: >> >> [ERROR] org.apache.bookkeeper:hedwig-server:jar:4.4.0-SNAPSHOT >> >> [ERROR] >> >> [ERROR] from the specified remote repositories: >> >> [ERROR] apache.snapshots (http://repository.apache.org/snapshots, >> releases=3Dfalse, snapshots=3Dtrue), >> >> [ERROR] central (http://repo.maven.apache.org/maven2, releases=3Dtrue, >> snapshots=3Dfalse) >> >> [ERROR] -> [Help 1] >> >> [ERROR] >> >> [ERROR] To see the full stack trace of the errors, re-run Maven with the >> -e >> switch. >> >> [ERROR] Re-run Maven using the -X switch to enable full debug logging. >> >> [ERROR] >> >> [ERROR] For more information about the errors and possible solutions, >> please >> read the following articles: >> >> [ERROR] [Help 1] >> http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException >> >> [ERROR] >> >> [ERROR] After correcting the problems, you can resume the build with the >> command >> >> [ERROR] mvn -rf :hedwig-server >> >> >> I also attached the full log(mvn_compile.txt), and a detailed log >> file(mvn_compile_debug.txt) by using "mvn compile -e -X" >> >> >> >> Thanks a lot. >> >> -Jia