Hi, I'm a ClearCase user. I was trying to cut a release by Maven. First, I executed mvn release:prepare. It worked well, the POM file was updated and checked in. Then I executed mvn release:perform and got error:
[INFO] Scanning for projects... [INFO] Searching repository for plugin with prefix: 'release'. [INFO] ---------------------------------------------------------------------------- [INFO] Building mavenstudy [INFO] task-segment: [release:perform] (aggregator-style) [INFO] ---------------------------------------------------------------------------- [INFO] [release:perform] [INFO] Checking out the project to perform the release ... [INFO] Executing: C:\ccwork\elizlia_sandbox1\ctsncrashnburn\exercise\users\elizlia\mavenstudy\target>>cleartool mkview - snapshot -tag elizlia-E0019BBE35846-maven-checkout -vws \\E0019BBE35846\ClearCase_Storage\elizlia-E0019BBE35846-maven-ch eckout.vws C:\ccwork\elizlia_sandbox1\ctsncrashnburn\exercise\users\elizlia\mavenstudy\target\checkout [ERROR] The cleartool command failed. [INFO] ------------------------------------------------------------------------ [ERROR] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Unable to checkout from SCM Provider message: The cleartool command failed. Command output: cleartool: Error: A view cannot be created under another view's storage directory or snapshot view storage directory. [INFO] ------------------------------------------------------------------------ [INFO] For more information, run Maven with the -e switch [INFO] ------------------------------------------------------------------------ [INFO] Total time: 4 seconds [INFO] Finished at: Thu Jul 12 11:43:21 CST 2007 [INFO] Final Memory: 4M/8M [INFO] ------------------------------------------------------------------------ I found that the error was because maven wanted to make view under C:\ccwork\elizlia_sandbox1\ctsncrashnburn\exercise\users\elizlia\mavenstudy\target\checkout, which is in the current view. I tried to change the working directory by executing mvn release:perform -DworkingDirectory=\ccwork But it didn't work and I got the same error. The workingDirectory wasn't changed. So, how can I change the workingDirectory (or check out directory) for release:perform? -- ----------------------------------------------------------------------------------------- Leo Liang E-mail: [EMAIL PROTECTED] Blog (tech & learning): http://aleung.blogbus.com Blog (photography & outdoor): http://sunnyday.cn2k.net Delicious bookmark: http://del.icio.us/aleung ----------------------------------------------------------------------------------------- --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
