You are viewing a plain text version of this content. The canonical link for it is here.
Posted to scm-users@maven.apache.org by Jérémie <je...@printstacktrace.org> on 2010/04/28 11:30:14 UTC
Re: [sonar-user] Re: Sample code Clearcase
Hi Rajesh,
It seems to me, scm-users mailing list is most appropriate to talk about that.
I'm allowed to transfer to it.
Currently I am on vacation so I don't have clearcase. I will be able
to discribe my configuration in more detail next week.
In general I prefer using "Auto-generated config spec" way for my
projects. For more information on it :
http://maven.apache.org/scm/clearcase.html
Regards,
Jérémie.
2010/4/28 Rajesh Kumar <ra...@gmail.com>:
> Thanks Jérémie for sharing useful information.
>
> I am using ClearCase UCM and View has been created using CC client. Also
> cleartool.exe is in path.
>
> Questions 1: I could not get value of config_spec in Clearcase UCM.
>
> scm:clearcase<delimiter>[view_name]<delimiter>config_spec<delimiter>vob_name<delimiter>stream_name
>
> scm:clearcase | rajkumar_Amor_v1.1_be_int_4 | config_spec | scm_blr_amor |
> Amor_v1.1_be_int@\scm_blr_projects
>
> Error: after mvn scm:status
>
> Downloading:
> http://repo1.maven.org/maven2/org/apache/maven/scm/maven-scm-provider-
>
> [INFO] [scm:status {execution: default-cli}]
> [INFO] The SCM URL contains unused parameter : Amor_v1.1_be_int
> [ERROR] Provider message:
> [ERROR] The cleartool command failed.
> [ERROR] Command output:
> [ERROR] cleartool: Error: Unable to determine view for ".": not a ClearCase
> object.
>
> Question 2: Please refer my pom.xml file and let me know if its correct...
>
>
> <project xmlns="http://maven.apache.org/POM/4.0.0"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
> http://maven.apache.org/xsd/maven-4.0.0.xsd">
> <modelVersion>4.0.0</modelVersion>
> <groupId>CCSrc</groupId>
> <artifactId>CCSrc</artifactId>
> <name>CCSrc</name>
> <version>1.0</version>
> <build>
>
> <plugins>
> <plugin>
> <groupId>org.apache.maven.plugins</groupId>
> <artifactId>maven-compiler-plugin</artifactId>
> <configuration>
> <source>1.5</source>
> <target>1.5</target>
> <excludes>
> <exclude>**/*.*</exclude>
> </excludes>
> </configuration>
> </plugin>
> </plugins>
> </build>
> <properties>
> <sonar.dynamicAnalysis>false</sonar.dynamicAnalysis>
> </properties>
> <scm>
>
> <connection>scm:clearcase|rajkumar_Amor_v1.1_be_int_4|scm_blr_amor|Amor_v1.1_be_int</connection>
> </scm>
>
> </project>
>
>
> Can you please share your pom.xml so i can correct mine accordingly..
>
> Regards,
> Rajesh
>
>
>
>
> On Tue, Apr 27, 2010 at 4:12 PM, Jérémie <je...@printstacktrace.org> wrote:
>>
>> To use clearcase with maven you need a clearcase view and the
>> cleartool.exe in the PATH system property.
>>
>> Try the "mvn scm:status" command and "cleartool.exe lshistory pom.xml" in
>> the project path to validate your configuration.
>>
>> To create the sonar reports I use the integration server Hudson with
>> clearcase plugin and a standard maven job to do "mvn sonar:sonar".
>>
>> Remember, to use clearcase with maven, you must in most cases have a
>> clearcase view and cleartool. (ex: the release plugin, modify pom.xml, use
>> scm:checkin and scm:tag in the current view, and use scm:checkout to create
>> the new view for release labeled code.)
>>
>> Jérémie.
>>
>>
>>
>> 2010/4/27 Rajesh Kumar <ra...@gmail.com>:
>>>
>>> Hi Jérémie,
>>>
>>> I have very limited information about ClearCase. Can you please more
>>> descriptive? This would be kind help.
>>>
>>> also, I am running pom.xml from machine where no view has been installed.
>>>
>>> My Requirement: I want my pom.xml should get source code directly from
>>> Clearcase UCM and generate a Quality Matrix.
>>>
>>>
>>>
>>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe from this list, please visit:
>>
>> http://xircles.codehaus.org/manage_email
>>
>>
>
>
>
> --
> ===========================
> Rajesh Kumar
> Configuration, Build and Release Engineer
> Blog: http://www.scmGalaxy.com
>
> Email: rajesh@scmGalaxy.com
>
>