Skip to content

drewctaylor/maven

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Workflow Maven Deploy Code Coverage

Maven

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

To use maven:

  1. 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>
  2. 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>

About

A parent pom.

Resources

Stars

Watchers

Forks

Packages

No packages published