Skip to content

Commit

Permalink
mojohaus#384: method FlattenMojo#logParameters removed
Browse files Browse the repository at this point in the history
  • Loading branch information
SergeDemoulinGebit committed May 14, 2024
1 parent 6ab530a commit 022c9a6
Showing 1 changed file with 4 additions and 36 deletions.
40 changes: 4 additions & 36 deletions src/main/java/org/codehaus/mojo/flatten/FlattenMojo.java
Original file line number Diff line number Diff line change
Expand Up @@ -23,45 +23,19 @@
import javax.xml.parsers.SAXParser;
import javax.xml.parsers.SAXParserFactory;

import java.io.File;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.io.StringWriter;
import java.io.*;
import java.lang.reflect.Field;
import java.lang.reflect.Modifier;
import java.nio.file.Files;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collection;
import java.util.Collections;
import java.util.Comparator;
import java.util.HashMap;
import java.util.HashSet;
import java.util.LinkedHashMap;
import java.util.LinkedList;
import java.util.List;
import java.util.Map;
import java.util.Properties;
import java.util.Queue;
import java.util.Set;
import java.util.*;
import java.util.stream.Collectors;
import java.util.stream.Stream;

import org.apache.maven.RepositoryUtils;
import org.apache.maven.artifact.Artifact;
import org.apache.maven.artifact.handler.manager.ArtifactHandlerManager;
import org.apache.maven.execution.MavenSession;
import org.apache.maven.model.Activation;
import org.apache.maven.model.Build;
import org.apache.maven.model.Dependency;
import org.apache.maven.model.DependencyManagement;
import org.apache.maven.model.Exclusion;
import org.apache.maven.model.Model;
import org.apache.maven.model.Plugin;
import org.apache.maven.model.Profile;
import org.apache.maven.model.Repository;
import org.apache.maven.model.RepositoryPolicy;
import org.apache.maven.model.*;
import org.apache.maven.model.building.DefaultModelBuildingRequest;
import org.apache.maven.model.building.ModelBuildingException;
import org.apache.maven.model.building.ModelBuildingRequest;
Expand Down Expand Up @@ -407,6 +381,7 @@ public class FlattenMojo extends AbstractFlattenMojo {

@Inject
private RepositorySystem repositorySystem;

/**
* The constructor.
*/
Expand All @@ -426,7 +401,6 @@ public void execute() throws MojoExecutionException, MojoFailureException {

getLog().info("Generating flattened POM of project " + this.project.getId() + "...");

logParameters();
inheritanceAssembler.flattenDependencyMode = this.flattenDependencyMode;

File originalPomFile = this.project.getFile();
Expand All @@ -451,12 +425,6 @@ protected boolean shouldSkipGoal() {
return skipFlatten;
}

private void logParameters() {

getLog().info("Generating flattened POM of project " + this.project.getId() + " with following parameters "
+ this.asString(this.getParameters()));
}

private String asString(Map<String, Object> map) {
final StringBuilder stringBuilder = new StringBuilder("{");
int i = 0;
Expand Down

0 comments on commit 022c9a6

Please sign in to comment.