<execution>
<phase>*compile*</phase>
<goals>
<goal>create</goal>
</goals>
</execution>
You mean to say I should do as above for hte mojo? I tried even that. but
you know what the mojo never runs unless u reun it explicitly as
*mvn buildnumber:create install*
*So the problem still remains: How do I make my install goal, aware of the
build number plugin?*
On 5/7/08, Wayne Fay <[EMAIL PROTECTED]> wrote:
>
> You need to bind the execution of the buildnumber:create mojo to a
> Maven phase prior to install, eg compile.
>
> Wayne
>
> On Tue, May 6, 2008 at 3:08 AM, Niranjan Deshpande
> <[EMAIL PROTECTED]> wrote:
> > Hi all
> >
> > I am using the buildnumber plugin in my pom. details of the plugin are
> here
> > http://mojo.codehaus.org/buildnumber-maven-plugin/index.html
> > http://www.mail-archive.com/[email protected]/msg60497.html
> >
> > I have configured the plugin under the
> > <build>
> > <pluginManagement> tags
> > While taing the build i run this command:
> >
> > *mvn buildnumber:create install*
> >
> > The war file generated has name application_Name-Build-r2008-05-05.war
> > This name is a result of the finalName tag, in the POM:
> >
> > *
>
> >
> > <finalName>${project.artifactId}-${project.version}-r${buildNumber}</finalName>
> > *
> >
> > But when I run
> >
> > *mvn install*
> > **
> > war file that is added to the maven local repository is
> > application_Name-Build.war, without the timestamp.
> > This is recult of the version tag in the POM
> > <version>Build</version>
> > 1.How do i make the intall task, aware of the plugin, and make it run
> only
> > after the plugin has been executed.
> > 2. During war creation, build is tagged using the finalName element,
> but
> > during installation, its tagged using the version element.
> > I want it to be tagged using the finalName element in both cases. Is
> htere a
> > way to do so?
> >
> > Please help me.
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
--
Regards,
Niranjan Deshpande
"Shut yourself from the world and create the reality you want"