[java-mvn-enforcer] branch main updated: JMVN-17
Rod Widdowson
rdw at steadingsoftware.com
Mon Dec 20 16:39:19 UTC 2021
This is an automated email from the git hooks/post-receive script.
rdw pushed a commit to branch main
in repository java-mvn-enforcer.
View the commit online:
http://git.shibboleth.net/view/?p=java-mvn-enforcer.git;a=commit;h=53a2c3775248a01da798085239ad6d29a86b80fb
The following commit(s) were added to refs/heads/main by this push:
new 53a2c37 JMVN-17
53a2c37 is described below
commit 53a2c3775248a01da798085239ad6d29a86b80fb
Author: Rod Widdowson <rdw at steadingsoftware.com>
AuthorDate: Mon Dec 20 13:46:08 2021 +0000
JMVN-17
https://shibboleth.atlassian.net/browse/JMVN-17
An artifact's group can be defined in multiple ways - but the group
defined thereby has to be the same
---
.../java/net/shibboleth/mvn/enforcer/impl/ProjectPomContext.java | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/src/main/java/net/shibboleth/mvn/enforcer/impl/ProjectPomContext.java b/src/main/java/net/shibboleth/mvn/enforcer/impl/ProjectPomContext.java
index 696ae24..cdc3717 100644
--- a/src/main/java/net/shibboleth/mvn/enforcer/impl/ProjectPomContext.java
+++ b/src/main/java/net/shibboleth/mvn/enforcer/impl/ProjectPomContext.java
@@ -274,8 +274,12 @@ public final class ProjectPomContext implements AutoCloseable {
private boolean addMapping(final String artifactId, final String groupId) {
final String old = artifactToGroup.put(artifactId, groupId);
if (old != null) {
- log.error("Duplicate group declaration for {}", artifactId);
- return false;
+ if (old.equals(groupId)) {
+ log.warn("Duplicate group declaration for {}", artifactId);
+ } else {
+ log.error("Artifact {} declated to be in groups {} and {}", artifactId, old, groupId);
+ return false;
+ }
}
return true;
}
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the commits
mailing list