Skip to content

Instantly share code, notes, and snippets.

View michaelajr's full-sized avatar

Michael Andrews michaelajr

View GitHub Profile
@michaelajr
michaelajr / pom.xml
Last active July 27, 2023 17:06
Setup for the maven-gpg-plugin. Fix for "signing failed: Inappropriate ioctl for device".
<?xml version="1.0" encoding="UTF-8"?>
<!--
*
* pom.xml fragment for setting up GPG signing.
*
-->
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/xsd/maven-4.0.0.xsd">
@michaelajr
michaelajr / jmx.yaml
Last active October 17, 2017 13:51
Datadog JVM Memory Metrics.
init_config:
instances:
- host: localhost
port: JMX_PORT
user: JMX_USER
password: JMX_PASSWORD
conf:
- include:
@michaelajr
michaelajr / tomcat.yaml
Created October 17, 2017 13:50
Datadog Tomcat Metrics
instances:
- host: localhost
port: JMX_PORT
user: JMX_USER
password: JMX_PASSWORD
init_config:
conf:
- include:
type: ThreadPool
@michaelajr
michaelajr / dependencyManagement.xml
Last active May 25, 2018 19:56
Maven For Pipelining, Part 1
<dependencyManagement>
<dependencies>
<!-- Logging -->
<dependency>
<groupId>com.eoniantech.build</groupId>
<artifactId>slf4j-bom</artifactId>
<version>1.8.0-beta2</version>
<type>pom</type>
<scope>import</scope>
</dependency>
@michaelajr
michaelajr / pluginManagement.xml
Last active May 25, 2018 19:59
Maven For Pipelining, Part 1
<pluginManagement>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.7.0</version>
<configuration>
<compilerArguments>
<Xlint:all/>
</compilerArguments>
@michaelajr
michaelajr / profiles.xml
Created May 25, 2018 20:03
Maven For Pipelining, Part 1
<profiles>
<profile>
<id>compile-with-debug</id>
...
<profile>
<id>enforce-dependency-blacklist</id>
<activation>
<file>
<exists>${basedir}/src</exists>
@michaelajr
michaelajr / unitTestProfile.xml
Last active May 26, 2018 15:37
Maven For Pipelining, Part 1
<!-- Run unit tests with code coverage -->
<profile>
<id>unit-test</id>
<activation>
<file>
<exists>${basedir}/src/test</exists>
</file>
</activation>
<properties>
<testAgent></testAgent>
@michaelajr
michaelajr / integrationTestProfile.xml
Created May 26, 2018 15:37
Maven For Pipelining, Part 1
<!-- Run IT test with code coverage -->
<profile>
<id>integration-test</id>
<activation>
<file>
<exists>${basedir}/src/test</exists>
</file>
</activation>
<properties>
<itAgent></itAgent>
@michaelajr
michaelajr / warIntegrationTestProfile.xml
Created May 26, 2018 15:57
Maven For Pipelining, Part 1
<!-- Run integration tests against Tomcat with code coverage -->
<profile>
<id>integration-test</id>
<activation>
<file>
<exists>${basedir}/src/test</exists>
</file>
</activation>
<properties>
<itServerHome>${project.build.directory}/${itServerId}</itServerHome>
@michaelajr
michaelajr / MassageTest.java
Created May 26, 2018 17:11
Maven For Pipelining, Part 3
package com.eoniantech.echoapi.domain.model;
import com.googlecode.junittoolbox.SuiteClasses;
import com.googlecode.junittoolbox.WildcardPatternSuite;
import org.junit.runner.RunWith;
/**
* Unit Test suite for the {@link Message} model.
*
* @author Michael Andrews <Michael.Andrews@eoniantech.com>