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:39 UTC
[camel] 02/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 43bb78f4093959a3e7d0bcf979f3debaab9dd279
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Thu Jun 1 10:03:32 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 5dd8d375652..c410ed6d2af 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(RuntimeConstants.RESOURCE_LOADER, "cloader");
+ velocityProperties.setProperty("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());