There are lots of cases where the plugin will not allow you to
override plugin configuration from command line via -D setting.
http://maven.apache.org/plugins/maven-assembly-plugin/assembly-mojo.html
from that link outputDirectory is set to ${project.build.directory} which is
a element of the POM. You can only override it via
<build>
<directory>something else </directory>
</build>
but you really dont want to do that, normally
So what else can over override using command line,?appendAssemblyId is an
example
-D
On 6/7/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
Hi,
I have been trying to configure the parameters for the assembly plugin and
have not been able to set the outputDirectory parameter when running from
the command line
% mvn -DoutputDirectory=....
I believe that the determination of the value to use is handled by
PluginParameterExpressionEvaluator.evaluate(). The default setting for
the outputDirectory in the Mojo is ${project.build.directory}. The
evaluate() method substitutes the value by using the project/model. Is
there a way to override this from the command line or another way of setting
a property that is given a default value based on project such as
outputDirectory?
Thanks in advance,
Brian
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]