[JIRA] (JPAR-190) Investigate an enforcer to check all jars and poms ~/.m2/.... towards the end of a build
Rod Widdowson (Jira)
jira at shibboleth.atlassian.net
Sat Oct 2 15:32:59 UTC 2021
Rod Widdowson ( https://shibboleth.atlassian.net/secure/ViewProfile.jspa?accountId=59fb32bbc24efb3c4ed3c977 ) *commented* on JPAR-190 ( https://shibboleth.atlassian.net/browse/JPAR-190?atlOrigin=eyJpIjoiNzdmMDM4ZWNlZmJlNGI3OWExNWMwMTU0OGMyOWY2ZDIiLCJwIjoiaiJ9 )
Re: Investigate an enforcer to check all jars and poms ~/.m2/.... towards the end of a build ( https://shibboleth.atlassian.net/browse/JPAR-190?atlOrigin=eyJpIjoiNzdmMDM4ZWNlZmJlNGI3OWExNWMwMTU0OGMyOWY2ZDIiLCJwIjoiaiJ9 )
The design here is simple (thats what insomnia does for you)
* Read the parent pom (as do all the enforcers)
* From that get the artifactId and GroupId and this resolve (using maven) the pom
* navigate backwards up the tree to the root the repo (need the split the group id).
* Traverse the Tree
* If we encounter a non jar file : Skip
* If we encounter a *-sources.jar* *or a* -javadoc.jar : Skip
* Treat a *-tests.jar* *like a*.jar
* open the & parse *.pom file enough to get the ArtifactId/GroupId/Version
* Resolve (using maven) the asc file
* Check the signature
This is simple enough to shoe horn into the existing enforcer that I will prototype it up and see how many keyRings an how many public keys are needed.
( https://shibboleth.atlassian.net/browse/JPAR-190#add-comment?atlOrigin=eyJpIjoiNzdmMDM4ZWNlZmJlNGI3OWExNWMwMTU0OGMyOWY2ZDIiLCJwIjoiaiJ9 ) Add Comment ( https://shibboleth.atlassian.net/browse/JPAR-190#add-comment?atlOrigin=eyJpIjoiNzdmMDM4ZWNlZmJlNGI3OWExNWMwMTU0OGMyOWY2ZDIiLCJwIjoiaiJ9 )
Get Jira notifications on your phone! Download the Jira Cloud app for Android ( https://play.google.com/store/apps/details?id=com.atlassian.android.jira.core&referrer=utm_source%3DNotificationLink%26utm_medium%3DEmail ) or iOS ( https://itunes.apple.com/app/apple-store/id1006972087?pt=696495&ct=EmailNotificationLink&mt=8 ) This message was sent by Atlassian Jira (v1001.0.0-SNAPSHOT#100179- sha1:b2eb7ec )
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://shibboleth.net/pipermail/commits/attachments/20211002/181302bd/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: jira-generated-image-static-comment-icon-355bf870-7608-477b-ab33-14e8fb67352f
Type: image/png
Size: 1084 bytes
Desc: not available
URL: <http://shibboleth.net/pipermail/commits/attachments/20211002/181302bd/attachment-0003.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: jira-generated-image-static-footer-desktop-logo-a3bb050d-b3fd-430b-8be7-4a3aff69106e
Type: image/png
Size: 10805 bytes
Desc: not available
URL: <http://shibboleth.net/pipermail/commits/attachments/20211002/181302bd/attachment-0004.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: jira-generated-image-avatar-660c63a6-163f-49c7-801c-1ed4413e0f84
Type: image/png
Size: 468 bytes
Desc: not available
URL: <http://shibboleth.net/pipermail/commits/attachments/20211002/181302bd/attachment-0005.png>
More information about the commits
mailing list