@@ -1145,6 +1145,7 @@ public void error(String msg, Throwable t) {
1145
1145
|| PropertiesFileGenerator .craftPropertiesOutputFile (
1146
1146
project .getBasedir (), new File (generateGitPropertiesFilename ))
1147
1147
.exists ()) {
1148
+ log .info ("Skip mojo execution on incremental builds." );
1148
1149
return ;
1149
1150
}
1150
1151
}
@@ -1237,7 +1238,8 @@ public void error(String msg, Throwable t) {
1237
1238
log .info (
1238
1239
"injectAllReactorProjects is enabled - attempting to use the already computed values" );
1239
1240
// makes sure the existing context properties are not mutated
1240
- properties = new Properties (contextProperties );
1241
+ properties = new Properties ();
1242
+ properties .putAll (contextProperties );
1241
1243
}
1242
1244
1243
1245
final GitCommitIdPlugin .Callback cb =
@@ -1484,14 +1486,18 @@ private void publishPropertiesInto(Properties propertiesToPublish, Properties pr
1484
1486
1485
1487
private void appendPropertiesToReactorProjects (LogInterface log , Properties propertiesToPublish ) {
1486
1488
for (MavenProject mavenProject : reactorProjects ) {
1487
- log .debug ("Adding properties to project: '" + mavenProject .getName () + "'" );
1489
+ log .debug (
1490
+ "Adding '" + propertiesToPublish .size () + "' properties "
1491
+ + "to project: '" + mavenProject .getName () + "'" );
1488
1492
if (mavenProject .equals (project )) {
1489
1493
continue ;
1490
1494
}
1491
1495
publishPropertiesInto (propertiesToPublish , mavenProject .getProperties ());
1492
1496
mavenProject .setContextValue (CONTEXT_KEY , propertiesToPublish );
1493
1497
}
1494
- log .info ("Added properties to '" + reactorProjects .size () + "' projects" );
1498
+ log .info (
1499
+ "Added '" + propertiesToPublish .size () + "' properties "
1500
+ + "to '" + reactorProjects .size () + "' projects" );
1495
1501
}
1496
1502
1497
1503
private void logProperties (LogInterface log , Properties propertiesToPublish ) {
0 commit comments