I'm trying to grab my project and generate an Archetype from it via :
archetype:create-from-project
The thing is, that my project has src/main/java package structure com.sample.app, but the archetype must have it as user wants when generating the project from archetype, but that is impossible I suppose. It doesn't seem to grab groupId and artifactId and generate archetype-resources/src/main/java based on this input.
Anyway, that's why there is this argument I suppose : packageName
mvn archetype:create-from-project -DpackageName=com.sample.app
But it doesn't work and there is still archetype-resources/src/main/java/org/sample/app ..