Skip to content

Instantly share code, notes, and snippets.

@sachsgit
Created November 9, 2021 20:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sachsgit/6a3c13e89696d81fc2412518bf151be6 to your computer and use it in GitHub Desktop.
Save sachsgit/6a3c13e89696d81fc2412518bf151be6 to your computer and use it in GitHub Desktop.
Batch File to Create a Maven Project Param1 is Group Id and Param2 is Artifact ID
@ECHO OFF
SET GROUPID=%1
SET ARTIFACTID=%2
mvn archetype:generate^
-DinteractiveMode=false^
-DarchetypeArtifactId=maven-archetype-quickstart^
-DgroupId=%GROUPID%^
-DartifactId=%ARTIFACTID%
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment