OpenLiberty Maven 插件无法将 looseaplication 设置为 false
OpenLiberty Maven Plugin cannot set looseaplication to false
我正在按照该指南 (URL) 练习 openliberty.io 多模块。默认情况下工作正常。
但我想使用 skinnyWars 结构,当我 运行 liberty:运行 时出现错误或 liberty:dev 目标,无法解决。
处理步骤;
我将 skinnyWars 参数设置为 true;
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-ear-plugin</artifactId>
<version>3.0.2</version>
<configuration>
<modules>
<!-- tag::jarModule[] -->
<jarModule>
<groupId>io.openliberty.guides</groupId>
<artifactId>guide-maven-multimodules-jar</artifactId>
<uri>/guide-maven-multimodules-jar-1.0-SNAPSHOT.jar</uri>
</jarModule>
<!-- end::jarModule[] -->
<!-- tag::webModule[] -->
<webModule>
<groupId>io.openliberty.guides</groupId>
<artifactId>guide-maven-multimodules-war</artifactId>
<uri>/guide-maven-multimodules-war-1.0-SNAPSHOT.war</uri>
<!-- Set custom context root -->
<!-- tag::contextRoot[] -->
<contextRoot>/converter</contextRoot>
<!-- end::contextRoot[] -->
</webModule>
<!-- end::webModule[] -->
</modules>
<skinnyWars>true</skinnyWars>
</configuration>
我收到那个错误
[ERROR] Failed to execute goal io.openliberty.tools:liberty-maven-plugin:3.2:dev (default-cli) on project guide-maven-multimodules-ear: Unable to create loose configuration for the EAR application with skinnyWars package from io.openliberty.guides:guide-maven-multimodules-war:1.0-SNAPSHOT. Please set the looseApplication configuration parameter to false and try again. -> [Help 1]
然后正如它告诉我的那样,我将 looseApplication 参数设置为 false;
<plugin>
<groupId>io.openliberty.tools</groupId>
<artifactId>liberty-maven-plugin</artifactId>
<version>3.2</version>
<configuration>
<looseApplication>false</looseApplication>
</configuration>
</plugin>
mvn 自由:运行 -f finish/ear/pom.xml
我得到了无法启动两个名为 guide-maven-multimodules-ear. 的应用程序的错误。应用程序在不同的 contextRoot 启动。
[AUDIT ] CWWKE0001I: The server defaultServer has been launched.
[AUDIT ] CWWKG0093A: Processing configuration drop-ins resource: /home/user/git/guide-maven-multimodules/finish/ear/target/liberty/wlp/usr/servers/defaultServer/configDropins/defaults/install_apps_configuration_1491924271.xml
[AUDIT ] CWWKG0093A: Processing configuration drop-ins resource: /home/user/git/guide-maven-multimodules/finish/ear/target/liberty/wlp/usr/servers/defaultServer/configDropins/overrides/liberty-plugin-variable-config.xml
[AUDIT ] CWWKZ0058I: Monitoring dropins for applications.
[ERROR ] CWWKZ0013E: It is not possible to start two applications called guide-maven-multimodules-ear.
[AUDIT ] CWWKT0016I: Web application available (default_host): http://192.168.1.33:9080/guide-maven-multimodules-ear/
[AUDIT ] CWWKZ0001I: Application guide-maven-multimodules-ear started in 0.299 seconds.
[AUDIT ] CWWKF0012I: The server installed the following features: [el-3.0, jsp-2.3, localConnector-1.0, servlet-3.1].
[AUDIT ] CWWKF0011I: The defaultServer server is ready to run a smarter planet. The defaultServer server started in 1.500 seconds.
mvn liberty:dev -f finish/ear/pom.xml
似乎无法将“looseApplication”设置为“false”
[WARNING] Overriding liberty plugin pararmeter, "looseApplication" to "true" and deploying application in looseApplication format
.
.
[ERROR] Failed to execute goal io.openliberty.tools:liberty-maven-plugin:3.2:dev (default-cli) on project guide-maven-multimodules-ear: Unable to create loose configuration for the EAR application with skinnyWars package from io.openliberty.guides:guide-maven-multimodules-war:1.0-SNAPSHOT. Please set the looseApplication configuration parameter to false and try again. -> [Help 1]
遇到这些情况我该怎么办?我希望你的帮助。
谢谢,
此致,
对于 liberty:run,已在此处打开一个问题:https://github.com/OpenLiberty/ci.maven/issues/1054
liberty:dev 目前不支持多模块项目。 https://github.com/OpenLiberty/ci.maven/issues/697
将解决这个问题
我正在按照该指南 (URL) 练习 openliberty.io 多模块。默认情况下工作正常。
但我想使用 skinnyWars 结构,当我 运行 liberty:运行 时出现错误或 liberty:dev 目标,无法解决。
处理步骤;
我将 skinnyWars 参数设置为 true;
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-ear-plugin</artifactId>
<version>3.0.2</version>
<configuration>
<modules>
<!-- tag::jarModule[] -->
<jarModule>
<groupId>io.openliberty.guides</groupId>
<artifactId>guide-maven-multimodules-jar</artifactId>
<uri>/guide-maven-multimodules-jar-1.0-SNAPSHOT.jar</uri>
</jarModule>
<!-- end::jarModule[] -->
<!-- tag::webModule[] -->
<webModule>
<groupId>io.openliberty.guides</groupId>
<artifactId>guide-maven-multimodules-war</artifactId>
<uri>/guide-maven-multimodules-war-1.0-SNAPSHOT.war</uri>
<!-- Set custom context root -->
<!-- tag::contextRoot[] -->
<contextRoot>/converter</contextRoot>
<!-- end::contextRoot[] -->
</webModule>
<!-- end::webModule[] -->
</modules>
<skinnyWars>true</skinnyWars>
</configuration>
我收到那个错误
[ERROR] Failed to execute goal io.openliberty.tools:liberty-maven-plugin:3.2:dev (default-cli) on project guide-maven-multimodules-ear: Unable to create loose configuration for the EAR application with skinnyWars package from io.openliberty.guides:guide-maven-multimodules-war:1.0-SNAPSHOT. Please set the looseApplication configuration parameter to false and try again. -> [Help 1]
然后正如它告诉我的那样,我将 looseApplication 参数设置为 false;
<plugin>
<groupId>io.openliberty.tools</groupId>
<artifactId>liberty-maven-plugin</artifactId>
<version>3.2</version>
<configuration>
<looseApplication>false</looseApplication>
</configuration>
</plugin>
mvn 自由:运行 -f finish/ear/pom.xml
我得到了无法启动两个名为 guide-maven-multimodules-ear. 的应用程序的错误。应用程序在不同的 contextRoot 启动。
[AUDIT ] CWWKE0001I: The server defaultServer has been launched.
[AUDIT ] CWWKG0093A: Processing configuration drop-ins resource: /home/user/git/guide-maven-multimodules/finish/ear/target/liberty/wlp/usr/servers/defaultServer/configDropins/defaults/install_apps_configuration_1491924271.xml
[AUDIT ] CWWKG0093A: Processing configuration drop-ins resource: /home/user/git/guide-maven-multimodules/finish/ear/target/liberty/wlp/usr/servers/defaultServer/configDropins/overrides/liberty-plugin-variable-config.xml
[AUDIT ] CWWKZ0058I: Monitoring dropins for applications.
[ERROR ] CWWKZ0013E: It is not possible to start two applications called guide-maven-multimodules-ear.
[AUDIT ] CWWKT0016I: Web application available (default_host): http://192.168.1.33:9080/guide-maven-multimodules-ear/
[AUDIT ] CWWKZ0001I: Application guide-maven-multimodules-ear started in 0.299 seconds.
[AUDIT ] CWWKF0012I: The server installed the following features: [el-3.0, jsp-2.3, localConnector-1.0, servlet-3.1].
[AUDIT ] CWWKF0011I: The defaultServer server is ready to run a smarter planet. The defaultServer server started in 1.500 seconds.
mvn liberty:dev -f finish/ear/pom.xml
似乎无法将“looseApplication”设置为“false”
[WARNING] Overriding liberty plugin pararmeter, "looseApplication" to "true" and deploying application in looseApplication format
.
.
[ERROR] Failed to execute goal io.openliberty.tools:liberty-maven-plugin:3.2:dev (default-cli) on project guide-maven-multimodules-ear: Unable to create loose configuration for the EAR application with skinnyWars package from io.openliberty.guides:guide-maven-multimodules-war:1.0-SNAPSHOT. Please set the looseApplication configuration parameter to false and try again. -> [Help 1]
遇到这些情况我该怎么办?我希望你的帮助。
谢谢,
此致,
对于 liberty:run,已在此处打开一个问题:https://github.com/OpenLiberty/ci.maven/issues/1054
liberty:dev 目前不支持多模块项目。 https://github.com/OpenLiberty/ci.maven/issues/697
将解决这个问题