在迁移到 Liberty 时无需指定 HTTPRouter 模块,因为默认情况下已包含这些模块。 在 WebSphere 传统应用程序和 JAX-WS 网络服务中,该规则会标记 HTTPRouter 模块的存在。 WebSphere 使用该模块的应用程序应在各自的构建中移除对该模块的依赖。
例如,在 pom.xml snippet provided, the line containing the <module>Test_HTTPRouter</module>
在将此 Maven 应用程序迁移到 Liberty 时,应删除文本。
<project>
<modelVersion>4.0.0</modelVersion>
<groupId>com.mycompany.app</groupId>
<artifactId>my-app</artifactId>
<version>1</version>
<!-- Module dependencies -->
<modules>
<module>TestEJB</module>
<module>Test_HTTPRouter</module>
<module>TestPMIWeb</module>
</modules>
</project>
有关网络服务路由器模块的更多信息,请参阅 创建网络服务路由器模块。