将 Vaadin OSGI portlet 所需的捆绑包部署到 Liferay 7.3
Deploying required bundles for Vaadin OSGI portlet to Liferay 7.3
使用 Felix Gogo Shell 将 Vaadin OSGI portlet 所需的捆绑包部署到 Liferay 7.0 过去是使用命令 blade sh start
完成的,例如对于捆绑包 vaadin-shared
:
blade sh start https://repo1.maven.org/maven2/com/vaadin/vaadin-shared/8.11.3/vaadin-shared-8.11.3.jar
但是,它不再适用于 Liferay 7.3:
blade sh start https://repo1.maven.org/maven2/com/vaadin/vaadin-shared/8.11.3/vaadin-shared-8.11.3.jar
start https://repo1.maven.org/maven2/com/vaadin/vaadin-shared/8.11.3/vaadin-shared-8.11.3.jar
gogo: IllegalArgumentException: Cannot coerce start(Token) to any of [(Bundle[])]
如何将捆绑包部署到 Liferay 7.3?
您必须在 Liferay 7.3:
中使用 Gogo shell 命令 install
和 start
1. blade sh install
blade sh install https://repo1.maven.org/maven2/com/vaadin/vaadin-shared/8.11.3/vaadin-shared-8.11.3.jar
install https://repo1.maven.org/maven2/com/vaadin/vaadin-shared/8.11.3/vaadin-shared-8.11.3.jar
Bundle ID: 1210
2. blade sh start
blade sh start 1210
start 1210
使用 Felix Gogo Shell 将 Vaadin OSGI portlet 所需的捆绑包部署到 Liferay 7.0 过去是使用命令 blade sh start
完成的,例如对于捆绑包 vaadin-shared
:
blade sh start https://repo1.maven.org/maven2/com/vaadin/vaadin-shared/8.11.3/vaadin-shared-8.11.3.jar
但是,它不再适用于 Liferay 7.3:
blade sh start https://repo1.maven.org/maven2/com/vaadin/vaadin-shared/8.11.3/vaadin-shared-8.11.3.jar
start https://repo1.maven.org/maven2/com/vaadin/vaadin-shared/8.11.3/vaadin-shared-8.11.3.jar
gogo: IllegalArgumentException: Cannot coerce start(Token) to any of [(Bundle[])]
如何将捆绑包部署到 Liferay 7.3?
您必须在 Liferay 7.3:
中使用 Gogo shell 命令install
和 start
1. blade sh install
blade sh install https://repo1.maven.org/maven2/com/vaadin/vaadin-shared/8.11.3/vaadin-shared-8.11.3.jar
install https://repo1.maven.org/maven2/com/vaadin/vaadin-shared/8.11.3/vaadin-shared-8.11.3.jar
Bundle ID: 1210
2. blade sh start
blade sh start 1210
start 1210