4.3. 在现有 JBoss EAP 服务器中添加功能软件包
在使用 jboss-eap-installation-manager 安装 JBoss EAP 服务器时,您可以添加额外的功能软件包。
先决条件
- 您在 红帽客户门户网站中有一个帐户 并已登录。
- 您已查看了 JBoss EAP 8.0 支持的配置。
- 已安装受支持的 JDK。
-
您已下载了
jboss-eap-installation-manager。
流程
-
打开终端模拟器,再前往包含
jboss-eap-installation-manager的目录。 创建一个
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>创建
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"使用
--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