This is a parent POM. It ensures that child projects have a consistent configuration, including:
- Consistent Java release and source format (imports, spacing).
- Consistent Maven version and POM format (element ordering).
- Consistent Maven plugin and dependency version reporting.
- Consistent JaCoCo reporting.
- Consistent README.md location and variable filtering.
To use maven:
-
Update the
pom.xml
to include a reference to the sonatype staging and snapshot repositories.For example:
<repositories> <repository> <releases> <enabled>true</enabled> </releases> <snapshots> <enabled>false</enabled> </snapshots> <id>ossrh</id> <url>https://oss.sonatype.org/service/local/staging/deploy/maven2</url> </repository> <repository> <releases> <enabled>false</enabled> </releases> <snapshots> <enabled>true</enabled> </snapshots> <id>ossrh-snapshot</id> <url>https://oss.sonatype.org/content/repositories/snapshots</url> </repository> </repositories>
-
Update the
pom.xml
to include a reference to this parent POM.For example:
<parent> <groupId>io.github.drewctaylor</groupId> <artifactId>maven</artifactId> <version>0.0.2</version> </parent>