code: private static MavenProject toGenerate(MavenProject project, BomConfig config, Collection<Dependency> dependencies, Set<Artifact> plugins) {
          MavenProject toGenerate = project.clone();
          toGenerate.setGroupId(project.getGroupId());
          toGenerate.setArtifactId(config.getArtifactId());
          toGenerate.setVersion(project.getVersion());
          toGenerate.setPackaging("pom");
          toGenerate.setName(config.getName());
          toGenerate.setDescription(config.getDescription());
  
          toGenerate.setUrl(project.getUrl());
          toGenerate.setLicenses(project.getLicenses());
          toGenerate.setScm(project.getScm());
          toGenerate.setDevelopers(project.getDevelopers());
  
          toGenerate.getModel().setDependencyManagement(new DependencyManagement());
          for (Dependency dependency : dependencies) {
              toGenerate.getDependencyManagement().addDependency(dependency);
          }
          for (Dependency dependency : config.getExtraDependencies()) {
              toGenerate.getDependencyManagement().addDependency(dependency);
          }
  
          toGenerate.getModel().setBuild(new Build());
          if (!plugins.isEmpty()) {
              toGenerate.getModel().setBuild(new Build());
              toGenerate.getModel().getBuild().setPluginManagement(new PluginManagement());
              for (Artifact artifact : plugins) {
                  toGenerate.getPluginManagement().addPlugin(toPlugin(artifact));
              }
          }
  
          return toGenerate;
      }
docs: Returns the model of the {@link org.apache.maven.project.MavenProject} to generate.
  This is a trimmed down version and contains just the stuff that need to go into the bom.
  
  @param project The source {@link org.apache.maven.project.MavenProject}.
  @param config  The {@link io.sundr.maven.BomConfig}.
  @return The build {@link org.apache.maven.project.MavenProject}.