Migrating Standard Projects into Development
Components
With this procedure you migrate your standard development projects to a development component (DC), which you can add to SAP NetWeaver Development Infrastructure (NWDI) control. The procedure is applicable for the following type of local projects:
● Enterprise Application Project 5.
● EJB Project 3.0.
● Java Project.
● Dynamic Web Project 2.5.
● Web Dynpro Project.
...
1. Open the Project Explorer view of the SAP NetWeaver Developer Studio.
2. Select the project you want to migrate. In the context menu, choose Development Component → Convert Project to Development Component…
3. In the dialog that appears, select a development configuration and navigate to the software component (SC) in which the converted project should be put as DC. Choose Next.
4. Select the project that you want to convert to development component. Choose Finish.
The new DC project is created in the selected SC.

Public parts are not generated automatically.
Since it is not possible to migrate an EAR project, you have to create it from scratch.
...
1. From the Development Infrastructure perspective, select the SC to which you want to add the DC. Open the context menu and choose New → Development Component.
2. In the dialog that appears, select J2EE → Enterprise Application. Choose Next.
3. Specify preferences for the new DC. Choose Finish.
4. Select the DC and open the Public Parts tab. Create a new public part for the migrated Web project.

When creating a DC Web Module project from scratch, the public parts are generated automatically.
5. Choose Dependencies tab. Add the dependency to the engine.jee5.facade public part (for servlet.jar).
6. Add the dependency from the EAR project to the migrated web project. Open the Component Properties view of the EAR DC.
a. Select the tab Dependencies and choose Add...
b. In the dialog that appears, choose the DC that should be referenced from the list. Choose Next.
c. Select the public part of type assembly and choose Finish.
7. Build the DC with the newly created public part.
From the DC context menu choose Build.
8. Build the EAR project and deploy it locally to test it.
Your project is now available as a DC.
More information: