4.3. 更新其他工件
您可以使用 jboss-eap-installation-manager
更新 JBoss EAP 安装中的其他工件。
注意
- 红帽不提供或支持 MyFaces 工件。
- 不支持 JBoss EAP 频道以外的所有其他频道。
前提条件
- 您在 红帽客户门户网站中有一个帐户 并已登录。
- 您已查看了 JBoss EAP 8.0 支持的配置。
- 已安装受支持的 JDK。
-
您已下载了
jboss-eap-installation-manager
。
流程
-
打开终端模拟器,再前往包含
jboss-eap-installation-manager
的目录。 使用新版本的
myfaces
工件更新manifest.yaml
文件中订阅的自定义频道:schemaVersion: 1.0.0 name: MyFaces manifest file streams: - groupId: org.apache.myfaces.core artifactId: myfaces-impl version: 4.0.1 - groupId: org.apache.myfaces.core artifactId: myfaces-api version: 4.0.1
部署新更新的清单:
mvn deploy:deploy-file -Dfile=manifest.yaml \ -DgroupId=com.example.channels -DartifactId=myfaces \ -Dclassifier=manifest -Dpackaging=yaml -Dversion=1.0.1 \ -Durl=file:/path/to/local/repository
- 停止 JBoss EAP 服务器。
更新工件:
$ ./jboss-eap-installation-manager.sh update perform --dir jboss-eap8 Updating server: /tmp/jboss/jboss-eap-8.0 Updates found: org.apache.myfaces.core:myfaces-api 4.0.0 ==> 4.0.1 org.apache.myfaces.core:myfaces-impl 4.0.0 ==> 4.0.1 Continue with update [y/N]: y Building updates Feature-packs resolved. Packages installed. Downloaded artifacts. JBoss modules installed. Configurations generated. JBoss examples installed. Build update complete! Applying updates Update complete! Operation completed in 21.48 seconds.