This is an automated email from the ASF dual-hosted git repository. elharo pushed a commit to branch comment in repository https://gitbox.apache.org/repos/asf/maven-archiver.git
commit c85ca4db6f7c98ffb7ae12e1e908cffccd105d93 Author: Elliotte Rusty Harold <elh...@ibiblio.org> AuthorDate: Tue Nov 26 10:14:25 2024 -0500 Remove commented code --- .../java/org/apache/maven/archiver/MavenArchiver.java | 6 ------ .../java/org/apache/maven/archiver/MavenArchiverTest.java | 15 --------------- 2 files changed, 21 deletions(-) diff --git a/src/main/java/org/apache/maven/archiver/MavenArchiver.java b/src/main/java/org/apache/maven/archiver/MavenArchiver.java index a6025c0..2117572 100644 --- a/src/main/java/org/apache/maven/archiver/MavenArchiver.java +++ b/src/main/java/org/apache/maven/archiver/MavenArchiver.java @@ -368,12 +368,6 @@ public class MavenArchiver { addManifestAttribute(m, entries, "Main-Class", mainClass); } - /* - if (config.isAddExtensions()) { - handleExtensions(result.getDependencies(), entries, m); - } - */ - addCustomEntries(m, entries, config); return m; diff --git a/src/test/java/org/apache/maven/archiver/MavenArchiverTest.java b/src/test/java/org/apache/maven/archiver/MavenArchiverTest.java index 10093c9..77be6f9 100644 --- a/src/test/java/org/apache/maven/archiver/MavenArchiverTest.java +++ b/src/test/java/org/apache/maven/archiver/MavenArchiverTest.java @@ -1069,9 +1069,6 @@ class MavenArchiverTest { ProjectStub project = new ProjectStub(); project.setModel(model); - // project.setExtensionArtifacts(Collections.emptySet()); - // project.setRemoteArtifactRepositories(Collections.emptyList()); - // project.setPluginArtifactRepositories(Collections.emptyList()); return project; } @@ -1189,18 +1186,6 @@ class MavenArchiverTest { } private Session getDummySession(Map<String, String> systemProperties) { - // Date startTime = new Date(); - - // MavenExecutionRequest request = new DefaultMavenExecutionRequest(); - // request.setSystemProperties(systemProperties); - // request.setGoals(null); - // request.setStartTime(startTime); - // request.setUserSettingsFile(null); - - // MavenExecutionResult result = new DefaultMavenExecutionResult(); - // - // RepositorySystemSession rss = new DefaultRepositorySystemSession(); - Session session = SessionMock.getMockSession("target/local-repo"); when(session.getSystemProperties()).thenReturn(systemProperties);