Hi,

I heard that there is a plugin for creating time stamp.

But when I try to use it based on these instructions:

http://mojo.codehaus.org/buildnumber-maven-plugin/usage.html

And configured the plug in to be: 

 <plugin>
                        <groupId>org.codehaus.mojo</groupId>
                        <artifactId>buildnumber-maven-plugin</artifactId>
                        <version>1.0-beta-2</version>
                        <executions>
                          <execution>
                                <phase>validate</phase>
                                <goals>
                                  <goal>create</goal>
                                </goals>
                          </execution>
                        </executions>
                        <configuration>
                          <doCheck>true</doCheck>
                          <doUpdate>true</doUpdate>
                         
                         <format>{0,date,yyyy-MM-dd HH:mm:ss}</format>
                          <items>
                                <item>timestamp</item>
                          </items> 

                        </configuration>
                  </plugin>

But I run mvn buildnumber:create package I receive: 

[INFO]
------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO]
------------------------------------------------------------------------
[INFO] Cannot get the revision information from the scm repository :
Exception while executing SCM command.

org.apache.maven.scm.provider.perforce.repository.PerforceScmProviderRepository
cannot be cast to
org.apache.maven.scm.provider.svn.repository.SvnScmProviderRepository

-- 
View this message in context: 
http://www.nabble.com/Problem-with-generating-the-time-stamp-tp22601437p22601437.html
Sent from the Maven - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to