Pete,

Unfortunately, the sourcecode belongs to my employer so I won't be able to
send it to you :( However, the Mojo is really simple. What you need to do is
to define a member variable of type Artifact (see my previous post) and then
you can access the version, etc. by invoking some methods on that object.
Mojo is a regular Java class which conforms to some conventions (there are
many tutorials on how to write a Mojo - check Maven Website). You don't need
to worry about the descriptor as it will be generated automatically. As far
as accessing the version from a property file check my previous post - you
"may" be able to do it via ${project.artifact.version}.

Lukasz

-- 
View this message in context: 
http://www.nabble.com/Accessing-the-build-number-tf1908562.html#a5378046
Sent from the Maven - Users forum at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to