exclude the client (go) project based on whether a property is set
Project: http://git-wip-us.apache.org/repos/asf/brooklyn/repo Commit: http://git-wip-us.apache.org/repos/asf/brooklyn/commit/0e9da8a7 Tree: http://git-wip-us.apache.org/repos/asf/brooklyn/tree/0e9da8a7 Diff: http://git-wip-us.apache.org/repos/asf/brooklyn/diff/0e9da8a7 Branch: refs/heads/master Commit: 0e9da8a768e847a0e819de30b332a977c9bf7611 Parents: 9537f23 Author: Alex Heneveld <alex.henev...@cloudsoftcorp.com> Authored: Thu Mar 10 12:27:51 2016 +0000 Committer: Alex Heneveld <alex.henev...@cloudsoftcorp.com> Committed: Thu Mar 10 12:27:51 2016 +0000 ---------------------------------------------------------------------- README.md | 2 +- pom.xml | 30 ++++++++++++++++++++++++++++-- 2 files changed, 29 insertions(+), 3 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/brooklyn/blob/0e9da8a7/README.md ---------------------------------------------------------------------- diff --git a/README.md b/README.md index 90d13f0..a0ad219 100644 --- a/README.md +++ b/README.md @@ -23,7 +23,7 @@ get this project and its sub-modules: git submodule init git submodule update --remote --merge --recursive -And then: +And then, with jdk 1.8+, maven 3.1+, and go 1.6+ installed (or skip go with `-Dno-go-client`): mvn clean install http://git-wip-us.apache.org/repos/asf/brooklyn/blob/0e9da8a7/pom.xml ---------------------------------------------------------------------- diff --git a/pom.xml b/pom.xml index b782dee..d9713e7 100644 --- a/pom.xml +++ b/pom.xml @@ -76,8 +76,34 @@ <module>brooklyn-ui</module> <module>brooklyn-server</module> <module>brooklyn-library</module> - <module>brooklyn-client</module> - <module>brooklyn-dist</module> </modules> + <profiles> + <profile> + <!-- skip the client CLI by setting -Dno-go-client - useful if Go is not available --> + <id>go-client</id> + <activation> + <property> + <name>!no-go-client</name> + </property> + </activation> + <modules> + <module>brooklyn-client</module> + </modules> + </profile> + <profile> + <!-- also build the dist with a profile; we don't really expect people to opt in to skip, though they can; + mainly this is here to ensure the go-client profile modules if included get built before the dist module --> + <id>dist</id> + <activation> + <property> + <name>!no-dist</name> + </property> + </activation> + <modules> + <module>brooklyn-dist</module> + </modules> + </profile> + </profiles> + </project>