You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Benjamin Bentmann (JIRA)" <ji...@codehaus.org> on 2011/09/16 11:59:17 UTC
[jira] Commented: (MJARSIGNER-19) Make mojo code reusable from
another mojo + customize the working directory.
[ https://jira.codehaus.org/browse/MJARSIGNER-19?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=279159#comment-279159 ]
Benjamin Bentmann commented on MJARSIGNER-19:
---------------------------------------------
The proper way to reuse this functionality is to extract the desired code into a shared component which both mojos than use. Subclassing mojos is an anti-pattern.
> Make mojo code reusable from another mojo + customize the working directory.
> ----------------------------------------------------------------------------
>
> Key: MJARSIGNER-19
> URL: https://jira.codehaus.org/browse/MJARSIGNER-19
> Project: Maven 2.x Jar Signer Plugin
> Issue Type: Improvement
> Affects Versions: 1.2
> Reporter: Tony Chemit
> Priority: Trivial
> Attachments: MJARSIGNER-19.patch
>
>
> In the webstart-maven-plugin We used the old jarsigner mojo (from the jar plugin).
> We'd like to use now this plugin as the mojo from the jar plugin is deprecated for this one (see MWEBSTART-149)
> Moreover, we want to use yet another working directory and at the moment in the mojo this is hardcoed to project.getBasedir().
> Here is a patch which fix our needs.
> Hope this patch will be apply soon, I would really like to use your mojo :)
> Thanks for your work.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira