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 2023/06/01 08:13:40 UTC

[camel] 03/03: Remove Velocity deprecation in Camel API Component Maven Plugin

This is an automated email from the ASF dual-hosted git repository.

acosentino pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel.git

commit 35cad2e8ab0ff3f0d0c1ce7e791322f9a18eb23c
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Thu Jun 1 10:11:49 2023 +0200

    Remove Velocity deprecation in Camel API Component Maven Plugin
    
    Signed-off-by: Andrea Cosentino <an...@gmail.com>
---
 .../src/main/java/org/apache/camel/maven/AbstractGeneratorMojo.java     | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tooling/maven/camel-api-component-maven-plugin/src/main/java/org/apache/camel/maven/AbstractGeneratorMojo.java b/tooling/maven/camel-api-component-maven-plugin/src/main/java/org/apache/camel/maven/AbstractGeneratorMojo.java
index c410ed6d2af..13d2efc0266 100644
--- a/tooling/maven/camel-api-component-maven-plugin/src/main/java/org/apache/camel/maven/AbstractGeneratorMojo.java
+++ b/tooling/maven/camel-api-component-maven-plugin/src/main/java/org/apache/camel/maven/AbstractGeneratorMojo.java
@@ -79,7 +79,7 @@ public abstract class AbstractGeneratorMojo extends AbstractMojo {
         static {
             // initialize velocity to load resources from class loader and use Log4J
             Properties velocityProperties = new Properties();
-            velocityProperties.setProperty("resource.loaders", "cloader");
+            velocityProperties.setProperty(RuntimeConstants.RESOURCE_LOADERS, "cloader");
             velocityProperties.setProperty("resource.loader.cloader.class", ClasspathResourceLoader.class.getName());
             Logger velocityLogger = LoggerFactory.getLogger("org.apache.camel.maven.Velocity");
             velocityProperties.setProperty(RuntimeConstants.RUNTIME_LOG_NAME, velocityLogger.getName());