You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by tec-goblin <ni...@gmail.com> on 2007/11/19 12:48:33 UTC

Re: Re : Build number and current date

Same problem here. Configured scm but we get the same error:
Cannot get the revision information from the scm repository : 
Can't load the scm provider.

The scm url cannot be null.

If we remove the plugin from the pom, everything works ok. 
Time to look at it, isn'it? ;-)


oups !

I tried to add this to the pom :

<build>
.....
    <plugins>
    <!--
     The Maven Build Number plugin 
     for how to use it look in
http://commons.ucalgary.ca/projects/maven-buildnumber-plugin/howto.html
    -->
        <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>
          </configuration>
        </plugin>
    </plugins>
  </build>
...
<pluginRepositories>
....
    <!-- A repository for the Build Number Plugin (not yet accepted in
codehaus :-)) -->
    <pluginRepository>
        <id>tlc</id>
        <name>TLC Repository</name>
        http://commons.ucalgary.ca/pub/m2
    </pluginRepository>
  </pluginRepositories>

but unfortunately : here's the log !

[DEBUG]   Artifact resolved
[DEBUG] Configuring mojo
'org.codehaus.mojo:maven-buildnumber-plugin:0.9.4:create' -->
[DEBUG]   (s) basedir = C:\works\workspaceM2\TutelecOJV-v1.3
[DEBUG]   (s) doCheck = true
[DEBUG]   (s) doUpdate = true
[DEBUG]   (f) project = org.apache.maven.project.MavenProject@b808882c
[DEBUG] -- end configuration --
[INFO] [buildnumber:create {execution: default}]
[INFO] Verifying there are no local modifications ...
[INFO]
------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO]
------------------------------------------------------------------------
[INFO] An error has occurred while checking scm status.

Embedded error: Can't load the scm provider.
The scm url cannot be null.
-- 
View this message in context: http://www.nabble.com/Re-%3A-Build-number-and-current-date-tf3653099s177.html#a13834427
Sent from the Maven - Users mailing list archive at Nabble.com.


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


Re: Re : Build number and current date

Posted by Julian Wood <wo...@ucalgary.ca>.
What does your scm tag look like? It needs an svn config at the  
moment, or else you need to configure it to use a sequential number  
(or something else) if you don't use svn. Or if you use cvs or  
something else, you could contribute the code.

The project is housed at the codehaus now:

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

             <plugin>
                 <groupId>org.codehaus.mojo</groupId>
                 <artifactId>buildnumber-maven-plugin</artifactId>
                 <version>1.0-beta-1</version>
             </plugin>

     <pluginRepositories>
         <pluginRepository>
             <id>mojo</id>
             <name>Codehaus</name>
             <url>http://repository.codehaus.org</url>
         </pluginRepository>
     </pluginRepositories>

J


On 19-Nov-07, at 4:48 AM, tec-goblin wrote:

>
> Same problem here. Configured scm but we get the same error:
> Cannot get the revision information from the scm repository :
> Can't load the scm provider.
>
> The scm url cannot be null.
>
> If we remove the plugin from the pom, everything works ok.
> Time to look at it, isn'it? ;-)
>
>
> oups !
>
> I tried to add this to the pom :
>
> <build>
> .....
>     <plugins>
>     <!--
>      The Maven Build Number plugin
>      for how to use it look in
> http://commons.ucalgary.ca/projects/maven-buildnumber-plugin/ 
> howto.html
>     -->
>         <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>
>           </configuration>
>         </plugin>
>     </plugins>
>   </build>
> ...
> <pluginRepositories>
> ....
>     <!-- A repository for the Build Number Plugin (not yet accepted in
> codehaus :-)) -->
>     <pluginRepository>
>         <id>tlc</id>
>         <name>TLC Repository</name>
>         http://commons.ucalgary.ca/pub/m2
>     </pluginRepository>
>   </pluginRepositories>
>
> but unfortunately : here's the log !
>
> [DEBUG]   Artifact resolved
> [DEBUG] Configuring mojo
> 'org.codehaus.mojo:maven-buildnumber-plugin:0.9.4:create' -->
> [DEBUG]   (s) basedir = C:\works\workspaceM2\TutelecOJV-v1.3
> [DEBUG]   (s) doCheck = true
> [DEBUG]   (s) doUpdate = true
> [DEBUG]   (f) project = org.apache.maven.project.MavenProject@b808882c
> [DEBUG] -- end configuration --
> [INFO] [buildnumber:create {execution: default}]
> [INFO] Verifying there are no local modifications ...
> [INFO]
> ---------------------------------------------------------------------- 
> --
> [ERROR] BUILD ERROR
> [INFO]
> ---------------------------------------------------------------------- 
> --
> [INFO] An error has occurred while checking scm status.
>
> Embedded error: Can't load the scm provider.
> The scm url cannot be null.
> -- 
> View this message in context: http://www.nabble.com/Re-%3A-Build- 
> number-and-current-date-tf3653099s177.html#a13834427
> Sent from the Maven - Users mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>

--
Julian Wood
Web, E-Mail, and Middleware Services
University of Calgary Information Technologies,
2500 University Drive, Calgary, Alberta, Canada T2N 1N4
(403) 220-5868