I have a maven java project ABC which has main and test folders. The test folder has lot of API utility classes to make some API calls. These classes use some classes in the main folder.
I have another maven java project XYZ which needs to use the API utility classes in test folder of ABC. I am not sure how to use ABC code in XYZ.
I could copy-paste only the relevant code from ABC to XYZ, modifying the directory names, packages etc as needed. Or I could package ABC as Jar and import it into XYZ.
Any suggestions on how to do this ?