cstamas commented on pull request #154:
URL: https://github.com/apache/maven-resolver/pull/154#issuecomment-1066616895


   IMO, as we still test with `endsWith`, dotless and dotted is important, but 
for simplicity sake, we'd maybe enforce configuration to use only dotted (dot 
prefixed) input. OTOH, I'd not apply anything like auto-adding dots, as that 
may hinder our later efforts to do something else (as we see that having or not 
having dot as prefix does matters, but we still don't know exactly what and how 
to use that, so better not allow users to be lazy that may hit us back later).
   
   Simply put: change factory to enforce leading dots, and update doco that 
list must have extensions with leading dots.
   
   Rationale:
   * artifact.getExtension returns dotless extension (so not starting with 
dot), but sub-artifacts may have dots within (jar.asc)
   * enforcing that users use dot-prefixed strings means we are applying this 
ONLY to sub-artifacts, that again, makes sense. I don't think we want to have 
top level artifacts that does NOT have checksums.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscr...@maven.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to