[ 
http://jira.codehaus.org/browse/MOJO-1524?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Olivier Lamy closed MOJO-1524.
------------------------------

       Resolution: Duplicate
    Fix Version/s: buildnumber-maven-plugin-1.0-beta-5
         Assignee: Olivier Lamy

> getting scm branch name makes revisionOnScmFailure useless
> ----------------------------------------------------------
>
>                 Key: MOJO-1524
>                 URL: http://jira.codehaus.org/browse/MOJO-1524
>             Project: Mojo
>          Issue Type: Bug
>          Components: buildnumber
>    Affects Versions: buildnumber-maven-plugin-1.0-beta-4
>         Environment: Linux
>            Reporter: Cameron Dale
>            Assignee: Olivier Lamy
>             Fix For: buildnumber-maven-plugin-1.0-beta-5
>
>
> The fix for [http://jira.codehaus.org/browse/MOJO-1379] has caused the 
> revisionOnScmFailure property to be useless for this plugin.
> Before, I could set revisionOnScmFailure to an integer and build my project 
> that uses the buildnumber plugin in an exported (non-scm) directory.
> Since 1.0-beta-4 it now also tries to find the branch of the currect scm 
> checkout, which fails in my non-scm directory, and there isn't a property to 
> tell it to ignore that error.
> I suggest ignoring failures in getting the branch name, or adding a property 
> to indicate the plugin should ignore getting the branch name.
> Here is the output of mvn -e showing the error:
> {code}
> [INFO] [buildnumber:create {execution: default}]
> [INFO] Change the default 'svn' provider implementation to 'javasvn'.
> [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 1 :
> Exception while executing SCM command.
> [INFO] Storing buildNumber: 1 at timestamp: 1271795687483
> [INFO] 
> ------------------------------------------------------------------------
> [ERROR] BUILD ERROR
> [INFO] 
> ------------------------------------------------------------------------
> [INFO] Cannot get the branch information from the scm repository :
> Exception while executing SCM command.
> svn: '/home/camrdale/projects/export' is not a working copy
> [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:583)
>         at 
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:499)
>         at 
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:478)
>         at 
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:330)
>         at 
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:291)
>         at 
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:142)
>         at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:336)
>         at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:129)
>         at org.apache.maven.cli.MavenCli.main(MavenCli.java:287)
>         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:375)
> 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:451)
>         at 
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:558)
>         ... 16 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)
>         ... 19 more
> Caused by: org.apache.maven.scm.ScmException: svn: 
> '/home/cdale/projects/NWEA/messaging_app/remote_messaging_ear' is not a 
> working copy
>         at 
> org.apache.maven.scm.provider.svn.svnjava.command.info.SvnJavaInfoCommand.executeSingleInfoCommand(SvnJavaInfoCommand.java:108)
>         at 
> org.apache.maven.scm.provider.svn.svnjava.command.info.SvnJavaInfoCommand.executeInfoCommand(SvnJavaInfoCommand.java:75)
>         at 
> org.apache.maven.scm.provider.svn.svnjava.command.info.SvnJavaInfoCommand.executeCommand(SvnJavaInfoCommand.java:52)
>         at 
> org.apache.maven.scm.command.AbstractCommand.execute(AbstractCommand.java:59)
>         ... 23 more
> Caused by: org.tmatesoft.svn.core.SVNException: svn: 
> '/home/cdale/projects/NWEA/messaging_app/remote_messaging_ear' is not a 
> working copy
>         at 
> org.tmatesoft.svn.core.internal.wc.SVNErrorManager.error(SVNErrorManager.java:64)
>         at 
> org.tmatesoft.svn.core.internal.wc.admin.SVNWCAccess.probeOpen(SVNWCAccess.java:305)
>         at 
> org.tmatesoft.svn.core.internal.wc.admin.SVNWCAccess.probeOpen(SVNWCAccess.java:284)
>         at 
> org.tmatesoft.svn.core.wc.SVNWCClient.crawlEntries(SVNWCClient.java:3275)
>         at org.tmatesoft.svn.core.wc.SVNWCClient.doInfo(SVNWCClient.java:2495)
>         at org.tmatesoft.svn.core.wc.SVNWCClient.doInfo(SVNWCClient.java:2871)
>         at 
> org.apache.maven.scm.provider.svn.svnjava.command.info.SvnJavaInfoCommand.executeSingleInfoCommand(SvnJavaInfoCommand.java:92)
>         ... 26 more
> {code}

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
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