[ 
https://jira.codehaus.org/browse/MBUILDNUM-75?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=280994#comment-280994
 ] 

Robert Scholte commented on MBUILDNUM-75:
-----------------------------------------

One of the most important lines here is:
[INFO] [buildnumber:create {execution: default}]

As mentioned on the [first page of this 
plugin|http://mojo.codehaus.org/buildnumber-maven-plugin/], Bazaar is not 
supported(yet).


> ClassCastException in CreateMojo.getScmBranch
> ---------------------------------------------
>
>                 Key: MBUILDNUM-75
>                 URL: https://jira.codehaus.org/browse/MBUILDNUM-75
>             Project: Mojo Build Number Maven Plugin
>          Issue Type: Bug
>         Environment: Has reproed with different OSes and JVMs, but I'm on 
> Debian Testing with Java 1.6.0_16-b01.
> I have bzr installed (http://bazaar.canonical.com) in my $PATH, don't know 
> whether that's necessary to repro.
>            Reporter: Johan Walles
>            Priority: Critical
>         Attachments: repro.tar.gz
>
>
> 1. Unpack the attached repro case.
> 2. "cd trunk"
> 3. "mvn -e package"
> h1. Current results:
> {noformat}
> + Error stacktraces are turned on.
> [INFO] Scanning for projects...
> [INFO] 
> ------------------------------------------------------------------------
> [INFO] Building ExpectJ
> [INFO]    task-segment: [package]
> [INFO] 
> ------------------------------------------------------------------------
> [INFO] [buildnumber:create {execution: default}]
> [INFO] Checking for local modifications: skipped.
> [INFO] Updating project files from SCM: skipped.
> [WARNING] Cannot get the revision information from the scm repository, 
> proceeding with revision of MOJO1300 : 
> Exception while executing SCM command.
> [INFO] Storing buildNumber: MOJO1300 at timestamp: 1262108284237
> [INFO] 
> ------------------------------------------------------------------------
> [ERROR] BUILD ERROR
> [INFO] 
> ------------------------------------------------------------------------
> [INFO] Cannot get the branch information from the scm repository : 
> Exception while executing SCM command.
> org.apache.maven.scm.provider.bazaar.repository.BazaarScmProviderRepository
> [INFO] 
> ------------------------------------------------------------------------
> [INFO] Trace
> org.apache.maven.lifecycle.LifecycleExecutionException: Cannot get the branch 
> information from the scm repository : 
> Exception while executing SCM command.
>       at 
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:719)
>       at 
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:556)
>       at 
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:535)
>       at 
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387)
>       at 
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348)
>       at 
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:181)
>       at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)
>       at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
>       at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
>       at 
> org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)
>       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>       at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>       at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>       at java.lang.reflect.Method.invoke(Method.java:597)
>       at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
>       at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
>       at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
>       at org.codehaus.classworlds.Launcher.main(Launcher.java:376)
> Caused by: org.apache.maven.plugin.MojoExecutionException: Cannot get the 
> branch information from the scm repository : 
> Exception while executing SCM command.
>       at org.codehaus.mojo.build.CreateMojo.getScmBranch(CreateMojo.java:606)
>       at org.codehaus.mojo.build.CreateMojo.execute(CreateMojo.java:452)
>       at 
> org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490)
>       at 
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694)
>       ... 17 more
> Caused by: org.apache.maven.scm.ScmException: Exception while executing SCM 
> command.
>       at 
> org.apache.maven.scm.command.AbstractCommand.execute(AbstractCommand.java:63)
>       at 
> org.apache.maven.scm.provider.svn.AbstractSvnScmProvider.executeCommand(AbstractSvnScmProvider.java:354)
>       at 
> org.apache.maven.scm.provider.svn.AbstractSvnScmProvider.info(AbstractSvnScmProvider.java:375)
>       at org.codehaus.mojo.build.CreateMojo.info(CreateMojo.java:694)
>       at org.codehaus.mojo.build.CreateMojo.getScmBranch(CreateMojo.java:594)
>       ... 20 more
> Caused by: java.lang.ClassCastException: 
> org.apache.maven.scm.provider.bazaar.repository.BazaarScmProviderRepository
>       at 
> org.apache.maven.scm.provider.svn.svnexe.command.info.SvnInfoCommand.executeCommand(SvnInfoCommand.java:54)
>       at 
> org.apache.maven.scm.command.AbstractCommand.execute(AbstractCommand.java:59)
>       ... 24 more
> [INFO] 
> ------------------------------------------------------------------------
> [INFO] Total time: 2 seconds
> [INFO] Finished at: Tue Dec 29 18:38:04 CET 2009
> [INFO] Final Memory: 28M/64M
> [INFO] 
> ------------------------------------------------------------------------
> {noformat}
> h1. Expected result:
> A jar file in the target/ directory.
> h1. Notes:
> This worked fine until I did "mvn -U package" just now.  Don't know when I 
> did -U last, but it could have been half a year ago.
> Priority Critical since this is a crash:
> http://jira.codehaus.org/secure/ShowConstantsHelp.jspa?decorator=popup#PriorityLevels

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to