You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Tamas Cservenak (Jira)" <ji...@apache.org> on 2024/08/08 18:49:00 UTC

[jira] [Comment Edited] (MGPG-129) sign-and-deploy-file incorrectly renames source files when deployed.

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

Tamas Cservenak edited comment on MGPG-129 at 8/8/24 6:48 PM:
--------------------------------------------------------------

This is not GPG plugin issue but more like Maven and/or invocation. 
The source checkout https://github.com/apache/datasketches-memory/tree/3.0.X root POM has artifactId {{datasketches-memory-root}} so it seems is being picked up?
Can you reproduce when you invoke sign-and-deploy outside of git checkout (from dir where there is no POM)?
Which Maven version you use?


was (Author: cstamas):
This is not GPG plugin issue but more like Maven and/or invocation. 
The source checkout https://github.com/apache/datasketches-memory/tree/3.0.X root POM has artifactId {{datasketches-memory-root}} so it seems is being picked up?
Can you reproduce when you invoke sign-and-deploy outside of git checkout (from dir where there is no POM)?

> sign-and-deploy-file incorrectly renames source files when deployed.
> --------------------------------------------------------------------
>
>                 Key: MGPG-129
>                 URL: https://issues.apache.org/jira/browse/MGPG-129
>             Project: Maven GPG Plugin
>          Issue Type: Bug
>    Affects Versions: 3.0.1, 3.2.3, 3.2.4
>         Environment: MacOS 14.5, using bash scripts to call maven.
>            Reporter: Lee Rhodes
>            Priority: Major
>         Attachments: Debug_output.txt, package-multi-release-jar.sh, pom.xml, sign-deploy-jar.sh
>
>
> You can see from the Debug_output.txt (line 209) that the source files are of the form: "datasketches-memory-3.0.0.jar", "datasketches-memory-3.0.0-tests.jar", etc.   
> But the files being deployed (line 252) are of the form: "datasketches-memory-root-3.0.0.jar", etc.   This extra "-root" is incorrect.
> How do I fix this so that the given files are just signed and deployed without being renamed?
> This can be replicated from the open-source site: https://github.com/apache/datasketches-memory/tree/3.0.X.
> First run the "package-multi-release-jar.sh", which creates the source files under /target/. Then run the script "sign-deploy-jar.sh" with inputs "3.0.0" <local project directory>.  You will need an account on Nexus.
> BTW, the source file names have to be different from the root project name because the source files are MR-Jars that have been assembled by the above "package-multi-release-jar.sh".   
> "sign-and-deploy-file" does not just sign and deploy the given source files, it is also renaming them, which causes the deployed files to have incorrect names.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)