Skip to content

Commit 7e47f46

Browse files
authored
[MJARSIGNER-62] Enhanced documentation for usage of arguments (#17)
1 parent 26c070d commit 7e47f46

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

src/main/java/org/apache/maven/plugins/jarsigner/AbstractJarsignerMojo.java

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,21 @@ public abstract class AbstractJarsignerMojo extends AbstractMojo {
145145
private String[] excludes = {};
146146

147147
/**
148-
* List of additional arguments to append to the jarsigner command line.
148+
* List of additional arguments to append to the jarsigner command line. Each argument should be specified as a
149+
* separate element. For example, to specify the name of the signed jar, two elements are needed:
150+
* <ul>
151+
* <li>Alternative using the command line: {@code -Djarsigner.arguments="-signedjar,my-project_signed.jar"}</li>
152+
* <li>Alternative using the Maven POM configuration:</li>
153+
* </ul>
154+
* <pre>
155+
* {@code
156+
* <configuration>
157+
* <arguments>
158+
* <argument>-signedjar</argument>
159+
* <argument>my-project_signed.jar</argument>
160+
* </arguments>
161+
* </configuration>
162+
* }</pre>
149163
*/
150164
@Parameter(property = "jarsigner.arguments")
151165
private String[] arguments;

0 commit comments

Comments
 (0)