You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Raghurajan Gurunathan <RG...@intralinks.com> on 2007/05/23 05:14:05 UTC

maven2, buildNumber

Hi

All i'm trying to maven-build number in assembly 

like when i create project.zip file from assembly:assembly goal i want to 
append a buildNumber from maven-buildnumber-plugin

my jar files getting created fine like project.jar_r100

but in my zip file the {buildNumber}value is not being replaced
 
   <plugin>
                <groupId>org.codehaus.mojo</groupId>
                <artifactId>maven-buildnumber-plugin</artifactId>
                <version>0.9.4</version>
                <executions>
                        <execution>
                                <phase>validate</phase> 
                                <goals>
                                        <goal>create</goal>
                                </goals>
                        </execution>
                </executions>
                <configuration>
                        <doCheck>true</doCheck>
                        <doUpdate>true</doUpdate>
                          <format>{0,number}</format>
                          <items>
                            <item>buildNumber0</item>
                          </items>
                </configuration>
 <plugin>
        <artifactId>maven-assembly-plugin</artifactId>
        <configuration>
        <finalName>project_r{buildNumber}</finalName>
               <descriptors>
            <descriptor>assembly.xml</descriptor>
          </descriptors>
        </configuration>
      </plugin>


so in this the final output zip file has name like project_r{buildNumber}, 
even though build numbers are getting created.

Please help
Thanks,
Raghu | 
Disclaimer: This electronic mail and any attachments are confidential and may be privileged. If you are not the intended recipient, please notify the sender immediately by replying to this email, and destroy all copies of this email and any attachments. Thank you.

Re: maven2, buildNumber

Posted by Raghurajan Gurunathan <RG...@intralinks.com>.
i'm sorry in my previous main i mentioned it has wrong 
project_r${buildNumber}, thats how i'm using it

its a typo in my previous email


Thanks,
Raghu |
 



"Wendy Smoak" <ws...@gmail.com> 
05/22/2007 11:16 PM
Please respond to
"Maven Users List" <us...@maven.apache.org>


To
"Maven Users List" <us...@maven.apache.org>
cc

Subject
Re: maven2, buildNumber






On 5/22/07, Raghurajan Gurunathan <RG...@intralinks.com> wrote:

> but in my zip file the {buildNumber}value is not being replaced

Try either $buildNumber or ${buildNumber} instead.

-- 
Wendy

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org



Disclaimer: This electronic mail and any attachments are confidential and may be privileged. If you are not the intended recipient, please notify the sender immediately by replying to this email, and destroy all copies of this email and any attachments. Thank you.

Re: maven2, buildNumber

Posted by Wendy Smoak <ws...@gmail.com>.
On 5/22/07, Raghurajan Gurunathan <RG...@intralinks.com> wrote:

> but in my zip file the {buildNumber}value is not being replaced

Try either $buildNumber or ${buildNumber} instead.

-- 
Wendy

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org