Batch mode
The archetype
plugin can operate in the batch mode either by setting the interactiveMode
argument to false
or passing -B
as an argument. When operating in the batch mode, you need to clearly specify which archetype you are going to use with the arguments archetypeGroupId
, archetypeArtifactId
, and archetypeVersion
. You also need to clearly identify the resultant artifact with the groupId
, artifactId
, version
, and package
arguments, shown as follows:
$ mvn archetype:generate -B -DarchetypeGroupId=org.apache.maven.archetypes -DarchetypeArtifactId=maven-archetype-quickstart -DarchetypeVersion=1.0 -DgroupId=com.packt.samples -DartifactId=com.packt.samples.archetype -Dversion=1.0.0 -Dpackage=1.5
Any inquisitive mind should be ...
Get Maven Essentials now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.