[p4] Perforce with Maven

Silgi, Nir nsilgi at shopping.com
Thu Feb 8 07:20:40 PST 2007


Hi,

 

I know the Maven mailing list is maybe better place to post this (and I
will), but some extra mind power can't do any harm.

 

I'm trying to use Maven for the build process and I'm having a problem
checking in file(s) from within the release plugin in the
release:prepare stage.

Basically Maven throws an error "Unable to commit files" when it tries
to check in the pom.xml. Provider message is "unable to submit" and the
command output empty.

 

The scm in the pom.xml is configured as following:

 

<scm>

 
<connection>scm|perforce|perforce.xxx:1666|//DEPOT_PATH_TO_PROJECT/...</
connection> 

 
<developerConnection>scm|perforce|perforce.xxx:1666|//DEPOT_PATH_TO_PROJ
ECT/...</developerConnection>

  </scm>

 

The checkout of the pom.xml is successful.

 

 

Alternately when I run mnv scm:checkin I'm getting an error too: Cannot
run checkin command, Embedded error: Exception while executing SCM
command.

 

 

Here's the output of release:prepare

[INFO] Checking in modified POMs...

[INFO]
------------------------------------------------------------------------

[ERROR] BUILD FAILURE

[INFO]
------------------------------------------------------------------------

[INFO] Unable to commit files

Provider message:

Unable to submit

Command output:

 

[INFO]
------------------------------------------------------------------------

[INFO] Trace

org.apache.maven.BuildFailureException: Unable to commit files

Provider message:

Unable to submit

Command output:

 

        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Default
LifecycleExecutor.java:555)

        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoa
l(DefaultLifecycleExecutor.java:488)

        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultL
ifecycleExecutor.java:458)

        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandle
Failures(DefaultLifecycleExecutor.java:306)

        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(
DefaultLifecycleExecutor.java:219)

        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifec
ycleExecutor.java:140)

        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:256)

        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.MojoFailureException: Unable to
commit files

Provider message:

Unable to submit

Command output:

 

        at
org.apache.maven.plugins.release.PrepareReleaseMojo.execute(PrepareRelea
seMojo.java:114)

        at
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginMa
nager.java:412)

        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Default
LifecycleExecutor.java:534)

        ... 16 more

 

 

 

Any help is greatly appreciated.

 

Thanks,

NirS



 
<http://775146.sigclick.mailinfo.com/sigclick/01060000/05044E00/07054902
/16151122.jpg>  


More information about the perforce-user mailing list