이 콘텐츠는 선택한 언어로 제공되지 않습니다.

4.4. Locating Artifacts in a Fabric


Overview

Fabric containers also use Maven to locate artifacts, however they do so in a more constrained manner than a standalone container. Fabric containers use Maven through the fabric's Maven proxy and never search the local repository of the system on which it is running.
The Maven proxy attempts to strike a similar balance between accessing artifacts locally and accessing artifacts from remote repositories, however it changes the scope of local and remote. For default features, the artifacts are always stored in the fabric's system repository which is maintained by the fabric's ensemble servers. For non-default features, third party bundles, or customer developed bundles, it is likely that Maven will need to search remote repositories that are outside of the fabric to locate the artifacts.

Procedure for locating artifacts

Figure 4.3, “How Containers Locate Artifacts in a Fabric” shows an overview of the procedure that a fabric container follows when a feature or bundle is installed.

Figure 4.3. How Containers Locate Artifacts in a Fabric

The steps followed to locate the required Maven artifacts are:
  1. The container contacts the fabric Maven proxy to search for the artifacts.
  2. The proxy searches for the artifacts in the fabric's system repository.
    This repository contains all of the artifacts provided with the Red Hat JBoss Fuse installation.
  3. If the artifacts are not available in system repository, the proxy searches the remote repositories specified in its configuration.
    See chapter "Configuring a Fabric's Maven Proxy" in "Configuring and Running Red Hat JBoss Fuse" for details on how to configure a fabric's Maven proxy.
  4. The Maven proxy downloads the artifacts to the container.

Loading artifacts into the fabric's repository

Because fabric containers generally do not check a repository local to the machine on which it is running, you must load all of an application's artifacts into a repository that the fabric's Maven proxy knows about. There are two ways to do this:
  • load the application's artifacts into the fabric's system repository
    Maven can upload artifacts directly to the fabric's system repository by adding a repository element defining the Maven proxy's repository to the POM's distributionManagement element. Example 4.3, “Adding a Fabric Maven Proxy to a POM” shows a POM entry for connecting to a fabric's repository when one of the Fabric Servers is running on the local machine.

    Example 4.3. Adding a Fabric Maven Proxy to a POM

    <distributionManagement>
      <repository>
        <id>fabric-maven-proxy</id>
        <name>FMC Maven Proxy</name>
        <url>http://username:password@localhost:8107/maven/upload/</url>
      </repository>
    </distributionManagement>
    Copy to Clipboard Toggle word wrap
    You will need to modify the url element to include the connection details for your environment:
    Note
    The Red Hat JBoss Fuse Plugins for Eclipse can also be used to upload artifacts to a fabric's system repository. Red Hat JBoss Fuse Plugins for Eclipse will also generate a profile for deploying the application to a container.
  • load the application's artifacts to a custom repository and configure the fabric's Maven proxy to include the custom repository
    This is a good option if an application is going to be used in multiple fabrics because you will not need to install the application into a separate repository for each fabric used. All of the fabrics will use a single, centrally located version of the application.
맨 위로 이동
Red Hat logoGithubredditYoutubeTwitter

자세한 정보

평가판, 구매 및 판매

커뮤니티

Red Hat 문서 정보

Red Hat을 사용하는 고객은 신뢰할 수 있는 콘텐츠가 포함된 제품과 서비스를 통해 혁신하고 목표를 달성할 수 있습니다. 최신 업데이트를 확인하세요.

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

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

Red Hat 소개

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

Theme

© 2025 Red Hat