When you create the archetype of your project as follows: mvn archetype:create-from-project -Dinteractive Install the package - explicitly at the root of the project.
Then you create a project of this archetype, enter your root package $ {groupId}. $ {artifactId} explicitly. example: mvn archetype: generate -DarchetypeGroupId = com.test -DarchetypeArtifactId = my_archetype -DgroupId = com.test -DartifactId = app -Dpackage = com.test.app -Dversion = 1.0-SNAPHOT
In this case, $ {groupId} = com.test, $ {artifactId} = application and target package = com.test.app
source share