On 6/14/07, Steven Rowe <[EMAIL PROTECTED]> wrote:
Hi Libor, Libor Kramoliš wrote: > Is it possible to make some properties hook to enhance set of > properties after pom reading and before starting of first goal > execution of any lifecycle/phase? You could take a look at the source for the properties-maven-plugin, which injects properties read from files: <http://arsenalist.com/2007/02/07/maven-properties-plugin-download/> If you bind this (or rahter your version of it) to an early phase, say, "initialize", it should achieve the desired effect. As far as version string parsing, this has to be implemented somewhere in the Maven source code, since Maven has to do version comparisons all the time. Anybody know in what source module Maven does this kind of decomposition?
"org.apache.maven.artifact.versioning.DefaultArtifactVersion" (within project org.apache.maven:maven-artifact) constructor takes a string and parses into major, minor, incremental, build number and qualifier. Eric Steve
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
-- Eric Redmond http://www.sonatype.com