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 866b54a8bf
commit ecd55b8638

66
pom.xml
View File

@@ -5,31 +5,21 @@
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>2.1.2.RELEASE</version>
<relativePath/>
<groupId>de.77zzcx7.financer</groupId>
<artifactId>financer-parent</artifactId>
<version>6-SNAPSHOT</version>
<relativePath>../financer-parent</relativePath>
</parent>
<groupId>de.77zzcx7.financer</groupId>
<artifactId>financer-web-client</artifactId>
<!-- Also increase the parallelDeploymentVersion -->
<version>6-SNAPSHOT</version>
<packaging>${packaging.type}</packaging>
<description>The web client part of the financer application - a simple app to manage your personal finances</description>
<name>financer-web-client</name>
<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>
<activeProfiles>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>
<!-- Property to define the final name of the build artifact.
This used in combination with the build-war profile to change the .war file name
to e.g. financer#00004.war so that the application is accessible via the /financer
@@ -57,7 +47,6 @@
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-collections4</artifactId>
<version>4.3</version>
</dependency>
<!-- Misc dependencies -->
@@ -77,58 +66,11 @@
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.12</version>
<scope>test</scope>
</dependency>
</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>
<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>
<id>build-war</id>
<properties>