4.3. 在现有 JBoss EAP 服务器中添加功能软件包


在使用 jboss-eap-installation-manager 安装 JBoss EAP 服务器时,您可以添加额外的功能软件包。

先决条件

流程

  1. 打开终端模拟器,再前往包含 jboss-eap-installation-manager 的目录。
  2. 创建一个 provisioning.xml 文件,并定义您要安装的功能软件包:

    <?xml version="1.0" ?>
    
    <installation xmlns="urn:jboss:galleon:provisioning:3.0">
        <feature-pack location="org.jboss.eap:wildfly-ee-galleon-pack:zip">
            <packages>
                <include name="docs.examples.configs"/>
            </packages>
        </feature-pack>
        <feature-pack location="<FEATURE_PACK_GROUP_ID>:<FEATURE_ARTIFACT_ID>:zip">
            <default-configs inherit="false"/>
            <packages inherit="false"/>
        </feature-pack>
        <config model="standalone" name="standalone.xml">
            <layers>
                <include name="<FEATURE_PACK_LAYER>"/>
            </layers>
        </config>
    </installation>
    Copy to Clipboard Toggle word wrap
  3. 创建 channels.yaml 文件,并定义您希望 JBoss EAP 订阅的频道。

      schemaVersion: "2.0.0"
      name: "eap-8.0"
      repositories:
        - id: "mrrc"
          url: "file:/Users/spyrkob/workspaces/set/prospero/prod-prospero/jboss-eap-8.0.0.GA-maven-repository/maven-repository"
      manifest:
        maven:
          groupId: "org.jboss.eap.channels"
          artifactId: "eap-8.0"
      ---
      schemaVersion: "2.0.0"
      name: "feature-pack-channel"
      repositories:
        - id: "feature-pack-repository"
          url: "https://repository.example.com/feature-pack"
      manifest:
        maven:
          groupId: "com.example.channels"
          artifactId: "feature-pack"
    Copy to Clipboard Toggle word wrap
  4. 使用 --definition--channel 参数安装功能软件包:

    ./jboss-eap-installation-manager.sh install \
      --definition provisioning.xml \
        --channel channels.yaml \
        --dir jboss-eap8
    Installing galleon provisioning definition: provisioning.xml
    Using channels:
    # eap-8.0
      manifest: org.jboss.eap.channels:eap-8.0
      repositories:
        id: mrrc
        url: file:/tmp/jboss/jboss-eap-8.0.0.GA-maven-repository/maven-repository
    #feature-pack-channel
      manifest: com.example.channels:feature-pack
      repositories:
        id: feature-pack-repository
        url: https://repository.example.com/feature-pack
    
    ===============
    END USER LICENSE AGREEMENT RED HAT JBOSS® MIDDLEWARE™
    ===============
    [...]
    ===============
    
    
    Accept the agreement(s) [y/N]y
    
    Feature-packs resolved.
    Packages installed.
    Downloaded artifacts.
    JBoss modules installed.
    Configurations generated.
    JBoss examples installed.
    
    Server created in /tmp/jboss/jboss-eap8
    Operation completed in 16.30 seconds
    Copy to Clipboard Toggle word wrap
Red Hat logoGithubredditYoutubeTwitter

学习

尝试、购买和销售

社区

关于红帽文档

通过我们的产品和服务,以及可以信赖的内容,帮助红帽用户创新并实现他们的目标。 了解我们当前的更新.

让开源更具包容性

红帽致力于替换我们的代码、文档和 Web 属性中存在问题的语言。欲了解更多详情,请参阅红帽博客.

關於紅帽

我们提供强化的解决方案,使企业能够更轻松地跨平台和环境(从核心数据中心到网络边缘)工作。

Theme

© 2026 Red Hat
返回顶部