Prevent build failing when .git is missing

pull/61/head
luccioman 9 years ago
parent 7ecc64aca3
commit 858dd4d80f

@ -99,6 +99,8 @@ public class GitRevMavenTask extends AbstractMojo {
}
} catch (final IOException e) {
e.printStackTrace();
} catch(IllegalArgumentException e) {
e.printStackTrace();
}
if (project != null) {
project.getProperties().put(this.branchPropertyName, branch);

Loading…
Cancel
Save