Skip to content

Commit 8605031

Browse files
fix checkstyle and its
1 parent 449eeb5 commit 8605031

File tree

4 files changed

+12
-1
lines changed

4 files changed

+12
-1
lines changed

src/it/no-main-artifact-1/pom.xml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,9 @@ under the License.
8686
<groupId>org.apache.maven.plugins</groupId>
8787
<artifactId>maven-install-plugin</artifactId>
8888
<version>@mavenInstallPluginVersion@</version>
89+
<configuration>
90+
<allowIncompleteProjects>true</allowIncompleteProjects>
91+
</configuration>
8992
</plugin>
9093
<plugin>
9194
<groupId>org.apache.maven.plugins</groupId>

src/it/no-main-artifact-2/pom.xml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,9 @@ under the License.
8585
<groupId>org.apache.maven.plugins</groupId>
8686
<artifactId>maven-install-plugin</artifactId>
8787
<version>@mavenInstallPluginVersion@</version>
88+
<configuration>
89+
<allowIncompleteProjects>true</allowIncompleteProjects>
90+
</configuration>
8891
</plugin>
8992
<plugin>
9093
<groupId>org.apache.maven.plugins</groupId>

src/main/java/org/apache/maven/plugins/deploy/DeployFileMojo.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -232,6 +232,7 @@ private Path readingPomFromJarFile() {
232232
return null;
233233
}
234234

235+
@SuppressWarnings("checkstyle:MethodLength")
235236
public void execute() throws MojoException {
236237
if (Boolean.parseBoolean(skip)
237238
|| ("releases".equals(skip) && !session.isVersionSnapshot(version))

src/main/java/org/apache/maven/plugins/deploy/DeployMojo.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,11 @@
1919
package org.apache.maven.plugins.deploy;
2020

2121
import java.nio.file.Files;
22-
import java.util.*;
22+
import java.util.ArrayList;
23+
import java.util.Collection;
24+
import java.util.LinkedHashMap;
25+
import java.util.List;
26+
import java.util.Map;
2327
import java.util.regex.Matcher;
2428
import java.util.regex.Pattern;
2529

0 commit comments

Comments
 (0)