Configuration of environment:
Maven version: 2.0.9
Java version: 1.5.0_11
OS name: "linux" version: "2.6.18-1.2798.fc6" arch: "i386" Family: "unix"
Rational ClearCase Explorer, Version 7.0.1.0
When I run the command mvn release: prepare, the error occurs
[DEBUG] Attached activity:
[INFO]
------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO]
------------------------------------------------------------------------
[INFO] Unable to enable editing on the POM
Provider message:
The cleartool command failed.
Command output:
[INFO]
------------------------------------------------------------------------
[DEBUG] Trace
org.apache.maven.BuildFailureException: Unable to enable editing on the POM
Provider message:
The cleartool command failed.
Command output:
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:579)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:512)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:482)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:330)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:227)
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: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 enable
editing on the POM
Provider message:
The cleartool command failed.
Command output:
at
org.apache.maven.plugins.release.PrepareReleaseMojo.execute(PrepareReleaseMojo.java:144)
at
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:451)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:558)
... 16 more
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 16 seconds
[INFO] Finished at: Wed Mar 18 11:40:54 BRT 2009
[INFO] Final Memory: 11M/22M
[INFO]
------------------------------------------------------------------------
<!-------end error
Remote Debugging with Eclipse (Project Maven) we find that the error is
thrown:
class: "ClearCaseEditCommand.java"
method:
protected ScmResult executeEditCommand( ScmProviderRepository repository,
ScmFileSet fileSet )throws ScmException
{
getLogger().debug( "executing edit command..." );
Commandline cl = createCommandLine( getLogger(), fileSet );
ClearCaseEditConsumer consumer = new ClearCaseEditConsumer(
getLogger() );
CommandLineUtils.StringStreamConsumer stderr = new
CommandLineUtils.StringStreamConsumer();
int exitCode;
try
{
getLogger().debug( "Executing: " +
cl.getWorkingDirectory().getAbsolutePath() + ">>" + cl.toString() );
exitCode = CommandLineUtils.executeCommandLine( cl, consumer,
stderr );
}
catch ( CommandLineException ex )
{
throw new ScmException( "Error while executing clearcase
command.", ex );
}
if ( exitCode != 0 ) <b><-----------error is introduced here because
the value of the exitCode is "141"</b>
{
return new EditScmResult( cl.toString(), "The cleartool command
failed.", stderr.getOutput(), false );
}
return new EditScmResult( cl.toString(), consumer.getEditFiles() );
}
NOTE: In Windows works.
thanks
--
View this message in context:
http://www.nabble.com/-ClearCase-Linux-Unable-to-enable-editing-on-the-POM-tp22583232p22583232.html
Sent from the Maven - SCM mailing list archive at Nabble.com.