My company's policy is to use a timestamp as the release number for
RPM's.  As you may know, the RPM spec provides for both a version and a
release number.  The RPM mojo allows you to set a release number, but
there's no support for setting it to a timestamp, e.g.
<release>${timestamp}</release>.

Do you think the SCM plugin's build-tagging support would somehow
integrate with the RPM plugin?

Thanks,
Jim

-----Original Message-----
From: Bashar Abdul Jawad [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, February 06, 2007 7:03 PM
To: 'Maven Users List'
Subject: RE: Can I get a timestamp?

The plug-in will allow you to use timestamp tagging to tag your builds.
I am sorry but I don't think you can access the timestamp property
directly in the pom itself. Why do you need to do that anyway?

Bashar

-----Original Message-----
From: Crossley, Jim [mailto:[EMAIL PROTECTED]
Sent: Tuesday, February 06, 2007 4:43 PM
To: Maven Users List
Subject: RE: Can I get a timestamp?

Thanks for the quick reply, but what does that do, exactly?  In which
property does it make the timestamp available?  I tried ${timestamp}
after adding that snippet to my pom, but it was empty.  What am I
missing?

Thanks,
Jim

-----Original Message-----
From: Bashar Abdul Jawad [mailto:[EMAIL PROTECTED]
Sent: Tuesday, February 06, 2007 6:15 PM
To: 'Maven Users List'
Subject: RE: Can I get a timestamp?

You can use maven scm plugin:

<plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-scm-plugin</artifactId>
        <configuration>
                <addTimestamp>true</addTimestamp>
                <tag>build</tag>
<timestampFormat>yyyyMMddHHmm</timestampFormat>
        </configuration>
</plugin>

-----Original Message-----
From: Crossley, Jim [mailto:[EMAIL PROTECTED]
Sent: Tuesday, February 06, 2007 3:57 PM
To: Maven Users List
Subject: Can I get a timestamp?

Do I really have to write an entire plugin just to make a timestamp
available as a maven property?  That's what Google is telling me, but I
wanted to make sure before I went to all that trouble.

Thanks,
Jim

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


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

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


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

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

Reply via email to