4.3. Building an offline Maven repository


Red Hat build of Apache Camel for Spring Boot users can build their own offline Maven repository which is used in a restricted environment. For each release of Red Hat build of Apache Camel for Spring Boot users can download the zip file from the Red Hat Customer Portal.

Procedure

  1. Download the offile Maven repository builder from the customer portal. For example, for Red Hat build of Camel Spring Boot version 4.10, use the Offline Maven builder.
  2. The downloaded file is a zip file that contains everything to build an offline Maven repository for this specific release.
  3. Unzip the downloaded zip file. The directory structure of the archive is as follows:

    ├──build-offline-repo.sh
    ├──logback.xml
    ├──maven-repositories.txt
    ├──offliner-2.2.jar
    ├──offliner-2.2.jar.md5
    ├──offliner-2.2-sources.jar
    ├──offliner-2.2-sources.jar.md5
    ├──README
    ├──rhaf-camel-offliner-4.10.3.txt
    └──rhaf-camel-spring-boot-offliner-4.10.3.txt

    This zip contains the following files:

    • build-offline-repo.sh - A wrapper script around the Offliner tool.
    • offliner-2.0.jar - Downloads the artifacts in the manifest.
    • redhat-camel-4.8.0-offline-manifest.txt

      • Lists the required artifacts that need to be downloaded.
    • redhat-camel-spring-boot-4.8.0-offline-manifest.txt

      • Lists the required artifacts that need to be downloaded.
    • README - Explains the steps and commands required for building the offline Maven repository.
  4. To build an offline repository, run the build-offline-repo.sh script as per instructions given in the README file. Optionally you can specify a directory where the artifacts should be downloaded to. If not specified, a directory called 'repository' is created in the current working directory.

If needed, you can configure the tool to use additional Maven repositories, by adding them to file maven-repositories.txt. This is generally not necessary as the tool is pre-configured with the right set of Maven repositories.

In case of a HTTP proxy and any HTTP calls that need to go via this proxy, you may need to change the script. Add the arguments --proxy <proxy-host> --proxy-user <proxy-user> --proxy-pass <proxy-pass> in the line that invokes the JVM in the script.

You can use the option -v to print the version number of the script. This version is the version number of the script and not related to the Red Hat build of Apache Camel product version.

Troubleshooting

You can configure the logging via the provided logback.xml file. When the shell script is executed, any download activity will be written to the log file offliner.log and any download failures are listed in errors.log. At the end of the execution the offliner tool displays a summary of the downloaded and failed artifacts, but we also recommend to scan through errors.log for any download failures.

If any artifacts are failed to be downloaded, re-run the tool against the same target folder. The tool will avoid to download artifacts that it already downloaded and only attempt those that it failed on previously.

Red Hat logoGithubredditYoutubeTwitter

자세한 정보

평가판, 구매 및 판매

커뮤니티

Red Hat 소개

Red Hat은 기업이 핵심 데이터 센터에서 네트워크 에지에 이르기까지 플랫폼과 환경 전반에서 더 쉽게 작업할 수 있도록 강화된 솔루션을 제공합니다.

보다 포괄적 수용을 위한 오픈 소스 용어 교체

Red Hat은 코드, 문서, 웹 속성에서 문제가 있는 언어를 교체하기 위해 최선을 다하고 있습니다. 자세한 내용은 다음을 참조하세요.Red Hat 블로그.

Red Hat 문서 정보

Legal Notice

Theme

© 2026 Red Hat
맨 위로 이동