diff --git a/ws/Archetypes/Makefile b/ws/Archetypes/Makefile index ec8c2c520058d965b6b6d8e3cb23b0ba47d5dcfd..3e9967b4da17536728fe73e91297b008c04e22bd 100644 --- a/ws/Archetypes/Makefile +++ b/ws/Archetypes/Makefile @@ -3,11 +3,9 @@ ARCHETYPES=mi-maven-archetype-javafxml mi-maven-archetype-quickstart mi-maven-ar M2DIR=~/.m2/repository/de/hdm-stuttgart/mi $(M2DIR)/%/maven-metadata-local.xml:%/pom.xml - cd $*;mvn install + cd $*;mvn deploy -install: $(foreach aType, $(ARCHETYPES), $(M2DIR)/$(aType)/maven-metadata-local.xml) archetype-catalog.xml - 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;) +deploy: $(foreach aType, $(ARCHETYPES), $(M2DIR)/$(aType)/maven-metadata-local.xml) archetype-catalog.xml rsync -av --delete -e ssh index.html archetype-catalog.xml mvndeploy@maven.mi.hdm-stuttgart.de:/var/www/html/maven clean: diff --git a/ws/Archetypes/mi-maven-archetype-sax/pom.xml b/ws/Archetypes/mi-maven-archetype-sax/pom.xml index 952fed2009f22a36fc94eb159d1dd9af97bafc97..de6eacba79e86a7353ef22c6773ea0558056f2c1 100644 --- a/ws/Archetypes/mi-maven-archetype-sax/pom.xml +++ b/ws/Archetypes/mi-maven-archetype-sax/pom.xml @@ -7,4 +7,35 @@ <version>1.0</version> <packaging>jar</packaging> + <distributionManagement> + <!-- This requires configurations in ~/.m2/settings.xml, see local settings.xml.template + example file in overall git project root. --> + <repository> + <id>mi-maven-repository</id> + <url>scpexe://maven.mi.hdm-stuttgart.de/var/www/html/maven/Archetypes</url> + </repository> + </distributionManagement> + + <build> + <extensions> + <extension> + <groupId>org.apache.maven.wagon</groupId> + <artifactId>wagon-ssh-external</artifactId> + <version>2.10</version> + </extension> + </extensions> + + <plugins> + <!-- Get rid of build path warnings though this is not a Java project. --> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-compiler-plugin</artifactId> + <version>3.5.1</version> + <configuration> + <source>1.8</source> + <target>1.8</target> + </configuration> + </plugin> + </plugins> + </build> </project>