You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Paul Hepworth <Pa...@detica.com> on 2006/03/03 12:52:07 UTC

release:prepare with Perforce

Hi
 
I'm trying to the the release plugin to work with my project, and have
the following set up in my pom:
 
    <scm>
 
<connection>scm:perforce:username@server:1666://depot/myproj</connection
>
 
<developerConnection>scm:perforce:username@server:1666://depot/myproj</d
eveloperConnection>
    </scm>
 
When I run mvn scm:update, it works fine and does a sync to head.
 
However, when I run mvn release:prepare, I get the error at the end of
this message.
 
Anyone else managed to get this working??
Cheers
Paul
 
 
 
[DEBUG] Configuring mojo
'org.apache.maven.plugins:maven-release-plugin:2.0-beta-3:prepare' -->
[DEBUG]   (f) basedir = C:\project\project
[DEBUG]   (f) generateReleasePoms = false
[DEBUG]   (f) interactive = true
[DEBUG]   (f) localRepository = [local] -> file://C:\Documents
<file://C:\Documents>  and Settings\pjhepworth\.m2\repository
[DEBUG]   (f) reactorProjects =
[org.apache.maven.project.MavenProject@7a8fa18c,
org.apache.maven.project.MavenProject@5b1356c4
<ma...@5b1356c4> ,
org.apache.maven.project.MavenProject@278810bd
<ma...@278810bd> ,
org.apache.maven.project.MavenProject@71c72402
<ma...@71c72402> ,
org.apache.maven.project.MavenProject@69db5cf8
<ma...@69db5cf8> ]
[DEBUG]   (f) resume = true
[DEBUG]   (f) settings = org.apache.maven.settings.Settings@f18e8e
<ma...@f18e8e> 
[DEBUG]   (f) tagBase = ../tags
[DEBUG]   (f) urlScm =
scm:perforce:pjhepworth@server:1666://depot/myproj
[DEBUG] -- end configuration --
[INFO] [release:prepare]
[INFO] Verifying there are no local modifications ...
[INFO]
------------------------------------------------------------------------
----
[ERROR] BUILD ERROR
[INFO]
------------------------------------------------------------------------
----
[INFO] An error is occurred in the status process.
 
Embedded error: Can't load the scm provider.
No such provider: 'perforce'.
[INFO]
------------------------------------------------------------------------
----
[DEBUG] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: An error is
occurred in the status process.
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Default
LifecycleExecutor.java:556)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoa
l(DefaultLifecycleExecutor.java:485)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultL
ifecycleExecutor.java:455)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandle
Failures(DefaultLifecycleExecutor.java:303)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(
DefaultLifecycleExecutor.java:216)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifec
ycleExecutor.java:139)
        at
org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:249)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
a:39)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Impl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        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: An error is
occurred in the status process.
        at
org.apache.maven.plugins.release.PrepareReleaseMojo.checkForLocalModific
ations(PrepareReleaseMojo.java:514)
        at
org.apache.maven.plugins.release.PrepareReleaseMojo.execute(PrepareRelea
seMojo.java:201)
        at
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginMa
nager.java:415)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Default
LifecycleExecutor.java:531)
        ... 16 more
Caused by: org.apache.maven.scm.ScmException: Can't load the scm
provider.
        at
org.apache.maven.plugins.release.helpers.ScmHelper.getScmRepository(ScmH
elper.java:104)
        at
org.apache.maven.plugins.release.helpers.ScmHelper.getStatus(ScmHelper.j
ava:169)
        at
org.apache.maven.plugins.release.PrepareReleaseMojo.checkForLocalModific
ations(PrepareReleaseMojo.java:510)
        ... 19 more



This message should be regarded as confidential. If you have received this email in error please notify the sender and destroy it immediately.
Statements of intent shall only become binding when confirmed in hard copy by an authorised signatory.  The contents of this email may relate to dealings with other companies within the Detica Group plc group of companies.

Detica Limited is registered in England under No: 1337451.

Registered offices: Surrey Research Park, Guildford, Surrey, GU2 7YP, England.



Re: release:prepare with Perforce

Posted by Emmanuel Venisse <em...@venisse.net>.
Perforce isn't supported by actual release version of release plugin. You can build it from svn.

Emmanuel

Paul Hepworth a écrit :
> Hi
>  
> I'm trying to the the release plugin to work with my project, and have
> the following set up in my pom:
>  
>     <scm>
>  
> <connection>scm:perforce:username@server:1666://depot/myproj</connection
> 
>  
> <developerConnection>scm:perforce:username@server:1666://depot/myproj</d
> eveloperConnection>
>     </scm>
>  
> When I run mvn scm:update, it works fine and does a sync to head.
>  
> However, when I run mvn release:prepare, I get the error at the end of
> this message.
>  
> Anyone else managed to get this working??
> Cheers
> Paul
>  
>  
>  
> [DEBUG] Configuring mojo
> 'org.apache.maven.plugins:maven-release-plugin:2.0-beta-3:prepare' -->
> [DEBUG]   (f) basedir = C:\project\project
> [DEBUG]   (f) generateReleasePoms = false
> [DEBUG]   (f) interactive = true
> [DEBUG]   (f) localRepository = [local] -> file://C:\Documents
> <file://C:\Documents>  and Settings\pjhepworth\.m2\repository
> [DEBUG]   (f) reactorProjects =
> [org.apache.maven.project.MavenProject@7a8fa18c,
> org.apache.maven.project.MavenProject@5b1356c4
> <ma...@5b1356c4> ,
> org.apache.maven.project.MavenProject@278810bd
> <ma...@278810bd> ,
> org.apache.maven.project.MavenProject@71c72402
> <ma...@71c72402> ,
> org.apache.maven.project.MavenProject@69db5cf8
> <ma...@69db5cf8> ]
> [DEBUG]   (f) resume = true
> [DEBUG]   (f) settings = org.apache.maven.settings.Settings@f18e8e
> <ma...@f18e8e> 
> [DEBUG]   (f) tagBase = ../tags
> [DEBUG]   (f) urlScm =
> scm:perforce:pjhepworth@server:1666://depot/myproj
> [DEBUG] -- end configuration --
> [INFO] [release:prepare]
> [INFO] Verifying there are no local modifications ...
> [INFO]
> ------------------------------------------------------------------------
> ----
> [ERROR] BUILD ERROR
> [INFO]
> ------------------------------------------------------------------------
> ----
> [INFO] An error is occurred in the status process.
>  
> Embedded error: Can't load the scm provider.
> No such provider: 'perforce'.
> [INFO]
> ------------------------------------------------------------------------
> ----
> [DEBUG] Trace
> org.apache.maven.lifecycle.LifecycleExecutionException: An error is
> occurred in the status process.
>         at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Default
> LifecycleExecutor.java:556)
>         at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoa
> l(DefaultLifecycleExecutor.java:485)
>         at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultL
> ifecycleExecutor.java:455)
>         at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandle
> Failures(DefaultLifecycleExecutor.java:303)
>         at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(
> DefaultLifecycleExecutor.java:216)
>         at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifec
> ycleExecutor.java:139)
>         at
> org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322)
>         at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115)
>         at org.apache.maven.cli.MavenCli.main(MavenCli.java:249)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
> a:39)
>         at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
> Impl.java:25)
>         at java.lang.reflect.Method.invoke(Method.java:585)
>         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: An error is
> occurred in the status process.
>         at
> org.apache.maven.plugins.release.PrepareReleaseMojo.checkForLocalModific
> ations(PrepareReleaseMojo.java:514)
>         at
> org.apache.maven.plugins.release.PrepareReleaseMojo.execute(PrepareRelea
> seMojo.java:201)
>         at
> org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginMa
> nager.java:415)
>         at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Default
> LifecycleExecutor.java:531)
>         ... 16 more
> Caused by: org.apache.maven.scm.ScmException: Can't load the scm
> provider.
>         at
> org.apache.maven.plugins.release.helpers.ScmHelper.getScmRepository(ScmH
> elper.java:104)
>         at
> org.apache.maven.plugins.release.helpers.ScmHelper.getStatus(ScmHelper.j
> ava:169)
>         at
> org.apache.maven.plugins.release.PrepareReleaseMojo.checkForLocalModific
> ations(PrepareReleaseMojo.java:510)
>         ... 19 more
> 
> 
> 
> This message should be regarded as confidential. If you have received this email in error please notify the sender and destroy it immediately.
> Statements of intent shall only become binding when confirmed in hard copy by an authorised signatory.  The contents of this email may relate to dealings with other companies within the Detica Group plc group of companies.
> 
> Detica Limited is registered in England under No: 1337451.
> 
> Registered offices: Surrey Research Park, Guildford, Surrey, GU2 7YP, England.
> 
> 
> 


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