Repository: brooklyn-client
Updated Branches:
  refs/heads/master d64428c52 -> 02b1fc6ad


Add -Pno-go-client profile to permit skipping of build for users without Go.


Project: http://git-wip-us.apache.org/repos/asf/brooklyn-client/repo
Commit: http://git-wip-us.apache.org/repos/asf/brooklyn-client/commit/6e868db0
Tree: http://git-wip-us.apache.org/repos/asf/brooklyn-client/tree/6e868db0
Diff: http://git-wip-us.apache.org/repos/asf/brooklyn-client/diff/6e868db0

Branch: refs/heads/master
Commit: 6e868db0e9de64c8fe389db38df798d1586b919c
Parents: 0623158
Author: Geoff Macartney <geoff.macart...@cloudsoftcorp.com>
Authored: Wed Mar 9 20:47:18 2016 +0000
Committer: Geoff Macartney <geoff.macart...@cloudsoftcorp.com>
Committed: Wed Mar 9 20:47:18 2016 +0000

----------------------------------------------------------------------
 pom.xml | 121 ++++++++++++++++++++++++++++++++++-------------------------
 1 file changed, 69 insertions(+), 52 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/brooklyn-client/blob/6e868db0/pom.xml
----------------------------------------------------------------------
diff --git a/pom.xml b/pom.xml
index ec34675..cdf21ad 100644
--- a/pom.xml
+++ b/pom.xml
@@ -50,58 +50,75 @@
         <target>all</target>
     </properties>
 
-    <build>
-        <plugins>
-            <plugin>
-                <artifactId>maven-antrun-plugin</artifactId>
-                <version>1.8</version>
-                <executions>
-                    <execution>
-                        <id>process-build-all</id>
-                        <phase>compile</phase>
+
+    <profiles>
+
+        <profile>
+            <id>no-go-client</id>
+        </profile>
+
+        <profile>
+            <id>go-client</id>
+            <activation>
+                <activeByDefault>true</activeByDefault>
+            </activation>
+
+            <build>
+                <plugins>
+                    <plugin>
+                        <artifactId>maven-antrun-plugin</artifactId>
+                        <version>1.8</version>
+                        <executions>
+                            <execution>
+                                <id>process-build-all</id>
+                                <phase>compile</phase>
+                                <configuration>
+                                    <target>
+                                        <ant target="${target}"/>
+                                    </target>
+                                </configuration>
+                                <goals>
+                                    <goal>run</goal>
+                                </goals>
+                            </execution>
+
+                        </executions>
+                    </plugin>
+
+                    <plugin>
+                        <artifactId>maven-assembly-plugin</artifactId>
+                        <version>${maven.assembly.plugin.version}</version>
+                        <configuration>
+                            <descriptors>
+                                
<descriptor>src/main/assembly/bin.xml</descriptor>
+                            </descriptors>
+                        </configuration>
+                        <executions>
+                            <execution>
+                                <id>make-assembly</id>
+                                <phase>package</phase>
+                                <goals>
+                                    <goal>single</goal>
+                                </goals>
+                            </execution>
+                        </executions>
+                    </plugin>
+
+                    <plugin>
+                        <groupId>org.apache.rat</groupId>
+                        <artifactId>apache-rat-plugin</artifactId>
+                        <version>0.11</version>
                         <configuration>
-                            <target>
-                                <ant target="${target}"/>
-                            </target>
+                            <excludes combine.children="append">
+                                <exclude>**/br/Godeps/**/*</exclude>
+                            </excludes>
                         </configuration>
-                        <goals>
-                            <goal>run</goal>
-                        </goals>
-                    </execution>
-
-                </executions>
-            </plugin>
-
-            <plugin>
-                <artifactId>maven-assembly-plugin</artifactId>
-                <version>${maven.assembly.plugin.version}</version>
-                <configuration>
-                    <descriptors>
-                        <descriptor>src/main/assembly/bin.xml</descriptor>
-                    </descriptors>
-                </configuration><executions>
-                <execution>
-                    <id>make-assembly</id>
-                    <phase>package</phase>
-                    <goals>
-                        <goal>single</goal>
-                    </goals>
-                </execution>
-            </executions>
-            </plugin>
-
-            <plugin>
-                <groupId>org.apache.rat</groupId>
-                <artifactId>apache-rat-plugin</artifactId>
-                <version>0.11</version>
-                <configuration>
-                    <excludes combine.children="append">
-                        <exclude>**/br/Godeps/**/*</exclude>
-                    </excludes>
-                </configuration>
-            </plugin>
-
-        </plugins>
-
-    </build>
+                    </plugin>
+
+                </plugins>
+
+            </build>
+
+        </profile>
+    </profiles>
 </project>

Reply via email to