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

Deploy target will create checksums avoiding warnings.

parent 2ca36cd8
No related branches found
No related tags found
No related merge requests found
......@@ -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:
......
......@@ -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>
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