It can be done. But the way depends on what you mean with "single project". Do you mean a single deployment artifact containing the relevant bundles and packages of both origin projects? Or are you more interested in way to build both project as part of a simple maven build?
But in the end it's mostly about maven; and only in the details (how much deployment artifacts do you want to have) it's AEM specific.