[
https://issues.apache.org/jira/browse/CAMEL-21558?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17906687#comment-17906687
]
Martin LyKy edited comment on CAMEL-21558 at 12/18/24 10:13 AM:
----------------------------------------------------------------
Hi [~davsclaus] ,
which one generates the Static endpoint DSL?
as far as i could see the camel-component-maven-plugin generates the
Description.json
([camel/components/camel-jms/src/generated/resources/META-INF/org/apache/camel/component/jms/jms.json
at main · apache/camel · GitHub)
|https://github.com/apache/camel/blob/main/components/camel-jms/src/generated/resources/META-INF/org/apache/camel/component/jms/jms.json]and
the "Configurer"-Classes
([camel/components/camel-jms/src/generated/java/org/apache/camel/component/jms
at main · apache/camel ·
GitHub)|https://github.com/apache/camel/tree/main/components/camel-jms/src/generated/java/org/apache/camel/component/jms]
At least the camel-maven-package-plugin worked in older versions (e.g. 4.4.2)
component outside of camel.
As far as I see you would only need to change one line the velocity files. The
velocity context is already set.
was (Author: JIRAUSER300758):
Hi [~davsclaus] ,
which one generates the Static endpoint DSL?
As far as i could see the camel-component-maven-plugin generates the
[Description.json|[camel/components/camel-jms/src/generated/resources/META-INF/org/apache/camel/component/jms/jms.json
at main · apache/camel ·
GitHub|https://github.com/apache/camel/blob/main/components/camel-jms/src/generated/resources/META-INF/org/apache/camel/component/jms/jms.json]]"
and the [
"Configurer"-Classes|[camel/components/camel-jms/src/generated/java/org/apache/camel/component/jms
at main · apache/camel ·
GitHub|https://github.com/apache/camel/tree/main/components/camel-jms/src/generated/java/org/apache/camel/component/jms]].
At least the camel-maven-package-plugin worked in older versions (e.g. 4.4.2)
component outside of camel.
As far as I see you would only need to change one line the velocity files. The
velocity context is already set.
> camel-maven-package-plugin broken package name (velocity
> --------------------------------------------------------
>
> Key: CAMEL-21558
> URL: https://issues.apache.org/jira/browse/CAMEL-21558
> Project: Camel
> Issue Type: Bug
> Components: camel-core
> Affects Versions: 4.8.1
> Reporter: Martin LyKy
> Priority: Trivial
> Labels: maven-package, tooling
>
> The Plugin camel-maven-package-plugin generates the Static endpoint DSL (e.g.
> goal generate-endpoint-dsl).
>
> When using this plugin outside of camel (for own camel components), the
> packages from these generated classses are hardcoded and always
> {code:java}
> org.apache.camel.builder.endpoint.dsl{code}
> and the configuration for the plugin is ignored:
> {code:java}
> <endpointFactoriesPackageName>de.unioninvestment.osirisx.technik.osiris.camel.rdbms.builder.dsl</endpointFactoriesPackageName>{code}
> The Problem is that the package is hardcoded in the templates
> e.g.
> [camel/tooling/maven/camel-package-maven-plugin/src/main/resources/velocity/endpoint-static-builders.vm
> at main · apache/camel ·
> GitHub|https://github.com/apache/camel/blob/main/tooling/maven/camel-package-maven-plugin/src/main/resources/velocity/endpoint-static-builders.vm#L36]
--
This message was sent by Atlassian Jira
(v8.20.10#820010)