The parent Maven POM for CodeZoo Maven Projects.
The Apaq arent POM provides default configuration for Maven builds.
- Recommended/Default versions for the most commonly used Maven plugins
- Profiles for generating docker builds, and enforcing a minimum versions of Java and Maven
- Distribution Management and other configuration for deploying to the Apaq Maven repositories
Start out by adding the public repository to settings.xml
<profiles>
<profile>
<id>apaq</id>
<repositories>
<repository>
<id>apaq-public</id>
<name>Apaq public repo</name>
<url>http://apaq-repository-public.s3-website-eu-west-1.amazonaws.com/release</url>
</repository>
</repositories>
</profile>
</profiles>
<activeProfiles>
<activeProfile>codezoo</activeProfile>
</activeProfiles>
The add the parent configuration to your pom.
<parent>
<groupId>dk.apaq</groupId>
<artifactId>parent</artifactId>
<version>1.1.0</version>
</parent>
The pom includes properties which allow various build configuration to be customized. For example, to override the default version of the maven-compiler-plugin, just set a property.
For the full list of properties, refer to the POM itself.