You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ac...@apache.org on 2019/07/24 13:59:31 UTC
[camel-quarkus] branch configuration-must-be-registered-for-refl
created (now 0858128)
This is an automated email from the ASF dual-hosted git repository.
acosentino pushed a change to branch configuration-must-be-registered-for-refl
in repository https://gitbox.apache.org/repos/asf/camel-quarkus.git.
at 0858128 AWS-EKS Extension: EKSConfiguration needs to be registered for Reflection
This branch includes the following new commits:
new b7ad0b4 Changed the integration test module name and folder name
new 1724fa7 AWS S3 Extension: S3Configuration needs to be registered for Reflection
new 2c17bb3 AWS-SNS Extension: SNSConfiguration needs to be registered for Reflection
new fc84cd1 AWS-SQS Extension: SQSConfiguration needs to be registered for reflection
new 0858128 AWS-EKS Extension: EKSConfiguration needs to be registered for Reflection
The 5 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] 05/05: AWS-EKS Extension: EKSConfiguration needs to
be registered for Reflection
Posted by ac...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
acosentino pushed a commit to branch configuration-must-be-registered-for-refl
in repository https://gitbox.apache.org/repos/asf/camel-quarkus.git
commit 085812845f46becba9693ad05a3af0bb211d2cd3
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Wed Jul 24 15:58:56 2019 +0200
AWS-EKS Extension: EKSConfiguration needs to be registered for Reflection
---
.../quarkus/component/aws/eks/deployment/CamelAwsEKSProcessor.java | 2 ++
1 file changed, 2 insertions(+)
diff --git a/extensions/aws-eks/deployment/src/main/java/org/apache/camel/quarkus/component/aws/eks/deployment/CamelAwsEKSProcessor.java b/extensions/aws-eks/deployment/src/main/java/org/apache/camel/quarkus/component/aws/eks/deployment/CamelAwsEKSProcessor.java
index c1d250b..b53f042 100644
--- a/extensions/aws-eks/deployment/src/main/java/org/apache/camel/quarkus/component/aws/eks/deployment/CamelAwsEKSProcessor.java
+++ b/extensions/aws-eks/deployment/src/main/java/org/apache/camel/quarkus/component/aws/eks/deployment/CamelAwsEKSProcessor.java
@@ -19,6 +19,7 @@ package org.apache.camel.quarkus.component.aws.eks.deployment;
import java.util.Collection;
import java.util.stream.Collectors;
+import org.apache.camel.component.aws.eks.EKSConfiguration;
import org.apache.commons.logging.impl.Jdk14Logger;
import org.apache.commons.logging.impl.LogFactoryImpl;
import org.jboss.jandex.ClassInfo;
@@ -91,6 +92,7 @@ class CamelAwsEKSProcessor {
CredentialScope.class.getCanonicalName(),
LogFactoryImpl.class.getCanonicalName(),
Jdk14Logger.class.getCanonicalName(),
+ EKSConfiguration.class.getCanonicalName(),
"com.sun.org.apache.xerces.internal.parsers.SAXParser",
"com.sun.xml.internal.stream.XMLInputFactoryImpl",
"org.apache.camel.converter.jaxp.XmlConverter"));
[camel-quarkus] 01/05: Changed the integration test module name and
folder name
Posted by ac...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
acosentino pushed a commit to branch configuration-must-be-registered-for-refl
in repository https://gitbox.apache.org/repos/asf/camel-quarkus.git
commit b7ad0b4efd90e2a8f9009904de81bf1665cff9af
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Wed Jul 24 15:01:32 2019 +0200
Changed the integration test module name and folder name
---
integration-tests/aws/pom.xml | 179 +++++++++++++++++++++
.../java/io/quarkus/it/camel/aws/CamelRoute.java | 50 ++++++
.../aws/src/main/resources/application.properties | 64 ++++++++
integration-tests/pom.xml | 2 +-
4 files changed, 294 insertions(+), 1 deletion(-)
diff --git a/integration-tests/aws/pom.xml b/integration-tests/aws/pom.xml
new file mode 100644
index 0000000..f03370b
--- /dev/null
+++ b/integration-tests/aws/pom.xml
@@ -0,0 +1,179 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+
+ 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.
+
+-->
+<project xmlns="http://maven.apache.org/POM/4.0.0"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+ <parent>
+ <groupId>org.apache.camel.quarkus</groupId>
+ <artifactId>camel-quarkus-integration-tests</artifactId>
+ <version>0.0.1-SNAPSHOT</version>
+ </parent>
+ <modelVersion>4.0.0</modelVersion>
+
+ <artifactId>camel-quarkus-integration-test-aws</artifactId>
+ <name>Camel Quarkus :: Integration Tests :: AWS Integration tests</name>
+ <description>The camel integration tests</description>
+
+
+ <dependencies>
+ <dependency>
+ <groupId>org.apache.camel.quarkus</groupId>
+ <artifactId>camel-quarkus-aws-s3</artifactId>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.camel.quarkus</groupId>
+ <artifactId>camel-quarkus-aws-sqs</artifactId>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.camel.quarkus</groupId>
+ <artifactId>camel-quarkus-aws-sns</artifactId>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.camel.quarkus</groupId>
+ <artifactId>camel-quarkus-aws-eks</artifactId>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.camel.quarkus</groupId>
+ <artifactId>camel-quarkus-log</artifactId>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.camel.quarkus</groupId>
+ <artifactId>camel-quarkus-timer</artifactId>
+ </dependency>
+
+
+ <!-- test dependencies -->
+ <!--
+ <dependency>
+ <groupId>io.quarkus</groupId>
+ <artifactId>quarkus-resteasy</artifactId>
+ </dependency>
+
+ <dependency>
+ <groupId>io.quarkus</groupId>
+ <artifactId>quarkus-junit5</artifactId>
+ </dependency>
+ <dependency>
+ <groupId>org.glassfish</groupId>
+ <artifactId>javax.json</artifactId>
+ </dependency>
+ <dependency>
+ <groupId>io.rest-assured</groupId>
+ <artifactId>rest-assured</artifactId>
+ </dependency>
+ -->
+ </dependencies>
+
+ <build>
+ <resources>
+ <resource>
+ <directory>src/main/resources</directory>
+ <filtering>true</filtering>
+ </resource>
+ </resources>
+ <plugins>
+ <plugin>
+ <artifactId>maven-surefire-plugin</artifactId>
+ <configuration>
+ <skip>true</skip>
+ </configuration>
+ </plugin>
+ <plugin>
+ <artifactId>maven-failsafe-plugin</artifactId>
+ <configuration>
+ <skip>true</skip>
+ </configuration>
+ </plugin>
+ <plugin>
+ <groupId>io.quarkus</groupId>
+ <artifactId>quarkus-maven-plugin</artifactId>
+ <executions>
+ <execution>
+ <goals>
+ <goal>build</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-enforcer-plugin</artifactId>
+ <configuration>
+ <skip>true</skip>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+
+ <profiles>
+ <profile>
+ <id>native-image</id>
+ <activation>
+ <property>
+ <name>native</name>
+ </property>
+ </activation>
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-failsafe-plugin</artifactId>
+ <executions>
+ <execution>
+ <goals>
+ <goal>integration-test</goal>
+ <goal>verify</goal>
+ </goals>
+ <configuration>
+ <systemProperties>
+ <native.image.path>${project.build.directory}/${project.build.finalName}-runner</native.image.path>
+ </systemProperties>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+ <plugin>
+ <groupId>io.quarkus</groupId>
+ <artifactId>quarkus-maven-plugin</artifactId>
+ <executions>
+ <execution>
+ <id>native-image</id>
+ <goals>
+ <goal>native-image</goal>
+ </goals>
+ <configuration>
+ <reportErrorsAtRuntime>false</reportErrorsAtRuntime>
+ <cleanupServer>true</cleanupServer>
+ <enableHttpUrlHandler>true</enableHttpUrlHandler>
+ <enableServer>false</enableServer>
+ <dumpProxies>false</dumpProxies>
+ <graalvmHome>${graalvmHome}</graalvmHome>
+ <enableJni>true</enableJni>
+ <enableAllSecurityServices>true</enableAllSecurityServices>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ </build>
+ </profile>
+ </profiles>
+
+</project>
diff --git a/integration-tests/aws/src/main/java/io/quarkus/it/camel/aws/CamelRoute.java b/integration-tests/aws/src/main/java/io/quarkus/it/camel/aws/CamelRoute.java
new file mode 100644
index 0000000..1e42ac4
--- /dev/null
+++ b/integration-tests/aws/src/main/java/io/quarkus/it/camel/aws/CamelRoute.java
@@ -0,0 +1,50 @@
+/*
+ * 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 io.quarkus.it.camel.aws;
+
+import org.apache.camel.builder.RouteBuilder;
+
+import io.quarkus.runtime.annotations.RegisterForReflection;
+
+@RegisterForReflection
+public class CamelRoute extends RouteBuilder {
+
+ @Override
+ public void configure() {
+ from("timer:quarkus-s3?repeatCount=1")
+ .setHeader("CamelAwsS3Key", constant("testquarkus"))
+ .setBody(constant("Quarkus is great!"))
+ .to("aws-s3://camel-kafka-connector")
+ .to("log:sf?showAll=true");
+
+ from("timer:quarkus-sqs?repeatCount=1")
+ .setBody(constant("Quarkus is great!"))
+ .to("aws-sqs://camel-1")
+ .to("log:sf?showAll=true");
+
+ from("timer:quarkus-eks?repeatCount=1")
+ .setHeader("CamelAwsEKSOperation", constant("listClusters"))
+ .to("aws-eks://cluster")
+ .to("log:sf?showAll=true");
+
+ from("timer:quarkus-sns?repeatCount=1")
+ .setBody(constant("Quarkus is great!"))
+ .to("aws-sns://topic1")
+ .to("log:sf?showAll=true");
+ }
+
+}
diff --git a/integration-tests/aws/src/main/resources/application.properties b/integration-tests/aws/src/main/resources/application.properties
new file mode 100644
index 0000000..5d14f9f
--- /dev/null
+++ b/integration-tests/aws/src/main/resources/application.properties
@@ -0,0 +1,64 @@
+## ---------------------------------------------------------------------------
+## 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.
+## ---------------------------------------------------------------------------
+#
+# Quarkus
+#
+quarkus.ssl.native=true
+quarkus.log.file.enable = false
+
+#
+# Quarkus :: Camel
+#
+quarkus.camel.disable-xml=true
+quarkus.camel.disable-jaxb=true
+quarkus.camel.dump-routes=true
+quarkus.camel.defer-init-phase=true
+
+#
+# Camel
+#
+camel.context.name = quarkus-camel-example
+camel.component.properties.prefixToken={{
+camel.component.properties.suffixToken=}}
+
+#
+# Camel :: AWS S3
+#
+camel.component.aws-s3.access-key={{env:AWS_ACCESS_KEY}}
+camel.component.aws-s3.secret-key={{env:AWS_SECRET_KEY}}
+camel.component.aws-s3.region={{env:AWS_REGION}}
+
+#
+# Camel :: AWS SNS
+#
+camel.component.aws-sns.access-key={{env:AWS_ACCESS_KEY}}
+camel.component.aws-sns.secret-key={{env:AWS_SECRET_KEY}}
+camel.component.aws-sns.region={{env:AWS_REGION}}
+
+#
+# Camel :: AWS EKS
+#
+camel.component.aws-eks.access-key={{env:AWS_ACCESS_KEY}}
+camel.component.aws-eks.secret-key={{env:AWS_SECRET_KEY}}
+camel.component.aws-eks.region={{env:AWs_REGION}}
+
+#
+# Camel :: AWS SQS
+#
+camel.component.aws-sqs.access-key={{env:AWS_ACCESS_KEY}}
+camel.component.aws-sqs.secret-key={{env:AWS_SECRET_KEY}}
+camel.component.aws-sqs.region={{env:AWS_REGION}}
diff --git a/integration-tests/pom.xml b/integration-tests/pom.xml
index 7690cfa..0f2917b 100644
--- a/integration-tests/pom.xml
+++ b/integration-tests/pom.xml
@@ -38,7 +38,7 @@
<module>core</module>
<module>netty4-http</module>
- <module>aws-itests</module>
+ <module>aws</module>
<module>infinispan</module>
<module>jdbc</module>
<module>salesforce</module>
[camel-quarkus] 04/05: AWS-SQS Extension: SQSConfiguration needs to
be registered for reflection
Posted by ac...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
acosentino pushed a commit to branch configuration-must-be-registered-for-refl
in repository https://gitbox.apache.org/repos/asf/camel-quarkus.git
commit fc84cd1572dbc4787e67b67b899115664d1cfd2e
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Wed Jul 24 15:57:57 2019 +0200
AWS-SQS Extension: SQSConfiguration needs to be registered for reflection
---
.../quarkus/component/aws/sqs/deployment/CamelAwsSQSProcessor.java | 2 ++
1 file changed, 2 insertions(+)
diff --git a/extensions/aws-sqs/deployment/src/main/java/org/apache/camel/quarkus/component/aws/sqs/deployment/CamelAwsSQSProcessor.java b/extensions/aws-sqs/deployment/src/main/java/org/apache/camel/quarkus/component/aws/sqs/deployment/CamelAwsSQSProcessor.java
index 5323fce..492357c 100644
--- a/extensions/aws-sqs/deployment/src/main/java/org/apache/camel/quarkus/component/aws/sqs/deployment/CamelAwsSQSProcessor.java
+++ b/extensions/aws-sqs/deployment/src/main/java/org/apache/camel/quarkus/component/aws/sqs/deployment/CamelAwsSQSProcessor.java
@@ -19,6 +19,7 @@ package org.apache.camel.quarkus.component.aws.sqs.deployment;
import java.util.Collection;
import java.util.stream.Collectors;
+import org.apache.camel.component.aws.sqs.SqsConfiguration;
import org.apache.commons.logging.impl.Jdk14Logger;
import org.apache.commons.logging.impl.LogFactoryImpl;
import org.jboss.jandex.ClassInfo;
@@ -92,6 +93,7 @@ class CamelAwsSQSProcessor {
LogFactoryImpl.class.getCanonicalName(),
Jdk14Logger.class.getCanonicalName(),
AWS4Signer.class.getCanonicalName(),
+ SqsConfiguration.class.getCanonicalName(),
"com.sun.org.apache.xerces.internal.parsers.SAXParser",
"com.sun.xml.internal.stream.XMLInputFactoryImpl",
"org.apache.camel.converter.jaxp.XmlConverter"));
[camel-quarkus] 03/05: AWS-SNS Extension: SNSConfiguration needs to
be registered for Reflection
Posted by ac...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
acosentino pushed a commit to branch configuration-must-be-registered-for-refl
in repository https://gitbox.apache.org/repos/asf/camel-quarkus.git
commit 2c17bb333466e7796c0a09acda0f90046f1d9a55
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Wed Jul 24 15:57:14 2019 +0200
AWS-SNS Extension: SNSConfiguration needs to be registered for Reflection
---
.../quarkus/component/aws/sns/deployment/CamelAwsSNSProcessor.java | 2 ++
1 file changed, 2 insertions(+)
diff --git a/extensions/aws-sns/deployment/src/main/java/org/apache/camel/quarkus/component/aws/sns/deployment/CamelAwsSNSProcessor.java b/extensions/aws-sns/deployment/src/main/java/org/apache/camel/quarkus/component/aws/sns/deployment/CamelAwsSNSProcessor.java
index 77063eb..c9216d0 100644
--- a/extensions/aws-sns/deployment/src/main/java/org/apache/camel/quarkus/component/aws/sns/deployment/CamelAwsSNSProcessor.java
+++ b/extensions/aws-sns/deployment/src/main/java/org/apache/camel/quarkus/component/aws/sns/deployment/CamelAwsSNSProcessor.java
@@ -19,6 +19,7 @@ package org.apache.camel.quarkus.component.aws.sns.deployment;
import java.util.Collection;
import java.util.stream.Collectors;
+import org.apache.camel.component.aws.sns.SnsConfiguration;
import org.apache.commons.logging.impl.Jdk14Logger;
import org.apache.commons.logging.impl.LogFactoryImpl;
import org.jboss.jandex.ClassInfo;
@@ -92,6 +93,7 @@ class CamelAwsSNSProcessor {
LogFactoryImpl.class.getCanonicalName(),
Jdk14Logger.class.getCanonicalName(),
AWS4Signer.class.getCanonicalName(),
+ SnsConfiguration.class.getCanonicalName(),
"com.sun.org.apache.xerces.internal.parsers.SAXParser",
"com.sun.xml.internal.stream.XMLInputFactoryImpl",
"org.apache.camel.converter.jaxp.XmlConverter"));
[camel-quarkus] 02/05: AWS S3 Extension: S3Configuration needs to
be registered for Reflection
Posted by ac...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
acosentino pushed a commit to branch configuration-must-be-registered-for-refl
in repository https://gitbox.apache.org/repos/asf/camel-quarkus.git
commit 1724fa7aca6c539cc0833645740950eae0411eaf
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Wed Jul 24 15:56:17 2019 +0200
AWS S3 Extension: S3Configuration needs to be registered for Reflection
---
.../camel/quarkus/component/aws/s3/deployment/CamelAwsS3Processor.java | 2 ++
1 file changed, 2 insertions(+)
diff --git a/extensions/aws-s3/deployment/src/main/java/org/apache/camel/quarkus/component/aws/s3/deployment/CamelAwsS3Processor.java b/extensions/aws-s3/deployment/src/main/java/org/apache/camel/quarkus/component/aws/s3/deployment/CamelAwsS3Processor.java
index 3f16539..f2471bf 100644
--- a/extensions/aws-s3/deployment/src/main/java/org/apache/camel/quarkus/component/aws/s3/deployment/CamelAwsS3Processor.java
+++ b/extensions/aws-s3/deployment/src/main/java/org/apache/camel/quarkus/component/aws/s3/deployment/CamelAwsS3Processor.java
@@ -19,6 +19,7 @@ package org.apache.camel.quarkus.component.aws.s3.deployment;
import java.util.Collection;
import java.util.stream.Collectors;
+import org.apache.camel.component.aws.s3.S3Configuration;
import org.apache.commons.logging.impl.Jdk14Logger;
import org.apache.commons.logging.impl.LogFactoryImpl;
import org.jboss.jandex.ClassInfo;
@@ -99,6 +100,7 @@ class CamelAwsS3Processor {
LogFactoryImpl.class.getCanonicalName(),
Jdk14Logger.class.getCanonicalName(),
AWSS3V4Signer.class.getCanonicalName(),
+ S3Configuration.class.getCanonicalName(),
"com.sun.org.apache.xerces.internal.parsers.SAXParser",
"com.sun.xml.internal.stream.XMLInputFactoryImpl",
"org.apache.camel.converter.jaxp.XmlConverter"));