Standardized set of build tool configurations for Groupon API projects.
As the number of Groupon API projects has grown and our code/build standards have matured. We required a better way to share configuration across projects rather than replicate the same configuration (e.g. compiler, checkstyle, findbugs, etc.) across all of our projects. The parent pom is intended to only provide the base configuration for plugins that we expect to be consistent throughout projects. Project specific configuration and plugins should not be included in the parent pom.
Determine the latest version of the api parent pom in Maven Central.
Set the parent block in your pom:
<parent>
<groupId>com.groupon.api</groupId>
<artifactId>api-parent-pom</artifactId>
<version>VERSION</version>
<relativePath />
</parent>
Next, enable the desired plugins from the parent pom's pluginManagement block in the plugins block; for example to use the javadoc plugin specified in the parent include the following:
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
</plugin>
</plugins>
</build>
Prerequisites:
Building:
api-parent-pom> mvn verify
To use the local version you must first install it locally:
api-parent-pom> mvn install
You can determine the version of the local build from the pom file. Using the local version is intended only for testing or development.
Published under Apache Software License 2.0, see LICENSE
© Groupon Inc., 2015