Skip to content

[MJARSIGNER-62] Enhanced documentation for usage of arguments#17

Merged
elharo merged 1 commit into
apache:masterfrom
schedin:MJARSIGNER-62_arguments_doc
Dec 11, 2023
Merged

[MJARSIGNER-62] Enhanced documentation for usage of arguments#17
elharo merged 1 commit into
apache:masterfrom
schedin:MJARSIGNER-62_arguments_doc

Conversation

@schedin

@schedin schedin commented Dec 10, 2023

Copy link
Copy Markdown
Contributor

The author of https://issues.apache.org/jira/projects/MJARSIGNER/issues/MJARSIGNER-62 would like to use a 2-element additional argument to the jarsigner command line. The author believes that the problem they are having is that maven-jarsigner-plugin (on top of the https://github.com/apache/maven-jarsigner project) is quoting the arguments, and that is causing the problem.

I believe that the author is not correct: it is how the arguments were used by the author that is the problem. But I still think that the author has a good point. I my opinion the arguments parameter is not properly documented. You must be experienced with Maven to understand how to use it. I have used Maven for many years, and I still have problems with this. This pull request improves the documentation, so it is understandable for even a novice Maven user. When this pull request is accepted, I think that MJARSIGNER-62 can be closed.

As an example, the -certchain is used in the ticket description. For this specific parameter there already exists a dedicated parameter. If/when #14 is accepted this will also have a correct documentation on https://maven.apache.org/plugins/maven-jarsigner-plugin/sign-mojo.html

As an example, in this pull request, I have selected a parameter that maven-jarsigner-plugin does not have support for: -signedjar file. This is a good parameter as an example because I don’t think maven-jarsigner-plugin will implement support for this (since maven-jarsigner-plugin is used to sign many jarfiles, it does not make sense to overwrite every jar into a single output jarfile).

Example of rendered output:
image

@elharo elharo left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice!

@elharo elharo merged commit 7e47f46 into apache:master Dec 11, 2023
@jira-importer

Copy link
Copy Markdown

Resolve #87

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

Successfully merging this pull request may close these issues.

3 participants