Project name different from published artifact group:NAME:version?

Do you really need the project name to be “bar”, or just the directory name?