Skip to content
Snippets Groups Projects
Commit 72dec304 authored by Goik Martin's avatar Goik Martin
Browse files

Correcting 'clean' target

parent dd25fe2a
No related branches found
No related tags found
No related merge requests found
......@@ -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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment