Re: Lifecycle phase in which the url for distributionManagement/snapshotRepository is calculated

2012-04-30 Thread Mirko Friedenhagen
Hello Olivier, I assume I have to create the properties in afterSessionStart as afterProjectsRead will be to late again? Regards Mirko On Sun, Apr 29, 2012 at 21:22, Olivier Lamy ol...@apache.org wrote: Yup you can add properties to project.getProperties() But in your case you want to change

Re: Lifecycle phase in which the url for distributionManagement/snapshotRepository is calculated

2012-04-30 Thread Olivier Lamy
Yep but means having your jar locally in your m3 installation. -- Olivier Le 30 avr. 2012 21:03, Mirko Friedenhagen mfriedenha...@gmail.com a écrit : Hello Olivier, I assume I have to create the properties in afterSessionStart as afterProjectsRead will be to late again? Regards Mirko On

Re: Lifecycle phase in which the url for distributionManagement/snapshotRepository is calculated

2012-04-29 Thread Anders Hammar
I think it is resolved even before the build lifecycle starts. /Anders On Sat, Apr 28, 2012 at 22:01, Mirko Friedenhagen mfriedenha...@gmail.com wrote: Hello, I developed a plugin which creates an additional property during the validate phase and want to use it as part of the

Re: Lifecycle phase in which the url for distributionManagement/snapshotRepository is calculated

2012-04-29 Thread Hervé BOUTEMY
yes, property evaluations is done in the model interpolation step of the Maven model build: see [1] for a global view no, no plugin can add any property at any phase, sorry Regards, Hervé [1] http://maven.apache.org/ref/3.0.4/maven-model-builder/ Le dimanche 29 avril 2012 08:36:10 Anders

Re: Lifecycle phase in which the url for distributionManagement/snapshotRepository is calculated

2012-04-29 Thread Mirko Friedenhagen
Hm, so this seems to be true only for some elements of the pom but not plugin configurations. The http://mojo.codehaus.org/buildnumber-maven-plugin/ actually adds buildNumber and uses it in e.g. the maven-jar-plugin to add a field Implementation-Build. Regards Mirko On Sun, Apr 29, 2012 at

Re: Lifecycle phase in which the url for distributionManagement/snapshotRepository is calculated

2012-04-29 Thread Olivier Lamy
Yup you can add properties to project.getProperties() But in your case you want to change distributionManagement urls using properties interpolation mechanism ? but it's too late using a plugin as model has been build. An option you have maybe it's to use maven3 lifecycle extension mechanism: