You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@brooklyn.apache.org by an...@apache.org on 2018/04/13 16:18:26 UTC

brooklyn-dist git commit: Fix build issue due the the addition of k8s helm

Repository: brooklyn-dist
Updated Branches:
  refs/heads/master 3f0944c1f -> c7a737b98


Fix build issue due the the addition of k8s helm


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

Branch: refs/heads/master
Commit: c7a737b98993e99f4c9a367994069d0649e0d647
Parents: 3f0944c
Author: Thomas Bouron <th...@cloudsoftcorp.com>
Authored: Fri Apr 13 14:55:05 2018 +0100
Committer: andreaturli <an...@gmail.com>
Committed: Fri Apr 13 18:18:09 2018 +0200

----------------------------------------------------------------------
 .../quickstart/src/brooklyn-sample/pom.xml      | 38 +++++++++++++++++++-
 1 file changed, 37 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/brooklyn-dist/blob/c7a737b9/archetypes/quickstart/src/brooklyn-sample/pom.xml
----------------------------------------------------------------------
diff --git a/archetypes/quickstart/src/brooklyn-sample/pom.xml b/archetypes/quickstart/src/brooklyn-sample/pom.xml
index 5b48002..68fd0e1 100644
--- a/archetypes/quickstart/src/brooklyn-sample/pom.xml
+++ b/archetypes/quickstart/src/brooklyn-sample/pom.xml
@@ -130,7 +130,43 @@
       <version>${brooklyn.version}</version>
       <scope>test</scope>
     </dependency>
-
   </dependencies>
 
+  <build>
+    <!-- Required by microbean-helm - see https://github.com/grpc/grpc-java/blob/master/SECURITY.md#openssl-statically-linked-netty-tcnative-boringssl-static -->
+    <extensions>
+      <!-- Use os-maven-plugin to initialize the "os.detected" properties -->
+      <extension>
+        <groupId>kr.motd.maven</groupId>
+        <artifactId>os-maven-plugin</artifactId>
+        <version>1.5.0.Final</version>
+      </extension>
+    </extensions>
+    <plugins>
+      <!-- Use Ant to configure the appropriate "tcnative.classifier" property -->
+      <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-antrun-plugin</artifactId>
+        <executions>
+          <execution>
+            <phase>initialize</phase>
+            <configuration>
+              <exportAntProperties>true</exportAntProperties>
+              <target>
+                <condition property="tcnative.classifier"
+                           value="${os.detected.classifier}-fedora"
+                           else="${os.detected.classifier}">
+                  <isset property="os.detected.release.fedora"/>
+                </condition>
+              </target>
+            </configuration>
+            <goals>
+              <goal>run</goal>
+            </goals>
+          </execution>
+        </executions>
+      </plugin>
+    </plugins>
+  </build>
+
 </project>