From 72dec304dba2d6b56370a10a787d379d32d68309 Mon Sep 17 00:00:00 2001
From: Martin Goik <goik@hdm-stuttgart.de>
Date: Sun, 19 Jun 2016 19:05:39 +0200
Subject: [PATCH] Correcting 'clean' target

---
 ws/Archetypes/Makefile | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/ws/Archetypes/Makefile b/ws/Archetypes/Makefile
index f67d3d2bb..ec8c2c520 100644
--- a/ws/Archetypes/Makefile
+++ b/ws/Archetypes/Makefile
@@ -6,18 +6,18 @@ $(M2DIR)/%/maven-metadata-local.xml:%/pom.xml
 	cd $*;mvn install
 
 install: $(foreach aType, $(ARCHETYPES), $(M2DIR)/$(aType)/maven-metadata-local.xml) archetype-catalog.xml
-	ssh  root@maven.mi.hdm-stuttgart.de mkdir -p /var/www/html/maven/Archetypes/de/hdm-stuttgart/mi
-	$(foreach aType, $(ARCHETYPES),  rsync -av --delete -e ssh $(M2DIR)/$(aType) root@maven.mi.hdm-stuttgart.de:/var/www/html/maven/Archetypes/de/hdm-stuttgart/mi;)
-	rsync -av --delete -e ssh index.html archetype-catalog.xml root@maven.mi.hdm-stuttgart.de:/var/www/html/maven
+	ssh  mvndeploy@maven.mi.hdm-stuttgart.de mkdir -p /var/www/html/maven/Archetypes/de/hdm-stuttgart/mi
+	$(foreach aType, $(ARCHETYPES),  rsync -av --delete -e ssh $(M2DIR)/$(aType) mvndeploy@maven.mi.hdm-stuttgart.de:/var/www/html/maven/Archetypes/de/hdm-stuttgart/mi;)
+	rsync -av --delete -e ssh index.html archetype-catalog.xml mvndeploy@maven.mi.hdm-stuttgart.de:/var/www/html/maven
 
 clean:
 	rm -rf $(foreach aType, $(ARCHETYPES), $(M2DIR)/$(aType))
 	for aType in $(ARCHETYPES); do \
-           cd $(aType);mvn clean;cd ..; \
+           cd $$aType;mvn clean;cd ..; \
         done
 
 remoteclean:
-	ssh  root@maven.mi.hdm-stuttgart.de rm -rf /var/www/html/maven/Archetypes/de /var/www/html/maven/index.html /var/www/html/maven/archetype-catalog.xml
+	ssh  mvndeploy@maven.mi.hdm-stuttgart.de rm -rf /var/www/html/maven/Archetypes/de /var/www/html/maven/index.html /var/www/html/maven/archetype-catalog.xml
 
 #end
 
-- 
GitLab