You can do this by specifying a propertyFile
This property file may contains few properties including default groupId. So something like this (in a file named something.properties):
groupId=com.company
and to create the archetype
mvn archetype:create-from-project -Darchetype.properties=../something.properties
another example here