The short answer is no. The long answer is that this is a bad idea as it makes the build non-reproducible.
There are similar reasons why a plugin cannot add depedencies to a build in progress. Before any plugin gets to run, Maven parses *all* the pom.xml files, and the dependencies are determined before *any* plugin gets an oportunity to run. One solution you could use is to fork a build with the maven-invoker as that would cause a re-parse in the forked build. -Stephen 2009/3/11 fenix77 <[email protected]> > > Is it possible for a plugin to dynamically update an artifact version? > > I have written the code to make the change, however the project still uses > with the version defined in the pom. Thanks! > > - J > > -- > View this message in context: > http://n2.nabble.com/dynamic-version-modification-tp2464438p2464438.html > Sent from the maven users mailing list archive at Nabble.com. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > >
