This might work:

1. Make up a name for a property, like assemblyOutputDirectory, or carrots.are.orange (it doesn't matter what the name is, technically).

2. Configure the assembly plugin (in your pom.xml) to use the value of this property as the outputDirectory.
blah, blah, xml, blah...
     <outputDirectory>${assemblyOutputDirectory}</outputDirectory>

3. Provide a default value for the property in the pom.xml file:
<properties>
<assemblyOutputDirectory>${project.build.directory}</assemblyOutputDirectory>
</properties>

4. Optionally override the default on the command line:
  mvn -DassemblyOutputDirectory=target/skittles install

-Max

[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]


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

Reply via email to