[
https://issues.apache.org/jira/browse/MJAVADOC-451?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15305544#comment-15305544
]
Robert Scholte commented on MJAVADOC-451:
-----------------------------------------
bq. ...and many other plugins have a skip parameter
I was already afraid for this answer. Quite often this is a sign that the
project smells. (and you already mentioned it in your description that it is
not recommended to use the fix-goal like this. You are are that now
documentation and sources in the SCM can/will be out of sync?)
So how do you execute this project and to which phases are the related plugins
attached?
> Add "skip" option to javadoc:fix goal
> -------------------------------------
>
> Key: MJAVADOC-451
> URL: https://issues.apache.org/jira/browse/MJAVADOC-451
> Project: Maven Javadoc Plugin
> Issue Type: Improvement
> Components: javadoc
> Affects Versions: 2.10.3
> Environment: all
> Reporter: Richard Sand
> Priority: Minor
> Attachments: skip.patch
>
> Original Estimate: 1h
> Remaining Estimate: 1h
>
> I've a project where we want to use the javadoc:fix goal in a non-interactive
> (forced) mode. I know this isn't recommended usage but we have specific
> reasons for this particular project. It is useful to have a parameter to tell
> maven to skip this goal if desired.
> Also, since using the javadoc:fix with "force" as part of the build lifecycle
> will cause an endless loop as maven executes the clirr:check goal, adding
> this parameter allows javadoc:fix to invoke clirr:check without looping.
> Many other goals/plugins have a skip parameter, so I added one called
> "maven.javadoc.fix.skip".
> I've provided a patch here to add this parameter. Its a trivial enough patch
> that I hope you'll allow it for 2.10.4. Thanks!
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)