diff --git a/ws/Archetypes/mi-maven-archetype-javafxml/pom.xml b/ws/Archetypes/mi-maven-archetype-javafxml/pom.xml index 300b429446c430b5233683fb40ba77493f5a3386..3db0cb36b1e4d4cd45a39c5c46a0ef891b362f51 100644 --- a/ws/Archetypes/mi-maven-archetype-javafxml/pom.xml +++ b/ws/Archetypes/mi-maven-archetype-javafxml/pom.xml @@ -1,12 +1,5 @@ <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"> - <parent> - <groupId>de.hdm_stuttgart.mi</groupId> - <artifactId>mi-maven-archetypes</artifactId> - <version>1.2</version> - <relativePath>../pom.xml</relativePath> - </parent> - <modelVersion>4.0.0</modelVersion> <groupId>de.hdm_stuttgart.mi</groupId> @@ -22,4 +15,46 @@ demonstrating core functionality for assembling JavaFX applications. </description> + <properties> + <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> + </properties> + + <distributionManagement> + <repository> + <id>mi-nexus</id> + <url>https://maven.mi.hdm-stuttgart.de/nexus/repository/mi-maven</url> + </repository> + </distributionManagement> + + <build> + <extensions> + <extension> + <groupId>org.apache.maven.archetype</groupId> + <artifactId>archetype-packaging</artifactId> + <version>3.0.1</version> + </extension> + </extensions> + + <pluginManagement> + <plugins> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-archetype-plugin</artifactId> + <version>3.0.1</version> + </plugin> + </plugins> + </pluginManagement> + <plugins> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-compiler-plugin</artifactId> + <version>3.7.0</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 5c720911df5a16241e9c71f183c0a4fbeeb4fa4a..e65859fde29b93545f0ea2f3ddadc65940b5d29a 100644 --- a/ws/Archetypes/mi-maven-archetype-jpa-hibernate/pom.xml +++ b/ws/Archetypes/mi-maven-archetype-jpa-hibernate/pom.xml @@ -1,13 +1,6 @@ <?xml version="1.0" encoding="UTF-8"?> <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"> - <parent> - <groupId>de.hdm_stuttgart.mi</groupId> - <artifactId>mi-maven-archetypes</artifactId> - <version>1.2</version> - <relativePath>../pom.xml</relativePath> - </parent> - <modelVersion>4.0.0</modelVersion> <groupId>de.hdm_stuttgart.mi</groupId> @@ -24,4 +17,45 @@ This archetype demonstrates core JPA project functionality. </description> + <properties> + <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> + </properties> + + <distributionManagement> + <repository> + <id>mi-nexus</id> + <url>https://maven.mi.hdm-stuttgart.de/nexus/repository/mi-maven</url> + </repository> + </distributionManagement> + + <build> + <extensions> + <extension> + <groupId>org.apache.maven.archetype</groupId> + <artifactId>archetype-packaging</artifactId> + <version>3.0.1</version> + </extension> + </extensions> + + <pluginManagement> + <plugins> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-archetype-plugin</artifactId> + <version>3.0.1</version> + </plugin> + </plugins> + </pluginManagement> + <plugins> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-compiler-plugin</artifactId> + <version>3.7.0</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/src/main/resources/archetype-resources/pom.xml b/ws/Archetypes/mi-maven-archetype-jpa-hibernate/src/main/resources/archetype-resources/pom.xml index d9c433d7d27b972e89c56d7c1feaf42844010dd4..16f0730d55665f8be99d2b1536eafff6c527afb2 100644 --- a/ws/Archetypes/mi-maven-archetype-jpa-hibernate/src/main/resources/archetype-resources/pom.xml +++ b/ws/Archetypes/mi-maven-archetype-jpa-hibernate/src/main/resources/archetype-resources/pom.xml @@ -20,7 +20,17 @@ <dependency> <groupId>org.hibernate</groupId> <artifactId>hibernate-core</artifactId> - <version>5.2.12.Final</version> + <version>5.2.16.Final</version> + </dependency> + + <!-- + https://stackoverflow.com/questions/27412287/junit-tests-fail-with-java-error-when-using-intellij-within-maven-module-after-a#answer-34374834 + --> + <dependency> + <groupId>org.hibernate</groupId> + <artifactId>hibernate-jpamodelgen</artifactId> + <version>5.2.16.Final</version> + <scope>provided</scope> </dependency> <dependency> @@ -42,6 +52,20 @@ <version>2.10.0</version> </dependency> + <dependency> + <groupId>javax.xml.bind</groupId> + <artifactId>jaxb-api</artifactId> + <version>2.3.0</version> + </dependency> + + <dependency> + <groupId>javax.annotation</groupId> + <artifactId>javax.annotation-api</artifactId> + <version>1.3.2</version> + </dependency> + + + <!-- Required for executable jar generation to avoid ClassNotFoundException: com.fasterxml.jackson.core.type.TypeReference and similar dependency problems. --> <dependency> @@ -49,15 +73,6 @@ <artifactId>jackson-databind</artifactId> <version>2.9.3</version> </dependency> - <!-- - https://stackoverflow.com/questions/27412287/junit-tests-fail-with-java-error-when-using-intellij-within-maven-module-after-a#answer-34374834 - --> - <dependency> - <groupId>org.hibernate</groupId> - <artifactId>hibernate-jpamodelgen</artifactId> - <version>5.2.12.Final</version> - <scope>provided</scope> - </dependency> </dependencies> @@ -78,7 +93,7 @@ <plugin> <groupId>org.bsc.maven</groupId> <artifactId>maven-processor-plugin</artifactId> - <version>3.2.0</version> + <version>3.3.3</version> <executions> <execution> diff --git a/ws/Archetypes/mi-maven-archetype-jpa-hibernate/src/main/resources/archetype-resources/src/main/resources/META-INF/persistence.xml b/ws/Archetypes/mi-maven-archetype-jpa-hibernate/src/main/resources/archetype-resources/src/main/resources/META-INF/persistence.xml index 750917d5218a8fddfc1e45a984806a071f311b68..8e7c2731136ca14802ad64e300f5674117f5de3c 100644 --- a/ws/Archetypes/mi-maven-archetype-jpa-hibernate/src/main/resources/archetype-resources/src/main/resources/META-INF/persistence.xml +++ b/ws/Archetypes/mi-maven-archetype-jpa-hibernate/src/main/resources/archetype-resources/src/main/resources/META-INF/persistence.xml @@ -37,7 +37,8 @@ JDBC database connection parameter --> <property name = "javax.persistence.jdbc.driver" value="com.mysql.cj.jdbc.Driver"/> - <property name = "javax.persistence.jdbc.url" value="jdbc:mysql://localhost:3306/hdm?useSSL=false"/> + <property name = "javax.persistence.jdbc.url" + value="jdbc:mysql://localhost:3306/hdm?useSSL=false&serverTimezone=UTC"/> <property name = "javax.persistence.jdbc.user" value="hdmuser"/> <property name = "javax.persistence.jdbc.password" value="XYZ"/> @@ -77,7 +78,8 @@ <properties> <property name = "javax.persistence.jdbc.driver" value="com.mysql.cj.jdbc.Driver"/> - <property name = "javax.persistence.jdbc.url" value="jdbc:mysql://localhost:3306/hdm?useSSL=false"/> + <property name = "javax.persistence.jdbc.url" + value="jdbc:mysql://localhost:3306/hdm?useSSL=false&serverTimezone=UTC"/> <property name = "javax.persistence.jdbc.user" value="hdmuser"/> <property name = "javax.persistence.jdbc.password" value="XYZ"/> diff --git a/ws/Archetypes/mi-maven-archetype-quickstart/pom.xml b/ws/Archetypes/mi-maven-archetype-quickstart/pom.xml index 6abe81a4b4e1833eebfc918fd7969e3ffc107339..18abef6af2c8c937e727fff2812d53a902ccfb40 100644 --- a/ws/Archetypes/mi-maven-archetype-quickstart/pom.xml +++ b/ws/Archetypes/mi-maven-archetype-quickstart/pom.xml @@ -1,13 +1,6 @@ <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"> - <parent> - <groupId>de.hdm_stuttgart.mi</groupId> - <artifactId>mi-maven-archetypes</artifactId> - <version>1.2</version> - <relativePath>../pom.xml</relativePath> - </parent> - <modelVersion>4.0.0</modelVersion> <groupId>de.hdm_stuttgart.mi</groupId> @@ -25,4 +18,46 @@ demonstrating core Java project functionality including logging and Junit-5 based testing. </description> + <properties> + <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> + </properties> + + <distributionManagement> + <repository> + <id>mi-nexus</id> + <url>https://maven.mi.hdm-stuttgart.de/nexus/repository/mi-maven</url> + </repository> + </distributionManagement> + + <build> + <extensions> + <extension> + <groupId>org.apache.maven.archetype</groupId> + <artifactId>archetype-packaging</artifactId> + <version>3.0.1</version> + </extension> + </extensions> + + <pluginManagement> + <plugins> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-archetype-plugin</artifactId> + <version>3.0.1</version> + </plugin> + </plugins> + </pluginManagement> + <plugins> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-compiler-plugin</artifactId> + <version>3.7.0</version> + <configuration> + <source>1.8</source> + <target>1.8</target> + </configuration> + </plugin> + </plugins> + </build> + </project> diff --git a/ws/Archetypes/mi-maven-archetype-sax/pom.xml b/ws/Archetypes/mi-maven-archetype-sax/pom.xml index 4a4f9007c35cf912d66f095420f9dca3724423eb..4fba1f7f1a3b01106c75f03bc6be37d832299b72 100644 --- a/ws/Archetypes/mi-maven-archetype-sax/pom.xml +++ b/ws/Archetypes/mi-maven-archetype-sax/pom.xml @@ -24,4 +24,45 @@ This archetype demonstrates core SAX functionality. </description> + <properties> + <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> + </properties> + + <distributionManagement> + <repository> + <id>mi-nexus</id> + <url>https://maven.mi.hdm-stuttgart.de/nexus/repository/mi-maven</url> + </repository> + </distributionManagement> + + <build> + <extensions> + <extension> + <groupId>org.apache.maven.archetype</groupId> + <artifactId>archetype-packaging</artifactId> + <version>3.0.1</version> + </extension> + </extensions> + + <pluginManagement> + <plugins> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-archetype-plugin</artifactId> + <version>3.0.1</version> + </plugin> + </plugins> + </pluginManagement> + <plugins> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-compiler-plugin</artifactId> + <version>3.7.0</version> + <configuration> + <source>1.8</source> + <target>1.8</target> + </configuration> + </plugin> + </plugins> + </build> </project>