New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
sign .asc and sha512 with maven-gpg-plugin #99
Comments
https://maven.apache.org/resolver/configuration.html mvn deploy -Daether.checksums.algorithms=SHA-512,SHA-256,SHA1,MD5 algorithm options available:
https://docs.oracle.com/javase/7/docs/technotes/guides/security/StandardNames.html#MessageDigest |
gpg arguments: https://maven.apache.org/plugins/maven-gpg-plugin/sign-mojo.html#gpgArguments Sets the arguments to be passed to gpg. Example: <gpgArguments>
<arg>--no-random-seed-file</arg>
<arg>--no-permission-warning</arg>
</gpgArguments> Type: java.util.List |
Build helper plugin: usage, to add more sources to the project<project>
...
<build>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>build-helper-maven-plugin</artifactId>
<version>3.2.0</version>
<executions>
<execution>
<id>add-source</id>
<phase>generate-sources</phase>
<goals>
<goal>add-source</goal>
</goals>
<configuration>
<sources>
<source>some directory</source>
...
</sources>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project> |
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-deploy-plugin:2.8.2:deploy (default-deploy)
on project systemds: Failed to deploy artifacts: Could not transfer artifact org.apache.systemds:systemds:jar:2.1.0
from/to github (https://maven.pkg.github.com/j143/systemds): Failed to transfer file:
https://maven.pkg.github.com/j143/systemds/org/apache/systemds/systemds/2.1.0/systemds-2.1.0.jar.
+ Return code is: 409, ReasonPhrase: Conflict. |
A plugin for checksums - https://checksum-maven-plugin.nicoulaj.net/examples/generating-checksum-summary-files.html |
Is there any way this ( https://www.mojohaus.org/build-helper-maven-plugin/attach-artifact-mojo.html ) could solve the problem?
Seems off-topic. |
This is asked on mailing list, waiting for the response. |
Objective: Related (#53)
The names of individual signature and checksum files must be formed by adding to the name of the artifact the appropriate suffix:
as per https://infra.apache.org/release-distribution.html#sigs-and-sums
at the moment the I am able to sign with sha1, md5 with .asc as in #99 (comment)
Solution:
sha512 files are produced by maven resolver, this option is available with maven 3.8.1. Install latest maven as shown here #115
Related discussion in mail list (Apache Maven):
01st Feb, 2021
https://www.mail-archive.com/users@maven.apache.org/msg142898.html
This one won't work.
26th May 2021
https://www.mail-archive.com/dev@maven.apache.org/msg124411.html
The text was updated successfully, but these errors were encountered: