Skip to content

jirutka/maven-support

Repository files navigation

Maven Parents

root-parent

Maven Central Dependency Status

This is the root parent with basic plugins and profiles. It automatically checks classpath for duplicate classes with duplicate-finder, checks Java code with checkstyle (rules are defined in checkstyle.xml), runs integration tests, collects metrics for code coverage analysis (when ci profile enabled), deploys sources and JavaDocs in deploy phase etc.

It’s preconfigured to deploy released artifacts to Bintray / jCenter (a pain-free gateway to Maven Central) and snapshots to oss.jfrog.org.

Properties

java.version

Version of JDK to compile sources for (default is 1.7).

slf4j.version

Version of slf4j-api to use.

bintray.repo

A target repository in Bintray for releases, in the format of {username}/{repository} (default is jirutka/maven).

bintray.package

A target package name under the Bintray repository (default is ${project.artifactId}).

Profiles

ci

General profile for CI to analyze code coverage (uses JaCoCo). It is automatically on CI environments (incl. Travis).

travis-ci

Profile for Travis CI to submit code coverage to Coveralls. It’s activated automatically on Travis.

Usage

Add this to the top of your POM:

<parent>
    <groupId>cz.jirutka.maven</groupId>
    <artifactId>root-parent</artifactId>
    <version>1.3.2</version>
</parent>

If you want to use Travis with Coveralls, put .travis.yml to the root of your repository:

language: java
sudo: false
jdk:
  - openjdk7
  - oraclejdk8
script:
  - 'mvn verify -B'
after_success:
  - 'mvn jacoco:report coveralls:jacoco'

groovy-parent

Maven Central Dependency Status

inherits from root-parent

Parent for projects that uses Groovy.

Properties

groovy.version

Version of groovy to use.

groovy-compiler.version

Version of groovy-eclipse-compiler to use.

groovy-batch.version

Version of groovy-eclipse-batch to use.

Usage

Add this to the top of your POM:

<parent>
    <groupId>cz.jirutka.maven</groupId>
    <artifactId>groovy-parent</artifactId>
    <version>1.3.2</version>
</parent>

If you want to use Groovy just in tests, not a production code, then redefine the groovy’s dependency scope:

<dependencies>
    <dependency>
        <groupId>org.codehaus.groovy</groupId>
        <artifactId>groovy</artifactId>
        <scope>test</scope>
    </dependency>
</dependencies>

groovy-lombok-parent

Maven Central Dependency Status

inherits from groovy-parent

Parent for projects that uses Groovy (mainly for tests) and [Lombok] annotation processor.

Properties

lombok.version

Version of lombok to use.

Usage

Add this to the top of your POM:

<parent>
    <groupId>cz.jirutka.maven</groupId>
    <artifactId>groovy-lombok-parent</artifactId>
    <version>1.3.2</version>
</parent>

License

This project is licensed under MIT license.

About

Parent POMs for my OSS projects.

Resources

License

Stars

Watchers

Forks

Sponsor this project

 

Packages

No packages published