You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Gaelle Fournier (Jira)" <ji...@apache.org> on 2026/09/11 07:17:00 UTC

[jira] [Created] (CAMEL-24681) camel-jbang: export does not include Maven repositories from properties camel.jbang.repos and camel.extra.repos

Gaelle Fournier created CAMEL-24681:
---------------------------------------

             Summary: camel-jbang:  export does not include Maven repositories from properties camel.jbang.repos and camel.extra.repos
                 Key: CAMEL-24681
                 URL: https://issues.apache.org/jira/browse/CAMEL-24681
             Project: Camel
          Issue Type: Bug
          Components: camel-jbang
    Affects Versions: 4.22.0
            Reporter: Gaelle Fournier
             Fix For: 4.22.1


When using {{camel run --runtime=quarkus|spring-boot}} or {{camel export}}, the generated {{pom.xml}} does not include Maven repositories configured via system properties, causing Maven build failures for artifacts hosted outside Central (e.g. Atlassian).

{{ExportBaseCommand.getMavenRepositories()}} reads {{camel.jbang.repos}} only from the properties file, ignoring it when set as a system property (e.g. by distribution launchers). It also never reads {{camel.extra.repos}}, despite it being [documented|https://camel.apache.org/manual/camel-jbang-running.html#_using_3rd_party_maven_repositories] for use via {{JAVA_TOOL_OPTIONS}}.

Additionally, {{buildRepositoryList()}} does not support the {{id=url}} format (e.g. {{atlassian=https://packages.atlassian.com/maven-external/}}), producing malformed POM entries.

Fix:

  * {{getMavenRepositories()}}: fall back to {{System.getProperty("camel.jbang.repos")}} when not in the properties file
  * {{getMavenRepositories()}}: read {{System.getProperty("camel.extra.repos")}}, split on commas, and add each entry
  * {{buildRepositoryList()}}: parse {{id=url}} format (detect {{=}} before first {{/}} to distinguish from plain URLs)




--
This message was sent by Atlassian Jira
(v8.20.10#820010)