[java-mvn-enforcer] branch main updated: JMVN-16 Project artifact not recognised in single-module project

Rod Widdowson rdw at steadingsoftware.com
Tue Jan 4 15:23:24 UTC 2022


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=cb288f64c06b77f0bb6f2cef49d40bb3fc8c21ab

The following commit(s) were added to refs/heads/main by this push:
     new cb288f6  JMVN-16 Project artifact not recognised in single-module project
cb288f6 is described below

commit cb288f64c06b77f0bb6f2cef49d40bb3fc8c21ab
Author: Rod Widdowson <rdw at steadingsoftware.com>
AuthorDate: Tue Jan 4 15:19:45 2022 +0000

    JMVN-16 Project artifact not recognised in single-module project
    
    https://shibboleth.atlassian.net/browse/JMVN-16
    
    Add the mapping for the "parent" pom as an artifact.
---
 src/main/java/net/shibboleth/mvn/enforcer/impl/ProjectPomContext.java | 1 +
 1 file changed, 1 insertion(+)

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 cdc3717..48ec056 100644
--- a/src/main/java/net/shibboleth/mvn/enforcer/impl/ProjectPomContext.java
+++ b/src/main/java/net/shibboleth/mvn/enforcer/impl/ProjectPomContext.java
@@ -249,6 +249,7 @@ public final class ProjectPomContext implements AutoCloseable {
                 artifactToGroup.put(artifact.getArtifactId(), artifact.getGroupId());
             }
         }
+        artifactToGroup.put(parentPom.getOurInfo().getArtifactId(), parentPom.getOurInfo().getGroupId());
         final Properties props = new Properties();
         final String path = CLASSPATH_ROOT + "artifactMap.properties";
         try (final InputStream stream = enforcerLoader.getResourceAsStream(path)) {

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the commits mailing list