On Fri, Dec 19, 2008 at 10:43 AM, aymen83 <[email protected]> wrote:
>
> hi
>
> i've been searching for a way to override the version of an Artifact using
> profiles, is that possible?
> the idea is to change the version of framework when compiling a project, for
> instance, the project is compiled using spring 2.5 and i want to write a
> profile to compile it with the version 2.0

You will need two profiles, one for version 2.5 (make it active by
default) and one for version 2.0. Within the profiles, you can either
declare the the whole dependency or just a property with the version
number.

In the particular case from spring 2.0 to spring 2.5 it may be
slightly more complicated because the packaging into spring modules
was changed between the versions. This means you may need other
dependencies unless you use the full spring.jar.

- Henry

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

Reply via email to