Andreas Sewe wrote: > Michael Osipov wrote: >>> Michael Osipov wrote: >>>> Don't waste your time. Read [1]: aether.checksums.algorithms >>>> >>>> [1] https://maven.apache.org/resolver/configuration.html >>> >>> Thank you for the pointer. Just found this post when searching for a way >>> to create .sha256 and .sha512 files during a "mvn deploy" but can't get >>> it to work: >>> >>> mvn deploy -Daether.checksums.algorithms=SHA-512,SHA-256,SHA1,MD5 >>> >>> The above still only created .sha1 and .md5 files in my staging >>> repository. What am I doing wrong? >> >> You need to update the bundled Maven Resolver version and it will work. >> Mark Thomas is already using it with Maven Resolver Ant Tasks to push >> Tomcat releases. > > Thanks Michael. That works like a charm.
Alas, I spoke too soon. It works on the command line, but I can't make
it an permanent part of my parent POM:
<properties>
<aether.checksums.algorithms>SHA-512,SHA-256,SHA-1,MD5</aether.checksums.algorithms>
</properties>
and
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-deploy-plugin</artifactId>
<version>3.0.0-M1</version>
<dependencies>
<dependency>
<groupId>org.apache.maven.shared</groupId>
<artifactId>maven-artifact-transfer</artifactId>
<version>0.13.1</version>
</dependency>
</dependencies>
</plugin>
Can the Maven Resolver be configured by POM <properties> at all, or are
those read too late to make their way into the RepositorySystemSession [1]?
Best wishes,
Andreas Sewe
[1]
<https://github.com/apache/maven/blob/master/maven-core/src/main/java/org/apache/maven/internal/aether/DefaultRepositorySystemSessionFactory.java#L117>
signature.asc
Description: OpenPGP digital signature
