code: public static void afterForkedLifecycleExit( MavenProject project, List<MavenProject> reactorProjects )
      {
          String forkedOutputDirectory = project.getExecutionProject().getBuild().getOutputDirectory();
          project.getProperties().put( PROP_FORKED_OUTPUT_DIRECTORY, forkedOutputDirectory );
  
          File forkedArtifactFile = project.getExecutionProject().getArtifact().getFile();
          project.getProperties().put( PROP_FORKED_ARTIFACT_FILE,
                                       forkedArtifactFile != null ? forkedArtifactFile.getAbsolutePath() : "" );
  
          // Restore changed outputDirectory and artifact.file in other reactor projects
          for ( MavenProject reactorProject : reactorProjects )
          {
              if ( reactorProject != project )
              {
                  if ( reactorProject.getProperties().containsKey( PROP_ORIG_OUTPUT_DIRECTORY ) )
                  {
                      String originalOutputDirectory =
                          (String) reactorProject.getProperties().remove( PROP_ORIG_OUTPUT_DIRECTORY );
                      forkedOutputDirectory = reactorProject.getBuild().getOutputDirectory();
  
                      reactorProject.getProperties().put( PROP_FORKED_OUTPUT_DIRECTORY, forkedOutputDirectory );
                      reactorProject.getBuild().setOutputDirectory( originalOutputDirectory );
                  }
  
                  if ( reactorProject.getProperties().containsKey( PROP_ORIG_ARTIFACT_FILE ) )
                  {
                      String originalArtifactFilePath =
                          (String) reactorProject.getProperties().remove/* get */( PROP_ORIG_ARTIFACT_FILE );
                      forkedArtifactFile = reactorProject.getArtifact().getFile();
  
                      reactorProject.getProperties().put( PROP_FORKED_ARTIFACT_FILE,
                                                          forkedArtifactFile == null ? ""
                                                                          : forkedArtifactFile.getAbsolutePath() );
                      reactorProject.getArtifact().setFile( "".equals( originalArtifactFilePath ) ? null
                                                                            : new File( originalArtifactFilePath ) );
                  }
              }
          }
      }
docs: Restores original configuration after leaving forked {@code scoverage} life cycle.
  <br>
  {@code project} is a project in default life cycle, {@code project.getExecutionProject()}
  is a project in just finished forked {@code scoverage} life cycle.
  
  @param project Maven project in default life cycle.
  @param reactorProjects all reactor Maven projects.