v1.0.2 #368

Merged
greg6775 merged 10 commits from greg-dev into master 2020-02-06 02:24:07 +01:00
Showing only changes of commit 4bdbb6e0b9 - Show all commits

View file

@ -28,7 +28,6 @@ import org.apache.maven.model.io.xpp3.MavenXpp3Reader;
import org.codehaus.plexus.util.xml.pull.XmlPullParserException;
import javax.annotation.Nonnull;
import java.io.FileReader;
import java.io.IOException;
import java.util.Random;
@ -51,7 +50,7 @@ public class MentionListener extends ListenerAdapter {
MavenXpp3Reader reader = new MavenXpp3Reader();
Model model = null;
try {
model = reader.read(new FileReader("pom.xml"));
model = reader.read(this.getClass().getClassLoader().getResourceAsStream("pom.xml"));
} catch (IOException | XmlPullParserException ex) {
ex.printStackTrace();
}