I am trying to capture my project and create an Archetype from it through:
archetype:create-from-project
The fact is that in my project there is a package structure src / main / java com.sample.app, but the archetype should have it as the user wants it when it generates the project from the archetype, but this is impossible, I suppose. It does not seem to capture groupId and artifactId and generates archetype-resources/src/main/javabased on this input.
Anyway, why is there this argument, I suppose: packageName
mvn archetype:create-from-project -DpackageName=com.sample.app
But it does not work, and there is still archetype-resources/src/main/java/org/sample/app..
source
share