Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
elharo committed Nov 15, 2024
1 parent 4d8b374 commit 094adf1
Showing 1 changed file with 0 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,7 @@

import java.io.File;
import java.io.IOException;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

import org.apache.maven.artifact.Artifact;
import org.apache.maven.plugin.MojoExecutionException;
Expand Down Expand Up @@ -97,21 +95,6 @@ protected void doExecute() throws MojoExecutionException, MojoFailureException {

List<ArtifactItem> theArtifactItems = getProcessedArtifactItems(
new ProcessArtifactItemsRequest(stripVersion, prependGroupId, useBaseVersion, stripClassifier));
if (!prependGroupId) {
getLog().info("Checking " + theArtifactItems.size() + " artifact items");
Map<String, Integer> copies = new HashMap<>();
for (ArtifactItem artifactItem : theArtifactItems) {
getLog().info("Found " + artifactItem.getArtifactId());
int numCopies = copies.getOrDefault(artifactItem.getArtifactId(), 0);
copies.put(artifactItem.getArtifactId(), numCopies + 1);
}
for (Map.Entry<String, Integer> entry : copies.entrySet()) {
getLog().info("File with the name " + entry.getKey() + "; " + entry.getValue() + " copies");
if (entry.getValue() > 1) {
getLog().warn("Multiple files with the name " + entry.getKey() + "; unpacking is incomplete.");
}
}
}

for (ArtifactItem artifactItem : theArtifactItems) {
if (artifactItem.isNeedsProcessing()) {
Expand Down

0 comments on commit 094adf1

Please sign in to comment.