You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by GitBox <gi...@apache.org> on 2020/10/14 15:11:07 UTC

[GitHub] [camel-quarkus] jamesnetherton commented on a change in pull request #1920: Added nsq native support fixes #1722

jamesnetherton commented on a change in pull request #1920:
URL: https://github.com/apache/camel-quarkus/pull/1920#discussion_r504742874



##########
File path: integration-tests/nsq/pom.xml
##########
@@ -23,17 +23,22 @@
     <modelVersion>4.0.0</modelVersion>
     <parent>
         <groupId>org.apache.camel.quarkus</groupId>
-        <artifactId>camel-quarkus-build-parent-it</artifactId>
+        <artifactId>camel-quarkus-integration-tests</artifactId>
         <version>1.2.0-SNAPSHOT</version>
-        <relativePath>../../../poms/build-parent-it/pom.xml</relativePath>
     </parent>
 
-    <artifactId>camel-quarkus-nsq-integration-test</artifactId>
-    <name>Camel Quarkus :: NSQ :: Integration Test</name>
+    <artifactId>camel-quarkus-integration-test-nsq</artifactId>
+    <name>Camel Quarkus :: Integration Tests :: NSQ</name>
     <description>Integration tests for Camel Quarkus NSQ extension</description>
 
     <dependencyManagement>
         <dependencies>
+            <!-- Workaround https://github.com/quarkusio/quarkus/issues/12659 waiting for Quarkus > 1.9.1.CR1 -->

Review comment:
       1.0.5 is included in Quarkus 1.9.0.  Once the upgrade PR is merged, this won't be necessary.

##########
File path: integration-tests/nsq/pom.xml
##########
@@ -49,6 +54,10 @@
             <groupId>org.apache.camel.quarkus</groupId>
             <artifactId>camel-quarkus-nsq</artifactId>
         </dependency>
+        <dependency>
+            <groupId>org.apache.camel.quarkus</groupId>
+            <artifactId>camel-quarkus-direct</artifactId>

Review comment:
       Please run `mvn process-resources -Pformat` to regenerate the deployment dependencies

##########
File path: integration-tests/nsq/src/main/java/org/apache/camel/quarkus/component/nsq/it/NsqLogger.java
##########
@@ -0,0 +1,39 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.camel.quarkus.component.nsq.it;
+
+import org.jboss.logging.Logger;
+
+/**
+ * Quarkus is not able to display logs in JVM mode when running NSQ surefire tests.
+ * This class intent to workaround this issue.
+ */
+public class NsqLogger {
+
+    public static void log(Logger logger, String format, Object... args) {
+        String log = String.format(format, args);
+        System.out.println(log);

Review comment:
       Is this class still needed after we get `jboss-logmanager-embedded` 1.0.5? And do we need the sysout calls?

##########
File path: extensions/nsq/deployment/src/main/java/org/apache/camel/quarkus/component/nsq/deployment/NsqProcessor.java
##########
@@ -16,12 +16,10 @@
  */
 package org.apache.camel.quarkus.component.nsq.deployment;
 
+import io.quarkus.deployment.annotations.BuildProducer;
 import io.quarkus.deployment.annotations.BuildStep;
-import io.quarkus.deployment.annotations.ExecutionTime;
-import io.quarkus.deployment.annotations.Record;
 import io.quarkus.deployment.builditem.FeatureBuildItem;
-import io.quarkus.deployment.pkg.steps.NativeBuild;
-import org.apache.camel.quarkus.core.JvmOnlyRecorder;
+import io.quarkus.deployment.builditem.nativeimage.ReflectiveClassBuildItem;
 import org.jboss.logging.Logger;
 
 class NsqProcessor {

Review comment:
       Small nit - can you remove the now unused LOG field.




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org