There is a maven project(jar), but now it needs to be spilt into two artifacts
I want to have two maven artifact like following
xxx>
If I understood the question correct, you need to have a super pom (xxx/pom.xml) and two different poms for both of your projects (xxx-client and xxx-impl). The structure of your super pom will be like this:
4.0.0
xxx
xxx
pom
xxx-client
xxx-impl
Then when you deploy your main pom, it will deploy it's modules as well.
Here are references if you want to read more about super pom and modules.