[
https://issues.apache.org/jira/browse/MJAR-143?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17957221#comment-17957221
]
Matthias Bünger commented on MJAR-143:
--------------------------------------
This project has moved from Jira to GitHub Issues. This issue was migrated to
[apache/maven-jar-plugin#306|https://github.com/apache/maven-jar-plugin/issues/306].
> -validity parameter for the keytool arguments
> ---------------------------------------------
>
> Key: MJAR-143
> URL: https://issues.apache.org/jira/browse/MJAR-143
> Project: Maven JAR Plugin (Moved to GitHub Issues)
> Issue Type: New Feature
> Environment: debian
> Reporter: Stéphane Masper
> Assignee: Benson Margulies
> Priority: Major
>
> Hi Jason,
> I was wondering by looking at the maven-jar-plugin source code, if it would
> be possible to add the "-validity" argument for the keytool command. This
> argument allow to specify a duration (a number of days) for the validity of
> the generated jar. Actually, the default value is '6 months' but I would like
> to increase this value as described in the keytool documentation
> http://download.oracle.com/javase/6/docs/technotes/tools/windows/keytool.html
> I think that I'm able to locate the part of the code to update to do that
> (I'm not totally sure about the global impact), it's probably in
> 'JarSignMojo.java' arount the line
> "addArgIfNotEmpty( arguments, "-sigfile", this.sigfile );
> maybe that the line
> addArgIfNotEmpty( arguments, "-validity", this.validity );
> would be a part of the new feature, I don't know how the pom.xml is parsed, I
> guess it's maven's job..?
> Thanks anyway for your reply,
> Stéphane
--
This message was sent by Atlassian Jira
(v8.20.10#820010)