You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
logger.warn("Plugin validation issues were detected in {} plugin(s)", issuesMap.size());
134
137
logger.warn("");
135
-
if (validationLevel == ValidationLevel.DISABLED || !logger.isWarnEnabled()) {
138
+
if (validationLevel == ValidationLevel.BRIEF) {
136
139
return;
137
140
}
138
141
139
142
for (Map.Entry<String, PluginValidationIssues> entry : issuesMap.entrySet()) {
140
-
logger.warn("Plugin {}", entry.getKey());
141
-
PluginValidationIssuesissues = entry.getValue();
142
-
if (validationLevel == ValidationLevel.VERBOSE && !issues.pluginDeclarations.isEmpty()) {
143
-
logger.warn(" Declared at location(s):");
144
-
for (StringpluginDeclaration : issues.pluginDeclarations) {
145
-
logger.warn(" * {}", pluginDeclaration);
143
+
logger.warn(" * {}", entry.getKey());
144
+
if (validationLevel == ValidationLevel.VERBOSE) {
145
+
PluginValidationIssuesissues = entry.getValue();
146
+
if (!issues.pluginDeclarations.isEmpty()) {
147
+
logger.warn(" Declared at location(s):");
148
+
for (StringpluginDeclaration : issues.pluginDeclarations) {
149
+
logger.warn(" * {}", pluginDeclaration);
150
+
}
146
151
}
147
-
}
148
-
if (validationLevel == ValidationLevel.VERBOSE && !issues.pluginOccurrences.isEmpty()) {
149
-
logger.warn(" Used in module(s):");
150
-
for (StringpluginOccurrence : issues.pluginOccurrences) {
151
-
logger.warn(" * {}", pluginOccurrence);
152
+
if (!issues.pluginOccurrences.isEmpty()) {
153
+
logger.warn(" Used in module(s):");
154
+
for (StringpluginOccurrence : issues.pluginOccurrences) {
155
+
logger.warn(" * {}", pluginOccurrence);
156
+
}
152
157
}
153
-
}
154
-
if (!issues.pluginIssues.isEmpty()) {
155
-
logger.warn(" Plugin issue(s):");
156
-
for (StringpluginIssue : issues.pluginIssues) {
157
-
logger.warn(" * {}", pluginIssue);
158
+
if (!issues.pluginIssues.isEmpty()) {
159
+
logger.warn(" Plugin issue(s):");
160
+
for (StringpluginIssue : issues.pluginIssues) {
161
+
logger.warn(" * {}", pluginIssue);
162
+
}
158
163
}
159
-
}
160
-
if (!issues.mojoIssues.isEmpty()) {
161
-
logger.warn(" Mojo issue(s):");
162
-
for (StringmojoInfo : issues.mojoIssues.keySet()) {
163
-
logger.warn("* Mojo {}", mojoInfo);
164
-
for (StringmojoIssue : issues.mojoIssues.get(mojoInfo)) {
165
-
logger.warn(" - {}", mojoIssue);
164
+
if (!issues.mojoIssues.isEmpty()) {
165
+
logger.warn(" Mojo issue(s):");
166
+
for (StringmojoInfo : issues.mojoIssues.keySet()) {
167
+
logger.warn(" * Mojo {}", mojoInfo);
168
+
for (StringmojoIssue : issues.mojoIssues.get(mojoInfo)) {
169
+
logger.warn(" - {}", mojoIssue);
170
+
}
166
171
}
167
172
}
173
+
logger.warn("");
168
174
}
169
-
logger.warn("");
170
175
}
171
176
logger.warn("");
172
-
logger.warn(
173
-
"To fix these issues, please upgrade above listed plugins, or, notify their maintainers about reported issues.");
174
-
logger.warn("");
177
+
if (validationLevel == ValidationLevel.VERBOSE) {
178
+
logger.warn(
179
+
"Fix reported issues by adjusting plugin configuration or by upgrading above listed plugins. If no upgrade available, please notify plugin maintainers about reported issues.");
180
+
}
175
181
logger.warn(
176
182
"For more or less details, use 'maven.plugin.validation' property with one of the values (case insensitive): {}",
0 commit comments