HTTPRouter 模組在移植到 Liberty 時不需要指定,因為預設已包含這些模組。 此規則會標示 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>
如需 Web 服務路由器模組的詳細資訊,請參閱 建立 Web 服務路由器模組。