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 2020/08/13 06:46:56 UTC

[camel] 02/04: Fixed deprecated warning with maven mojo api

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.git

commit 4a5c7f7d40e440e72d22c3214e22fa622a1b027b
Author: Claus Ibsen <cl...@gmail.com>
AuthorDate: Wed Aug 12 22:26:20 2020 +0200

    Fixed deprecated warning with maven mojo api
---
 .../src/main/java/org/apache/camel/maven/resources/CopyResources.java   | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tooling/maven/camel-resources-plugin/src/main/java/org/apache/camel/maven/resources/CopyResources.java b/tooling/maven/camel-resources-plugin/src/main/java/org/apache/camel/maven/resources/CopyResources.java
index 249e170..9aa69b0 100644
--- a/tooling/maven/camel-resources-plugin/src/main/java/org/apache/camel/maven/resources/CopyResources.java
+++ b/tooling/maven/camel-resources-plugin/src/main/java/org/apache/camel/maven/resources/CopyResources.java
@@ -65,7 +65,7 @@ public class CopyResources extends AbstractMojo {
     @Parameter(required = true)
     private List<Resource> resources;
 
-    @Component
+    @Parameter(defaultValue = "${session}", readonly = true)
     private MavenSession session;
 
     @Component