I have created a maven archetype using create-from-project
. Is there a way to specify a default groupId
?
This archetype is for internal use only, default groupId
would save some keystrokes.
Thanks.
I have created a maven archetype using create-from-project
. Is there a way to specify a default groupId
?
This archetype is for internal use only, default groupId
would save some keystrokes.
Thanks.
If you want to use a "default" groupId because of company conventions, you can define it directly in the pom.xml in the archetype-resources directory (just replace the ${groupId} with your desired value. So it doesn't matter what the user of the archetype specifies.
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):
and to create the archetype
another example here