These parts are usually included in my package names.
- Domain name (your or your company / client) back
- the name of the project
- Artifact name (api, client, test, etc.)
- Functionality
Example:
com.mycompany.myproject.api.services // contains service interfaces for project myproject com.mycompany.myproject.common.util.string // contains string-related utility classes that reside in a library module // that will be used by several other artifacts
One good practice is to have a common root package that is different for a single project (jar, etc.). For example: in jar myproject-api.jar, the root package would be com.mycompany.myproject.api . That way, you always know where to find your classes.
source share