maven+clearcase integration
I am planning to integrate Clearcase UCM(under dynamic view) with Maven. 1) I found that Maven SCM is partially implemented for clearcase. Is there are any still issue with this? what is meaning partailly implemented SCM? 2) How compatable Clearcase with Maven? 3)Any issues or limitation with this 2 tools integration? 4)Maven docs says that it is not possible to use SCM plugin features like creating tags (applying labels), creating Change logs, and so on. 5) where can i find good document to integrate Maven with clearcase?. Apache site have given, but it is not very clear for beginners.
Re: maven - clearcase integration with release:perform
Hi, I've spent quite some time getting the release and the scm plugins to work together with cc, so I'll try to help you. However, could you try to define you problem in more detail? If the problem is the error message you link to, have you really verified that the view doesn't exist in cc? Me myself is no cc expert so I had to ask for help to verify that there very absolutely no traces (registries etc) of the old view. If you remove an old view the correct way, this shouldn't be a problem. But I've had some cases where a view wasn't completely removed. Also, what versions of the release and scm plugins are you using? There were new version released quite recently. Make sure you're using them. Also, you have the possibility to define the name of the cc snapshot view created using the 'connectionUrl' attribute. I.e.: mvn release:perform -DconnectionUrl="scm:clearcase::load //" If I recall correctly, the very latest version of the release plugin is required for this to work. /Anders Regards, /Anders Amit Rajpurkar wrote: > > Hi All, > > I am getting a peculiar problem with running > mvn release:perform > > i have my scm url configured to clearcase snapshotview. > > release:prepare is working successfully and even clearcase is showing the > tag i provide during "prepare" phase. the pom files in my project are > getting updated successfully; so also teh local m2 repository is getting > the latest pom files there. > > I would like to know if there is any solution to this problem. > > Maven clearcase reference also talks of this problem, but it does not > indicate any solution to it: > http://maven.apache.org/scm/clearcase.html > <http://maven.apache.org/scm/clearcase.html> > (cleartool: Error: A registry entry already exists for > "johndoe-mymachine-maven-myproject".) > > i tried to remove the clearcase view but even that does not help. > > > Thanks and Regards, > -Amit > > -- View this message in context: http://www.nabble.com/maven---clearcase-integration-with-release%3Aperform-tp20590511p20601498.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
maven - clearcase integration with release:perform
Hi All, I am getting a peculiar problem with running mvn release:perform i have my scm url configured to clearcase snapshotview. release:prepare is working successfully and even clearcase is showing the tag i provide during "prepare" phase. the pom files in my project are getting updated successfully; so also teh local m2 repository is getting the latest pom files there. I would like to know if there is any solution to this problem. Maven clearcase reference also talks of this problem, but it does not indicate any solution to it: http://maven.apache.org/scm/clearcase.html <http://maven.apache.org/scm/clearcase.html> (cleartool: Error: A registry entry already exists for "johndoe-mymachine-maven-myproject".) i tried to remove the clearcase view but even that does not help. Thanks and Regards, -Amit
Experience on Maven/ClearCase integration
This post describes the problems i found integrating ClearCase with my maven project. It also contains an issue request concerning the release-plugin This can be a base document for thos who want to do the same thing. Configuration : Maven 2.0.8 Java 1.4.2_15 Rational ClearCase LT 7.0.0 Rational ClearCase LT 7.0.0.0_iFix01 Rational ClearCase LT 7.0.0.0_iFix02 cleartool 7.0.0.0 (Tue Apr 25 21:37:50 2006) I've got a ClearCase project called myProject which contains 2 ClearCase components myModule1 and myModule2. My ClearCase view is physically located at C:\views\myProject. >From a maven point of view, there is 2 projects located at C:\views\myProject\myModule1 and C:\views\myProject\myModule2. I want to integrate ClearCase to myModule1 project. 1) Integration of the maven scm plugin pom.xml : scm:clearcase:load \myModule1 scm:clearcase:load \myModule1 >mvn scm:bootstrap [ERROR] cleartool: Error: Unrecognized command option: "-vw ClearCase is the LT version so, create the file $user.home /.scm/clearcase-settings.xml : false LT >mvn scm:bootstrap [ERROR] cleartool: Error: A view cannot be created under another view's storage directory or snapshot view storage directory. That's right, C:\views\myProject\myModule1 is a view storage. pom.xml : org.apache.maven.plugins maven-scm-plugin ..\..\${artifactId}-${version} >mvn scm:bootstrap OK 2) Integration of the maven release plugin pom.xml : false myModule1-releases dav:http://server/myModule1/repository myModule1-site dav:http://server false myModule1--snapshots dav:http://server/myModule1/repository ... org.apache.maven.wagon wagon-webdav >mvn release:perform [INFO] Executing: C:\views\myProject\myModule1\target>>cmd.exe /X /C "cleartool m kview -snapshot -tag jclagache-HP12258259301-maven-checkout C:\views\myProject\myModule1\target\checkout" [ERROR] Provider message: [ERROR] The cleartool command failed. [ERROR] Command output: [ERROR] cleartool: Error: A view cannot be created under another view's storage directory or snapshot view storage directory. This is the same problem as with the scm plugin. The release plugin don't care about the checkoutDirectory from the scm plugin. Issue : Can't the release plugin re-use the checkoutDirectory from the scm plugin or can't the release:perform goal propose a checkoutDirectory directory ? The only solution is to change the workingDirectory property for this plugin in the pom.xml : org.apache.maven.plugins maven-release-plugin ..\..\${artifactId}-${version} >mvn release:perform [INFO] Executing: mvn deploy site-deploy --no-plugin-updates -P env-testleh -DperformRelease=true [INFO] Scanning for projects... [INFO] [INFO] Building Maven Default Project [INFO]task-segment: [deploy, site-deploy] [INFO] [INFO] [ERROR] BUILD ERROR [INFO] [INFO] Cannot execute mojo: resources. It requires a project with an existing pom.xml, but the build is not using one. In fact the working directory is also now ..\..\${artifactId}-${version} for the deploy plug-in ... pom.xml : org.apache.maven.plugins maven-deploy-plugin ..\${project.build.directory} >mvn release:perform OK Sorry for my poor english and this long post for an only one issue request. Maybe this post will be usefull for one who want to integrate ClearCase with their maven projects. -- View this message in context: http://n2.nabble.com/Experience-on-Maven-ClearCase-integration-tp1356638p1356638.html Sent from the maven users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Maven-Clearcase
What type of integration? Clearcase is what it is, but we use Continuum for continuous integration builds straight off of Clearcase. I followed the scm docs to set it up. Once you have scm tags correctly defined, you only need to have cleartool binary in your path and specify your config spec. There are some issues, but overall works well enough for us. Kalle On 2/7/07, vojjala <[EMAIL PROTECTED]> wrote: Hi , I am looking for the documentation or help on integration of Maven with Clearcase like how can achive this? It will be great help for our project. RAM -- View this message in context: http://www.nabble.com/Maven-Clearcase-tf3188842s177.html#a8851523 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Maven-Clearcase
Hi , I am looking for the documentation or help on integration of Maven with Clearcase like how can achive this? It will be great help for our project. RAM -- View this message in context: http://www.nabble.com/Maven-Clearcase-tf3188842s177.html#a8851523 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]