You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by da...@apache.org on 2019/10/25 04:10:19 UTC

[camel-quarkus] branch polish created (now 2d511e0)

This is an automated email from the ASF dual-hosted git repository.

davsclaus pushed a change to branch polish
in repository https://gitbox.apache.org/repos/asf/camel-quarkus.git.


      at 2d511e0  Polish examples and use -P native for all of them for native build.

This branch includes the following new commits:

     new 2d511e0  Polish examples and use -P native for all of them for native build.

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



[camel-quarkus] 01/01: Polish examples and use -P native for all of them for native build.

Posted by da...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

davsclaus pushed a commit to branch polish
in repository https://gitbox.apache.org/repos/asf/camel-quarkus.git

commit 2d511e0a7c6bc5b60d7cc72b2c8dfa0a08f69288
Author: Claus Ibsen <cl...@gmail.com>
AuthorDate: Fri Oct 25 06:08:55 2019 +0200

    Polish examples and use -P native for all of them for native build.
---
 examples/observability/README.adoc | 12 ++++++++----
 examples/observability/pom.xml     |  3 ++-
 examples/rest-json/README.adoc     | 14 +++++++++++++-
 examples/rest-json/pom.xml         |  3 ++-
 4 files changed, 25 insertions(+), 7 deletions(-)

diff --git a/examples/observability/README.adoc b/examples/observability/README.adoc
index 566d390..303b5a7 100644
--- a/examples/observability/README.adoc
+++ b/examples/observability/README.adoc
@@ -11,14 +11,18 @@ $ mvn clean compile quarkus:dev -DnoDeps
 
 This compiles the project and starts the Quarkus tooling in https://quarkus.io/guides/maven-tooling#development-mode[development mode].
 
-To build a https://quarkus.io/guides/maven-tooling#building-a-native-executable[native executable] run the following (Docker required):
+== Native build
 
-[source]
+To build as native:
+
+[source,text]
 ----
-$ mvn clean package -Dnative
+$ mvn package -Pnative
 ----
 
-You can find the native executable in the `target` directory.
+This requires having GraalVM and other tools installed.
+See the https://quarkus.io/guides/building-native-image-guide[Quarkus Native Guide] for details.
+
 
 ==== Metrics endpoint
 
diff --git a/examples/observability/pom.xml b/examples/observability/pom.xml
index d6dfad0..b091d6c 100644
--- a/examples/observability/pom.xml
+++ b/examples/observability/pom.xml
@@ -89,7 +89,7 @@
 
     <profiles>
         <profile>
-            <id>native-image</id>
+            <id>native</id>
             <activation>
                 <property>
                     <name>native</name>
@@ -127,6 +127,7 @@
                                     <enableServer>false</enableServer>
                                     <cleanupServer>true</cleanupServer>
                                     <enableHttpUrlHandler>true</enableHttpUrlHandler>
+                                    <disableReports>true</disableReports>
                                 </configuration>
                             </execution>
                         </executions>
diff --git a/examples/rest-json/README.adoc b/examples/rest-json/README.adoc
index e87af21..12add2e 100644
--- a/examples/rest-json/README.adoc
+++ b/examples/rest-json/README.adoc
@@ -15,4 +15,16 @@ Then point your browser to one of the endpoints:
 ----
 http://localhost:8080/fruits
 http://localhost:8080/legumes
-----
\ No newline at end of file
+----
+
+== Native build
+
+To build as native:
+
+[source,text]
+----
+$ mvn package -Pnative
+----
+
+This requires having GraalVM and other tools installed.
+See the https://quarkus.io/guides/building-native-image-guide[Quarkus Native Guide] for details.
diff --git a/examples/rest-json/pom.xml b/examples/rest-json/pom.xml
index 96e4083..8f0c1ba 100644
--- a/examples/rest-json/pom.xml
+++ b/examples/rest-json/pom.xml
@@ -73,7 +73,7 @@
 
     <profiles>
         <profile>
-            <id>native-image</id>
+            <id>native</id>
             <activation>
                 <property>
                     <name>native</name>
@@ -111,6 +111,7 @@
                                     <enableServer>false</enableServer>
                                     <cleanupServer>true</cleanupServer>
                                     <enableHttpUrlHandler>true</enableHttpUrlHandler>
+                                    <disableReports>true</disableReports>
                                 </configuration>
                             </execution>
                         </executions>