Fixed dependency errors
diff --git a/examples/camel-example-cdi-minio/pom.xml b/examples/camel-example-cdi-minio/pom.xml
index a5e45cc..69a0ec4 100644
--- a/examples/camel-example-cdi-minio/pom.xml
+++ b/examples/camel-example-cdi-minio/pom.xml
@@ -10,18 +10,13 @@
</parent>
<artifactId>camel-example-cdi-minio</artifactId>
+ <name>Camel :: Example :: CDI :: Minio</name>
+ <description>Minio CDI example</description>
<packaging>jar</packaging>
- <version>3.5.0-SNAPSHOT</version>
-
- <name>Camel route using CDI in a standalone Java Container</name>
<properties>
- <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
- <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
- <deltaspike-version>1.9.0</deltaspike-version>
- <weld3-version>3.0.5.Final</weld3-version>
- <log4j2-version>2.13.3</log4j2-version>
- <cdi-api-version>2.0</cdi-api-version>
+ <category>Cloud</category>
+ <title>CDI Minio</title>
</properties>
<dependencyManagement>
@@ -30,7 +25,7 @@
<dependency>
<groupId>org.apache.camel</groupId>
<artifactId>camel-bom</artifactId>
- <version>3.5.0-SNAPSHOT</version>
+ <version>${camel.version}</version>
<scope>import</scope>
<type>pom</type>
</dependency>
@@ -39,20 +34,19 @@
<dependencies>
- <dependency>
- <groupId>io.minio</groupId>
- <artifactId>minio</artifactId>
- <version>${minio-version}</version>
- </dependency>
-
<!-- CDI API -->
<dependency>
<groupId>javax.enterprise</groupId>
<artifactId>cdi-api</artifactId>
- <version>2.0</version>
+ <version>${cdi-api-2.0-version}</version>
<scope>provided</scope>
</dependency>
+ <dependency>
+ <groupId>org.apache.camel</groupId>
+ <artifactId>camel-minio</artifactId>
+ </dependency>
+
<!-- Camel CDI -->
<dependency>
<groupId>org.apache.camel</groupId>
@@ -62,28 +56,11 @@
<groupId>org.apache.camel</groupId>
<artifactId>camel-core</artifactId>
</dependency>
-
- <!-- logging -->
- <dependency>
- <groupId>org.apache.logging.log4j</groupId>
- <artifactId>log4j-slf4j-impl</artifactId>
- <scope>runtime</scope>
- <version>${log4j2-version}</version>
- </dependency>
-
- <!-- testing -->
- <dependency>
- <groupId>org.apache.camel</groupId>
- <artifactId>camel-test</artifactId>
- <scope>test</scope>
- </dependency>
-
</dependencies>
<build>
- <defaultGoal>install</defaultGoal>
-
<plugins>
+
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
diff --git a/examples/camel-example-cdi-minio/src/main/java/org/apache/camel/example/cdi/minio/Application.java b/examples/camel-example-cdi-minio/src/main/java/org/apache/camel/example/cdi/minio/Application.java
index 313b928..2da0559 100644
--- a/examples/camel-example-cdi-minio/src/main/java/org/apache/camel/example/cdi/minio/Application.java
+++ b/examples/camel-example-cdi-minio/src/main/java/org/apache/camel/example/cdi/minio/Application.java
@@ -37,16 +37,6 @@
public Application() throws IOException {
}
- @Override
- public void configure() {
- from("minio://bucket-name?deleteAfterRead=false&maxMessagesPerPoll=25&delay=5000")
- .log(LoggingLevel.INFO, "consuming", "Consumer Fired!")
- .idempotentConsumer(header("CamelMinioETag"),
- FileIdempotentRepository.fileIdempotentRepository(new File("target/file.data"), 250, 512000))
- .log(LoggingLevel.INFO, "Replay Message Sent to file:minio_out ${in.header.CamelAwsS3Key}")
- .to("file:target/minio_out?fileName=${in.header.CamelMinioObjectName}");
- }
-
@Produces
@Named("minioClient")
MinioClient minioClient() {
@@ -56,4 +46,15 @@
.region(properties.getProperty("region"));
return client.build();
}
+
+ @Override
+ public void configure() {
+ from("minio://bucket-name?deleteAfterRead=false&maxMessagesPerPoll=25&delay=5000")
+ .log(LoggingLevel.INFO, "consuming", "Consumer Fired!")
+ .idempotentConsumer(header("CamelMinioETag"),
+ FileIdempotentRepository.fileIdempotentRepository(new File("target/file.data"), 250, 512000))
+ .log(LoggingLevel.INFO, "Replay Message Sent to file:minio_out ${in.header.CamelMinioObjectName}")
+ .to("file:target/minio_out?fileName=${in.header.CamelMinioObjectName}");
+ }
+
}