camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From acosent...@apache.org
Subject camel git commit: Fixed Camel-gRPC Kubernetes example with the latest f-m-p
Date Tue, 05 Sep 2017 09:05:21 GMT
Repository: camel
Updated Branches:
  refs/heads/master 3055b1357 -> bec99f278


Fixed Camel-gRPC Kubernetes example with the latest f-m-p


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

Branch: refs/heads/master
Commit: bec99f2787bc30055a23e6638f404aa014e01a65
Parents: 3055b13
Author: Andrea Cosentino <ancosen@gmail.com>
Authored: Tue Sep 5 11:03:21 2017 +0200
Committer: Andrea Cosentino <ancosen@gmail.com>
Committed: Tue Sep 5 11:03:21 2017 +0200

----------------------------------------------------------------------
 .../example/springboot/grpc/CamelGrpcRoute.java |  2 +-
 .../hello-camel-grpc-server-kubernetes/pom.xml  | 20 ++++++++++++++++----
 2 files changed, 17 insertions(+), 5 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/bec99f27/examples/camel-example-grpc-kubernetes/hello-camel-grpc-client-kubernetes/src/main/java/org/apache/camel/example/springboot/grpc/CamelGrpcRoute.java
----------------------------------------------------------------------
diff --git a/examples/camel-example-grpc-kubernetes/hello-camel-grpc-client-kubernetes/src/main/java/org/apache/camel/example/springboot/grpc/CamelGrpcRoute.java
b/examples/camel-example-grpc-kubernetes/hello-camel-grpc-client-kubernetes/src/main/java/org/apache/camel/example/springboot/grpc/CamelGrpcRoute.java
index 864a880..19a55ec 100644
--- a/examples/camel-example-grpc-kubernetes/hello-camel-grpc-client-kubernetes/src/main/java/org/apache/camel/example/springboot/grpc/CamelGrpcRoute.java
+++ b/examples/camel-example-grpc-kubernetes/hello-camel-grpc-client-kubernetes/src/main/java/org/apache/camel/example/springboot/grpc/CamelGrpcRoute.java
@@ -39,7 +39,7 @@ public class CamelGrpcRoute extends RouteBuilder {
                 exchange.getIn().setBody(request, CamelHelloRequest.class);
 
             }
-        }).to("grpc://grpc-server:80/org.apache.camel.examples.CamelHello?method=sayHelloToCamel&synchronous=true").log("Received
${body}");
+        }).to("grpc://grpc-server:8080/org.apache.camel.examples.CamelHello?method=sayHelloToCamel&synchronous=true").log("Received
${body}");
     }
 
 }

http://git-wip-us.apache.org/repos/asf/camel/blob/bec99f27/examples/camel-example-grpc-kubernetes/hello-camel-grpc-server-kubernetes/pom.xml
----------------------------------------------------------------------
diff --git a/examples/camel-example-grpc-kubernetes/hello-camel-grpc-server-kubernetes/pom.xml
b/examples/camel-example-grpc-kubernetes/hello-camel-grpc-server-kubernetes/pom.xml
index 57b8c9d..6208614 100644
--- a/examples/camel-example-grpc-kubernetes/hello-camel-grpc-server-kubernetes/pom.xml
+++ b/examples/camel-example-grpc-kubernetes/hello-camel-grpc-server-kubernetes/pom.xml
@@ -87,17 +87,29 @@
 				</configuration>
 			</plugin>
 			<plugin>
-				<!-- Build an executable JAR -->
-				<groupId>org.apache.maven.plugins</groupId>
-				<artifactId>maven-jar-plugin</artifactId>
-				<version>2.4</version>
+				<!-- NOTE: We don't need a groupId specification because the group is 
+					org.apache.maven.plugins ...which is assumed by default. -->
+				<artifactId>maven-assembly-plugin</artifactId>
+				<version>3.1.0</version>
 				<configuration>
+					<descriptorRefs>
+						<descriptorRef>jar-with-dependencies</descriptorRef>
+					</descriptorRefs>
 					<archive>
 						<manifest>
 							<mainClass>org.apache.camel.examples.grpc.HelloCamelServer</mainClass>
 						</manifest>
 					</archive>
 				</configuration>
+				<executions>
+					<execution>
+						<id>make-assembly</id> <!-- this is used for inheritance merges -->
+						<phase>package</phase> <!-- bind to the packaging phase -->
+						<goals>
+							<goal>single</goal>
+						</goals>
+					</execution>
+				</executions>
 			</plugin>
 		</plugins>
 	</build>


Mime
View raw message