Last active
July 5, 2018 15:28
-
-
Save jtviegas/9ad76f2be934aa8af4d2f340566c5493 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
SETLOCAL ENABLEDELAYEDEXPANSION | |
set this_script=%~f0 | |
for %%F in ("%this_script%") do set script_folder=%%~dpF | |
set pwd=%cd% | |
if [%1]==[] goto usage | |
if [%2]==[] goto usage | |
call mvn archetype:generate -B -DarchetypeGroupId=pl.org.miki -DarchetypeArtifactId=java8-quickstart-archetype -DarchetypeVersion=1.0.0 -DgroupId=%1 -DartifactId=%2 -Dversion=0.1 -Dpackage=%1.%2 | |
goto :eof | |
:usage | |
echo "Usage: %0 <groupId> <artifactId>" | |
exit /B 1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment