More thought leads me toward additional simplification.

I don't see why individual plugins need individual settings of
outputDirectory. If the output is going into the reactor, I think it
should be, by convention, in the project output directory, period.
This is related to Anders' hatred of finalName. Let's start with his
policy, that anyone who so badly wants to mess with naming is welcome
to run antrun.

This would give us, perhaps:

<outputFile/> -- if set, no attachment, and it determines the complete
pathname of the result.
<attach/> -- just like assembly and others, if true, attach. if false,
don't, and default the value of outputFile.
<classifier/> -- only read if attach=true, changes classifier from 'shaded'.
<replacePrimaryArtifact/> -- if true, replaces the primary artifact (boolean)

Eliminating outputDirectory, shadedArtifactId,

This appeals to me because I prefer to make the 'replacement' behavior
very explicit.

On the other hand, it seems as if 'sources' are underspecified. It
would seem to be relevant to have a param to control the classifier of
the created sources jar, since calling it just 'sources' as a
classifier when not replacing the primary artifact doesn't make sense.

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to