From 66bd8518cddd262b3f43f054a46ece9d099e870c Mon Sep 17 00:00:00 2001 From: Martin Goik <goik@hdm-stuttgart.de> Date: Sun, 19 Jun 2016 13:11:43 +0200 Subject: [PATCH] Adding deploy target for simpler publishing to maven.mi.hdm-stuttgart.de. --- ...ings.xml.template => settings.xml.template | 0 .../mi-maven-archetype-javafxml/pom.xml | 31 +++++++++++ .../mi-maven-archetype-jpa-hibernate/pom.xml | 55 ++++++++++++------- .../mi-maven-archetype-quickstart/pom.xml | 44 +++++++++++++-- 4 files changed, 104 insertions(+), 26 deletions(-) rename ws/Unitmarking/settings.xml.template => settings.xml.template (100%) diff --git a/ws/Unitmarking/settings.xml.template b/settings.xml.template similarity index 100% rename from ws/Unitmarking/settings.xml.template rename to settings.xml.template diff --git a/ws/Archetypes/mi-maven-archetype-javafxml/pom.xml b/ws/Archetypes/mi-maven-archetype-javafxml/pom.xml index 61563a5a2..03f991dbc 100644 --- a/ws/Archetypes/mi-maven-archetype-javafxml/pom.xml +++ b/ws/Archetypes/mi-maven-archetype-javafxml/pom.xml @@ -14,5 +14,36 @@ This archetype is derived from https://github.com/zonski/javafx-basic-archetype </description> + <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> diff --git a/ws/Archetypes/mi-maven-archetype-jpa-hibernate/pom.xml b/ws/Archetypes/mi-maven-archetype-jpa-hibernate/pom.xml index 77953c637..8fbb55872 100644 --- a/ws/Archetypes/mi-maven-archetype-jpa-hibernate/pom.xml +++ b/ws/Archetypes/mi-maven-archetype-jpa-hibernate/pom.xml @@ -5,28 +5,43 @@ <groupId>de.hdm-stuttgart.mi</groupId> <artifactId>mi-maven-archetype-jpa-hibernate</artifactId> <version>1.1</version> - <packaging>maven-archetype</packaging> + <packaging>jar</packaging> <name>mi-maven-archetype-jpa-hibernate</name> - <build> - <extensions> - <extension> - <groupId>org.apache.maven.archetype</groupId> - <artifactId>archetype-packaging</artifactId> - <version>2.4</version> - </extension> - </extensions> - - <pluginManagement> - <plugins> - <plugin> - <artifactId>maven-archetype-plugin</artifactId> - <version>2.4</version> - </plugin> - </plugins> - </pluginManagement> - </build> - <url>http://www.mi.hdm-stuttgart.de/freedocs/topic/de.hdm_stuttgart.mi.lectures/sd1SectUsingMaven.html</url> + + <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> diff --git a/ws/Archetypes/mi-maven-archetype-quickstart/pom.xml b/ws/Archetypes/mi-maven-archetype-quickstart/pom.xml index e1c17ee07..fbe472ed0 100644 --- a/ws/Archetypes/mi-maven-archetype-quickstart/pom.xml +++ b/ws/Archetypes/mi-maven-archetype-quickstart/pom.xml @@ -1,10 +1,42 @@ <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" - xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> - <modelVersion>4.0.0</modelVersion> + xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> + <modelVersion>4.0.0</modelVersion> - <groupId>de.hdm-stuttgart.mi</groupId> - <artifactId>mi-maven-archetype-quickstart</artifactId> - <version>1.1</version> - <packaging>jar</packaging> + <groupId>de.hdm-stuttgart.mi</groupId> + <artifactId>mi-maven-archetype-quickstart</artifactId> + <version>1.1</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> -- GitLab