Add parent module financer-parent

Rework POM structure:
- Move general profiles to new parent
- Add dependency management for project dependencies
- Move general properties to new parent
- Alo remove version numbers from child modules, so versioning is now done via parent
This commit is contained in:
2019-06-10 12:40:49 +02:00
parent 52525ff0d1
commit adf6573429

66
pom.xml
View File

@@ -5,31 +5,21 @@
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>
<parent> <parent>
<groupId>org.springframework.boot</groupId> <groupId>de.77zzcx7.financer</groupId>
<artifactId>spring-boot-starter-parent</artifactId> <artifactId>financer-parent</artifactId>
<version>2.1.2.RELEASE</version> <version>6-SNAPSHOT</version>
<relativePath/> <relativePath>../financer-parent</relativePath>
</parent> </parent>
<groupId>de.77zzcx7.financer</groupId> <groupId>de.77zzcx7.financer</groupId>
<artifactId>financer-server</artifactId> <artifactId>financer-server</artifactId>
<!-- Also increase the parallelDeploymentVersion -->
<version>6-SNAPSHOT</version>
<packaging>${packaging.type}</packaging> <packaging>${packaging.type}</packaging>
<description>The server part of the financer application - a simple app to manage your personal finances</description> <description>The server part of the financer application - a simple app to manage your personal finances</description>
<name>financer-server</name> <name>financer-server</name>
<properties> <properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<maven.compiler.source>1.9</maven.compiler.source>
<maven.compiler.target>1.9</maven.compiler.target>
<java.version>1.9</java.version>
<packaging.type>jar</packaging.type> <packaging.type>jar</packaging.type>
<activeProfiles>hsqldb,dev</activeProfiles> <activeProfiles>hsqldb,dev</activeProfiles>
<!-- Property to define the parallel deployment version.
See e.g. https://tomcat.apache.org/tomcat-8.5-doc/config/context.html
Should be the same as the project.version but padded with zeros to six digits. -->
<parallelDeploymentVersion>000006</parallelDeploymentVersion>
</properties> </properties>
<dependencies> <dependencies>
@@ -57,7 +47,6 @@
<dependency> <dependency>
<groupId>org.apache.commons</groupId> <groupId>org.apache.commons</groupId>
<artifactId>commons-collections4</artifactId> <artifactId>commons-collections4</artifactId>
<version>4.3</version>
</dependency> </dependency>
<!-- Misc dependencies --> <!-- Misc dependencies -->
<dependency> <dependency>
@@ -96,30 +85,10 @@
<dependency> <dependency>
<groupId>junit</groupId> <groupId>junit</groupId>
<artifactId>junit</artifactId> <artifactId>junit</artifactId>
<version>4.12</version>
<scope>test</scope> <scope>test</scope>
</dependency> </dependency>
</dependencies> </dependencies>
<build>
<finalName>${project.artifactId}</finalName>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<excludes>
<exclude>**/*IntegrationTest</exclude>
</excludes>
</configuration>
</plugin>
</plugins>
</build>
<reporting> <reporting>
<plugins> <plugins>
<plugin> <plugin>
@@ -134,33 +103,6 @@
</reporting> </reporting>
<profiles> <profiles>
<profile>
<id>integration-tests</id>
<build>
<plugins>
<plugin>
<artifactId>maven-surefire-plugin</artifactId>
<executions>
<execution>
<phase>integration-test</phase>
<goals>
<goal>test</goal>
</goals>
<configuration>
<excludes>
<exclude>none</exclude>
</excludes>
<includes>
<include>**/*IntegrationTest</include>
</includes>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
<profile> <profile>
<id>build-war</id> <id>build-war</id>
<properties> <properties>