Hi,

While working on MJAR-7, John and I discussed a possible standard for plugin parameters naming conventions. Which basically boil down to:

field/property = noun|verbNoun
expression    = prefix.noun|verbNoun

So for MJAR-7 we have

field             = forceCreation
expression = jar.forceCreation

So we are using camel case to avoid any potential interpolation problems, the noun|verbNoun form to use used within the plugin configuration, and the prefix.noun|verbNoun on the command line to prevent name collisions with other plugins.

So that would be:

<plugin>
  <artifact-id>maven-jar-plugin</artifact-id>
  <configuration>
    <forceCreation>false</forceCreation>
  </configuration>
</plugin>

And on the command line it would be

mvn -Djar.forceCreation=false

I've seen all sorts of format for parameters as with everything the format is arbitrary but it would be good to have a standard guideline to follow.

Anyone else have any thoughts?

Jason van Zyl
[EMAIL PROTECTED]




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to