maven-repair

The goal of this projects is is to simplify automatic repair on Maven projects.

Automatic Repair Techniques

Install

Manual install

git clone <https://github.com/Spirals-Team/maven-repair>
cd maven-repair
mvn install
1
2
3

Maven

mvn org.apache.maven.plugins:maven-dependency-plugin:2.1:get \\
    -DrepoUrl=https://tdurieux.github.io/maven-repository/snapshots/ \\
    -Dartifact=fr.inria.gforge.spirals:repair-maven-plugin:1.4-SNAPSHOT
1
2
3

Usage

cd /somewhere/my-project-with-failing-tests

# check the failing tests
mvn test -DtrimStackTrace=false

# look for patches with Nopol
mvn fr.inria.gforge.spirals:repair-maven-plugin:nopol

# look for patches with NpeFix
mvn fr.inria.gforge.spirals:repair-maven-plugin:npefix
1
2
3
4
5
6
7
8
9
10

Output

# the patches are in target
cat target/npefix/patches.json

cat target/nopol/output.json
1
2
3
4
Last Updated: 31/05/2022