[ 
https://issues.apache.org/jira/browse/MDEPLOY-271?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17128409#comment-17128409
 ] 

Konrad Windszus edited comment on MDEPLOY-271 at 6/8/20, 4:15 PM:
------------------------------------------------------------------

Unfortunately using older version 2.8.2 is no option either, as there 
https://github.com/apache/maven-deploy-plugin/blob/3b62d2a0bd33119194f5605ea0d281652c7d934f/src/main/java/org/apache/maven/plugin/deploy/AbstractDeployMojo.java#L171
 -> 
https://github.com/apache/maven-artifact/blob/ab6be5e8c9d05f20dd37f813063482493788d1e9/src/main/java/org/apache/maven/artifact/deployer/DefaultArtifactDeployer.java#L109
 -> 
https://github.com/apache/maven/blob/a2b800de32cdb9adc1e64a43a0fc32e3ba878103/maven-compat/src/main/java/org/apache/maven/repository/legacy/DefaultWagonManager.java#L634
 is used which generates those checksums as well with no option to disable it.


was (Author: kwin):
Unfortunately using older version 2.8.2 is no option either, as there 
https://github.com/apache/maven/blob/a2b800de32cdb9adc1e64a43a0fc32e3ba878103/maven-compat/src/main/java/org/apache/maven/repository/legacy/DefaultWagonManager.java#L634
 is used, which generates those checksums as well with no option to disable it.

> Allow to optionally disable checksum creation
> ---------------------------------------------
>
>                 Key: MDEPLOY-271
>                 URL: https://issues.apache.org/jira/browse/MDEPLOY-271
>             Project: Maven Deploy Plugin
>          Issue Type: Improvement
>    Affects Versions: 3.0.0-M1
>            Reporter: Konrad Windszus
>            Priority: Major
>
> Since 3.0.0-M1 the deploy goal will always generate SHA1/MD5 for all attached 
> artifacts. The old configuration option 
> https://maven.apache.org/plugins-archives/maven-install-plugin-2.4/install-mojo.html#createChecksum
>  is no longer exposed in the maven-deploy-plugin. That leads to the fact the 
> m-deploy-plugin 3.0.0-M1 will generate MD5/SHA1 even for attached SHA-512 
> artifacts (generated with 
> https://checksum-maven-plugin.nicoulaj.net/artifacts-mojo.html) which are 
> supported by Nexus since https://issues.sonatype.org/browse/NEXUS-21802.
> It would be nice if one would be able to configure _*which artifacts 
> (regex/glob on artifactId) should receive which hashes (algorithm)*_.
> That way generating only MD5 or SHA1 would be possible and also exclusion of 
> checksums for certain attached artifacts.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to