Return-Path: X-Original-To: apmail-brooklyn-commits-archive@minotaur.apache.org Delivered-To: apmail-brooklyn-commits-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 2250718761 for ; Tue, 8 Mar 2016 13:19:36 +0000 (UTC) Received: (qmail 44721 invoked by uid 500); 8 Mar 2016 13:19:36 -0000 Delivered-To: apmail-brooklyn-commits-archive@brooklyn.apache.org Received: (qmail 44664 invoked by uid 500); 8 Mar 2016 13:19:36 -0000 Mailing-List: contact commits-help@brooklyn.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@brooklyn.apache.org Delivered-To: mailing list commits@brooklyn.apache.org Received: (qmail 43705 invoked by uid 99); 8 Mar 2016 13:19:34 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 08 Mar 2016 13:19:34 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 9C204E00B3; Tue, 8 Mar 2016 13:19:34 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: richard@apache.org To: commits@brooklyn.apache.org Date: Tue, 08 Mar 2016 13:20:00 -0000 Message-Id: <880c2114ccff43289ac32bb40a902cc2@git.apache.org> In-Reply-To: <42e4da5f688b41a28d23ac3169866b87@git.apache.org> References: <42e4da5f688b41a28d23ac3169866b87@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: [27/50] [abbrv] brooklyn-client git commit: More notes on build process. More notes on build process. Project: http://git-wip-us.apache.org/repos/asf/brooklyn-client/repo Commit: http://git-wip-us.apache.org/repos/asf/brooklyn-client/commit/80b0cdf4 Tree: http://git-wip-us.apache.org/repos/asf/brooklyn-client/tree/80b0cdf4 Diff: http://git-wip-us.apache.org/repos/asf/brooklyn-client/diff/80b0cdf4 Branch: refs/heads/master Commit: 80b0cdf4ee8821f8344b265e7ec3b38128db65ad Parents: 924fb59 Author: Geoff Macartney Authored: Wed Feb 24 21:04:38 2016 +0000 Committer: Geoff Macartney Committed: Wed Feb 24 21:04:38 2016 +0000 ---------------------------------------------------------------------- README.md | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/brooklyn-client/blob/80b0cdf4/README.md ---------------------------------------------------------------------- diff --git a/README.md b/README.md index 4551dfb..e8b6077 100644 --- a/README.md +++ b/README.md @@ -78,7 +78,6 @@ where the username and password need only be supplied if Brooklyn requires them: ```bash $ sh test.sh http://your-brooklyn-host:8081 myuser mypassword - exit 0 ``` Note, the tests are not yet comprehensive, and contributions are welcome. @@ -95,6 +94,13 @@ Invoke the build script via Maven with one of - ```mvn -Dtarget=native clean install``` build for the current platform - ```mvn -Dtarget=cross -Dos=OS -Darch=ARCH clean install``` build for platform with operating system OS and architecture ARCH +*NOTE* This does *not* build the code into your usual GOPATH. To allow the project to be checked out along with the +other Brooklyn submodules and built using Maven, without any special treatment to install it into a separate GOPATH +location, the Maven build makes no assumption about the location of the project root directory. Instead, the Maven +`target` directory is used as the GOPATH, and a soft link is created as `target/src/github.com/apache/brooklyn-cli` to +the code in the root directory. If godep is already installed in the PATH, it is used, otherwise Go is used to fetch +godep and install it. The CLI dependencies need not be fetched as they are used from the Godeps directory by godep. + This builds the requested binaries into the "target" directory, each in its own subdirectory with a name that includes the platform/architecture details, e.g. bin/linux.386/br. The build installs a maven artifact to the maven repository, consisting of a zip file containing all the binaries. This artifact can be referenced in a POM as