Using RAD 8.0.3, a JAR containing the servlets can be referenced either from the file system or from another POJO java project instead of existing within the same project. In the example below, I have created a separate POJO project called TestWebJar and in my Dynamic Web Module I have added it via the new Deployment Assembly option.
have also included my POJO project in project references and the Java build path (Projects tab).Using this approach you can either keep your Maven build for the JAR containing the servlets out of RAD and just create he Dynamic web module in there suitable for Websphere, or you can import the Maven built JAR into the workspace as a project.
Either way, you can simply add your externally created servlets to the Dynamic web project from within the Deployment Descriptor:
The file system for the exported web module representing the dynamic web application will look like:
In other words a JAR within a JAR has been created from an externally available build.
https://www-304.ibm.com/support/docview.wss?uid=swg21500446 – Maven and M2Eclipse support in Rational Developer v7.x and 8.x
http://www.ibm.com/developerworks/wikis/download/attachments/113607155/RAD_755_MAVEN_0601.pdf?version=1 – Java EE Development using RAD 7.5.5 and Maven