Nikita Awasthi created CAMEL-23136:
--------------------------------------
Summary: camel-jbang - Export loses application.properties when
source files use Maven project layout
Key: CAMEL-23136
URL: https://issues.apache.org/jira/browse/CAMEL-23136
Project: Camel
Issue Type: Bug
Reporter: Nikita Awasthi
When exporting a Camel application using {{camel export}}, the
{{application.properties}} file content is silently lost if the source project
uses the standard Maven project layout
({{src/main/resources/application.properties}}) instead of having it at the
project root.
This affects all runtimes: Spring Boot, Quarkus, and Camel Main.
*How to reproduce:*
Given a project with the following structure:
{code}
project/
├── src/main/resources/
│ ├── application.properties <-- contains configuration
│ └── qdrant-rag.yaml
{code}
Running:
{code}
camel export \
--runtime=quarkus \
--gav=org.apache.camel.example:qdrant-rag-quarkus:1.0.0 \
--directory=./export-quarkus-test \
src/main/resources/qdrant-rag.yaml
{code}
The export completes successfully (no errors), but the exported
{{application.properties}} is *empty*. All configuration is silently lost.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)