[java-mvn-enforcer] branch main updated: JMVN-49 Enforcer fails with an NPE if it could not load signature for enforcer-data from maven
Rod Widdowson
rdw at steadingsoftware.com
Thu Feb 9 14:14:55 UTC 2023
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=b554526b81ba87e1ca0597759a53f3dd855a3cb6
The following commit(s) were added to refs/heads/main by this push:
new b554526 JMVN-49 Enforcer fails with an NPE if it could not load signature for enforcer-data from maven
b554526 is described below
commit b554526b81ba87e1ca0597759a53f3dd855a3cb6
Author: Rod Widdowson <rdw at steadingsoftware.com>
AuthorDate: Thu Feb 9 14:14:51 2023 +0000
JMVN-49 Enforcer fails with an NPE if it could not load signature for enforcer-data from maven
https://shibboleth.atlassian.net/browse/JMVN-49
Make the error suggest the checksum issue
---
src/main/java/net/shibboleth/mvn/enforcer/impl/JarEnforcer.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/main/java/net/shibboleth/mvn/enforcer/impl/JarEnforcer.java b/src/main/java/net/shibboleth/mvn/enforcer/impl/JarEnforcer.java
index 76e030f..1843284 100644
--- a/src/main/java/net/shibboleth/mvn/enforcer/impl/JarEnforcer.java
+++ b/src/main/java/net/shibboleth/mvn/enforcer/impl/JarEnforcer.java
@@ -261,7 +261,7 @@ public class JarEnforcer implements EnforcerRule, MavenLoader{
final File asc = downloadArtifact(dataGroupId, dataArtifactId, dataVersion, "", "jar.asc");
if (asc == null || !asc.exists()) {
log.error("Could not locate keyring data artifact signature for {}:{}:{}", dataGroupId, dataArtifactId, dataVersion);
- throw new FileNotFoundException("Could not locate keyring data artifact signature");
+ throw new FileNotFoundException("Could not locate keyring data artifact signature: probably a failed checksum");
}
final File keyRingFile = new File (dataKeyRing);
if (!keyRingFile.exists()) {
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the commits
mailing list