@@ -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,16 @@ 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 ("Adding '" + propertiesToPublish . size () + "' properties to project: '" + mavenProject .getName () + "'" );
1488
1490
if (mavenProject .equals (project )) {
1489
1491
continue ;
1490
1492
}
1491
1493
publishPropertiesInto (propertiesToPublish , mavenProject .getProperties ());
1492
1494
mavenProject .setContextValue (CONTEXT_KEY , propertiesToPublish );
1493
1495
}
1494
- log .info ("Added properties to '" + reactorProjects .size () + "' projects" );
1496
+ log .info (
1497
+ "Added '" + propertiesToPublish .size () + "' properties " +
1498
+ "to '" + reactorProjects .size () + "' projects" );
1495
1499
}
1496
1500
1497
1501
private void logProperties (LogInterface log , Properties propertiesToPublish ) {
0 commit comments