Skip to content

dangernoodle-io/dangernoodle-io-build-pom

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

78 Commits
 
 
 
 
 
 
 
 

Repository files navigation

dangernoodle-io-build-pom

maven-central maven-build maven-release

dangernoodle.io organization build pom

<parent>
  <groupId>io.dangernoodle</groupId>
  <artifactId>dangernoodle-io-build-pom</artifactId>
  <version>X.Y.Z</version>
  <relativePath/>
</parent>

Build Plugins

Add the following to the downstream maven pom.xml. Activation occurs alongside the associated profile.

Source and Javadocs
<build>
  <plugins>
    <plugin>
      <groupId>org.apache.maven.plugins</groupId>
      <artifactId>maven-javadoc-plugin</artifactId>
    </plugin>
    <plugin>
      <groupId>org.apache.maven.plugins</groupId>
      <artifactId>maven-source-plugin</artifactId>
    </plugin>
  </plugins>
</build>

Surefire Tests

Mockito, Byte Buddy and others need to be explicitly added as a java agent for instrumentation. Use the maven-dependency-plugin to grab it's jar location and configure the argLine property.

<properties>
  <argLine>-javaagent:${org.mockito:mockito-core:jar} -javaagent:${net.bytebuddy:byte-buddy-agent:jar}</argLine>
</properties>

<build>
<plugins>
  <plugin>
    <groupId>org.apache.maven.plugins</groupId>
    <artifactId>maven-dependency-plugin</artifactId>
  </plugin>
</plugins>
</build>

Code Coverage

<build>
  <plugins>
    <plugin>
      <groupId>org.jacoco</groupId>
      <artifactId>jacoco-maven-plugin</artifactId>
    </plugin>
    <plugin>
      <groupId>com.github.hazendaz.maven</groupId>
      <artifactId>coveralls-maven-plugin</artifactId>
    </plugin>
  </plugins>
</build>

Integration Tests

<build>
  <plugins>
    <plugin>
      <groupId>org.codehaus.mojo</groupId>
      <artifactId>build-helper-maven-plugin</artifactId>
    </plugin>
    <plugin>
      <groupId>org.apache.maven.plugins</groupId>
      <artifactId>maven-failsafe-plugin</artifactId>
    </plugin>
  </plugins>
</build>

About

dangernoodle.io build parent pom

Resources

Stars

Watchers

Forks

Packages

No packages published