Hi,

Could you please first remind us what you're trying to do?
Where would you like to ideally include that buildnumber?

For example, having a line in the MANIFEST with the current svn revision?
Something else?

Cheers


2013/8/1 Gourab Dash <ndd...@gmail.com>

> Hello folks,
> i m getting error using this plugin.
>
> [ERROR] Failed to execute goal
> org.codehaus.mojo:buildnumber-maven-plugin:1.0-beta-4:create (default) on
> project : Execution default of goal
> org.codehaus.mojo:buildnumber-maven-plugin:1.0-beta-4:create failed: The
> scm url cannot be null. -> [Help 1]
>
>
> i m nt using scm in pom.xml and using svn plugin from jenkins.
>
>
>
> the plugin is as follows
>  <plugin>
>       <groupId>org.codehaus.mojo</groupId>
>      <artifactId>buildnumber-maven-plugin</artifactId>
>      <version>1.0-beta-4</version>
>      <executions>
>       <execution>
>        <phase>validate</phase>
>        <goals>
>         <goal>create</goal>
>        </goals>
>       </execution>
>      </executions>
>      <configuration>
>       <doCheck>false</doCheck>
>       <doUpdate>false</doUpdate>
>       <revisionOnScmFailure>true</revisionOnScmFailure>
>         <format>${version}.{0,number}</format>
>       <items>
>        <item>buildNumber</item>
>       </items>
>      </configuration>
>    </plugin>
>
>
>
>
>
>
>
>
>
>
> However if i use the below plugin,it gets successful.but i m nt able to
> get the timestamp printed on the buildNumber.properties.
> the plugin as below
>
> <plugin>
>     <groupId>org.codehaus.mojo</groupId>
>     <artifactId>buildnumber-maven-plugin</artifactId>
>     <version>1.0-beta-3</version>
>  <configuration>
>       <buildNumberPropertyName>buildNumber.value</buildNumberPropertyName>
>       <timestampPropertyName>buildNumber.timestamp</timestampPropertyName>
>
>         <format>{0,number}</format>
>
>            <items>
>             <item>buildNumber</item>
>         <item>timestamp</item>
>       </items>
>     </configuration>
>
>  <executions>
>       <execution>
>         <phase>validate</phase>
>         <goals>
>           <goal>create</goal>
>         </goals>
>       </execution>
>     </executions>
>   </plugin>
>
>
>
>
>
>
> please suggest some  ideas/ ways to get it done.
>
>
>
>
>

Reply via email to