提交 8a2137f1 编写于 作者: S Stephan Pauxberger

Typo in comment, additional clarifications

上级 97257ee0
......@@ -144,7 +144,7 @@ public class MavenFingerprinter extends MavenReporter {
// the local repository
ArtifactRepository localRepository = getLocalRepository(mavenVersion, parent);
if (localRepository != null) {
// Don't use file, for compatibility with M2
// Don't use ArtifactRepository.find(), for compatibility with M2
parentFile = new File(localRepository.getBasedir(),
localRepository.pathOf(parent.getArtifact()));
}
......@@ -159,6 +159,8 @@ public class MavenFingerprinter extends MavenReporter {
}
private ArtifactRepository getLocalRepository(String mavenVersion, MavenProject parent) {
// Maven 2.0 has no corresponding mechanism
// Maven 2.1,2.2 has a projectBuildConfiguration, however it is null, need to further look into this
if (mavenVersion.startsWith("2.")) return null;
// Maven 3
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册