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 06:38:08 UTC
[camel-quarkus] branch master updated: Polish examples and use -P
native for all of them for native build. (#334)
This is an automated email from the ASF dual-hosted git repository.
davsclaus pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel-quarkus.git
The following commit(s) were added to refs/heads/master by this push:
new 2aae482 Polish examples and use -P native for all of them for native build. (#334)
2aae482 is described below
commit 2aae48209104969cc47fc9ba160ea5c226e85952
Author: Claus Ibsen <cl...@gmail.com>
AuthorDate: Fri Oct 25 08:37:59 2019 +0200
Polish examples and use -P native for all of them for native build. (#334)
---
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>