Skip to content

Instantly share code, notes, and snippets.

View vdupain's full-sized avatar

ⓥⓘⓝⓒⓔ⑨ⓟⓐⓡⓐ vdupain

View GitHub Profile
@legege
legege / cleanrepo.sh
Last active December 8, 2022 10:13
Intelligently clean a Sonatype Nexus repository... keep the last 2 released versions of each "major.minor" artifact
#!/bin/bash
DRY_RUN=1
if [ "$1" != "" ]; then
DRY_RUN="$1"
fi
MAX_VERSION=2
if [ "$2" != "" ]; then
MAX_VERSION="$2"
fi
@timander
timander / pom.xml
Last active August 28, 2021 23:15
Maven JaCoCo Coverage Profile
<profiles>
<profile>
<id>normal</id>
<activation>
<activeByDefault>true</activeByDefault>
</activation>
<properties>
<surefireArgLine></surefireArgLine> <!--create blank property for surefire when not running under coverage profile-->
<failsafeArgLine></failsafeArgLine> <!--create blank property for failsafe when not running under coverage profile-->
</properties>