Skip to content

Commit

Permalink
refactor: Add a logging statement before checking relocation
Browse files Browse the repository at this point in the history
  • Loading branch information
aalmiray committed Oct 22, 2024
1 parent 7e2f040 commit 3d26536
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,7 @@ public static void check(Logger log, MavenProject project, Configuration configu
errors.add("<version> contains an unresolved expression: " + fullModel.getVersion());
}
if (isRelocated(fullModel)) {
log.debug("Checking <distributionManagement>/<relocation>");
Relocation relocation = fullModel.getDistributionManagement().getRelocation();
if (isBlank(relocation.getGroupId()) && isBlank(relocation.getArtifactId()) && isBlank(relocation.getVersion())) {
errors.add("<distributionManagement>/<relocation> requires either <groupId>, <artifactId> or <version>.");
Expand Down

0 comments on commit 3d26536

Please sign in to comment.