[
https://issues.apache.org/jira/browse/ACCUMULO-4707?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16175565#comment-16175565
]
Christopher Tubbs commented on ACCUMULO-4707:
---------------------------------------------
{{-Dcheckstyle.skip}} works fine for me. The version of the current formatter
plugin does not have a skip feature, but if we update to the latest, it should
have a {{-Dformatter.skip}}. Also, there already exists a profile to skip all
the formatting plugins as a group: {{-DskipFormat}} or {{-P !autoformat}}.
There's even an inline comment in the pom.xml where the formatter is executed
to explain this.
You can also create different build profiles in your {{~/.m2/settings.xml}}
file, and activate them on the command-line, or set default activations in that
same file. You can also create a shell alias or simple bash function or simple
wrapper script if you want to have conveniently-named command-line argument
sets.
There's generally not a need to create a new profile in the POM for such
things, and I'm generally against it (for several reasons, some of which I've
articulated on ACCUMULO-4423 and on the Fluo issue linked above).
> Simple maven profile that skips plugins
> ---------------------------------------
>
> Key: ACCUMULO-4707
> URL: https://issues.apache.org/jira/browse/ACCUMULO-4707
> Project: Accumulo
> Issue Type: Improvement
> Reporter: Michael Miller
> Priority: Minor
>
> I am not sure if this is a bug or how we have the build setup but I can't
> skip checkstyle. Passing in -Dcheckstyle.skip or -Dcheckstyle.skip=true has
> no effect on whatever maven command I run. Maybe this was intentional? I
> was trying to come up with a way to just build code as quickly as possible
> without running any maven plugins.
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)