Skip to content
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

checksum-maven-plugin "artifacts" appends wrong filename #137

Open
reckart opened this issue May 20, 2022 · 0 comments
Open

checksum-maven-plugin "artifacts" appends wrong filename #137

reckart opened this issue May 20, 2022 · 0 comments

Comments

@reckart
Copy link

reckart commented May 20, 2022

There are cases where the filename of an artifact that is attached to the build does not match the filename under which the artifact actually ends up in the repository. When the "artifacts" goal is used, we usually want to calculate hashes for the files that get deployed into the repository. If we use the appendFilename option, then it is usually to be able to run a command like sha512sum -c *.sha512 to check if the hashes for the hashed files are valid. However, if the original filename of the attached artifact differs from the name it ends up under in the repository, then this fails because the filename in the .sha512 file ends up being wrong.

For example, Tycho may attach a file p2content.xml as an artifact to the build such that it gets written to the repository as org.apache.uima.ruta.feature-3.2.0-p2metadata.xml. When we apply checksum-maven-plugin:1.11:artifacts in such a case, we get a file org.apache.uima.ruta.feature-3.2.0-p2metadata.xml.sha512, but its content is:

<hash>   p2content.xml

The content should instead be

<hash>   org.apache.uima.ruta.feature-3.2.0-p2metadata.xml
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant