4.6. 安装 JBoss EAP 时创建并订阅频道以提供其他工件
有些功能软件包需要额外的工件,它们不是由红帽提供的。您必须通过定义自定义频道来提供所需的工件。例如,MyFaces feature pack 需要 org.apache.myfaces.core:myfaces-impl 和 org.apache.myfaces.core:myfaces-api jar 文件。但是,您可以确定这些 jar 的确切版本。
注意
以下流程描述了如何创建为 MyFaces 功能软件包提供额外工件的频道。
前提条件
- 您在 红帽客户门户网站中有一个帐户 并已登录。
- 您已查看了 JBoss EAP 8.0 支持的配置。
- 已安装受支持的 JDK。
-
您已下载了
jboss-eap-installation-manager。 - 您的 JBoss EAP 安装中已安装了功能包。
流程
-
打开终端模拟器,再前往包含
jboss-eap-installation-manager的目录。 创建
manifest.yaml文件:Copy to Clipboard Copied! Toggle word wrap Toggle overflow 将清单部署到本地存储库:
mvn deploy:deploy-file -Dfile=manifest.yaml \ -DgroupId=com.example.channels -DartifactId=myfaces \ -Dclassifier=manifest -Dpackaging=yaml -Dversion=1.0.0 \ -Durl=file:/path/to/local/repository
mvn deploy:deploy-file -Dfile=manifest.yaml \ -DgroupId=com.example.channels -DartifactId=myfaces \ -Dclassifier=manifest -Dpackaging=yaml -Dversion=1.0.0 \ -Durl=file:/path/to/local/repositoryCopy to Clipboard Copied! Toggle word wrap Toggle overflow 将 JBoss EAP 服务器订阅到新频道:
./jboss-eap-installation-manager.sh channel add \ --channel-name myfaces-channel \ --repositories https://repo1.maven.org/maven2,file:/path/to/local/repository \ --manifest com.example.channels:myfaces \ --dir jboss-eap8$ ./jboss-eap-installation-manager.sh channel add \ --channel-name myfaces-channel \ --repositories https://repo1.maven.org/maven2,file:/path/to/local/repository \ --manifest com.example.channels:myfaces \ --dir jboss-eap8Copy to Clipboard Copied! Toggle word wrap Toggle overflow