Before you build your application in Eclipse, you must consider if your application has subprojects. Think of all the subprojects in Eclipse as separate projects that have dependencies. You need to build all the subprojects as Eclipse projects.
When the projects are built successfully, create .JAR files or any other files, you want. Add any other external project files that you need. Your project is now ready for migration.