Skip to content

Instantly share code, notes, and snippets.

@dpalomar
Last active September 15, 2015 12:12
Show Gist options
  • Save dpalomar/12c00dc627329fc5c883 to your computer and use it in GitHub Desktop.
Save dpalomar/12c00dc627329fc5c883 to your computer and use it in GitHub Desktop.
TIW maven archetype automatically install on linux
#!/bin/sh
# This script allows to install the maven archetype for TIW subject.
# Use: wget -qO- https://goo.gl/NEIuFi | sh
# or curl -sSL https://goo.gl/NEIuFi | sh
echo "**** THIS WILL INSTALL THE ARCHETYPE, PLEASE BE PATIENT ****"
echo "**** You need git and maven instaled and a live connection ****"
echo "**Removing last version**"
rm -rf ~/.m2/repository/es/
echo "1- Download from git"
echo "2- installing with maven "
echo "3- restoring the system and finish"
echo " "
echo " "
echo "***Downloading from git"
git clone https://github.com/dpalomar/TIW-Archetype.git
cd ./TIW-Archetype/target/generated-sources/archetype
echo "***Installing the archetype***"
mvn clean install
cd ../../../../
rm -rf TIW-Archetype
echo "****************"
echo "*** DONE!!! ***"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment