It is possible to change build output directory during the build. E.g.
cobertura-maven-plugin and emma-maven-plugin both have instrument goal
which as side-effect changes build output directory with something
like

project.getBuild().setOutputDirectory( %some_path% );

where project is reference to MavenProject being built.

They do that, but do not support configuration option to disable that
behavior. Configuring build path in pom.xml won't help.

Regards,
Stevo.

On Thu, Mar 10, 2011 at 10:49 AM, Anders Hammar <[email protected]> wrote:
> Don't think that is possible to do during the build. Why not just change it
> in the pom?
>
> /Anders
>
> On Thu, Mar 10, 2011 at 10:29, Stevo Slavić <[email protected]> wrote:
>
>> Hello Maven users,
>>
>> Is there a plugin with a goal for changing build output directory?
>>
>> Regards,
>> Stevo.
>>
>> ---------------------------------------------------------------------
>> 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