From: Chintan P. P. <Chi...@in...> - 2011-09-26 20:32:53
|
Hi Kishnakanth, I was trying to configure my JAX-WS webservices with corbetura, but i coudn't get success. Let me know if you are able to do that. Thanks Chintan ________________________________ From: krishnakanth batta [kk...@gm...] Sent: Monday, September 26, 2011 11:46 AM To: cob...@li... Subject: [Cobertura-devel] Missing SomeProjectLibA:ser:cobertura:0.0.1-SNAPSHOT problem for Server side code coverage attempt i am trying instrument and deploying a web service to capture server side code coverage. I tried following this article: http://mojo.codehaus.org/cobertura-maven-plugin/instrumentingDeploymentArtifact.html What should i put in SomeProjectLibA's pom that will make it create an artifact com.abc.def.ghi.SomeProjectLibA:ser:cobertura:0.0.1-SNAPSHOT which now it complains is missing. Parent pom configuration is exactly like its described in the article. I made all the suggested changes and i am trying to get the coverage for below artifact which is a dependency in SomeProject-Cobertura's pom. ..... ..... <dependency> <groupId>${project.groupId}</groupId> <artifactId>SomeProjectLibA</artifactId> <version>${project.version}</version> <classifier>sources</classifier> <type>jar</type> <scope>compile</scope> </dependency> <dependency> <groupId>${project.groupId}</groupId> <artifactId>SomeProjectLibA</artifactId> <version>${project.version}</version> <classifier>sources</classifier> <type>jar</type> <scope>compile</scope> </dependency> .... ..... # mvn -Dcobertura-build clean install output: ======= ...... ....... [INFO] ------------------------------------------------------------------------ [ERROR] BUILD ERROR [INFO] ------------------------------------------------------------------------ [INFO] Failed to resolve artifact. Missing: ---------- 1) com.abc.def.ghi.SomeProjectLibA:ser:cobertura:0.0.1-SNAPSHOT Try downloading the file manually from the project website. Then, install it using the command: mvn install:install-file -DgroupId=com.abc.def.ghi -DartifactId=SomeProjectLibA -Dversion=0.0.1-SNAPSHOT -Dclassifier=cobertura -Dpackaging=ser -Dfile=/path/to/file thanks, kk -- Anything Anytime for Friends! **************** CAUTION - Disclaimer ***************** This e-mail contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended solely for the use of the addressee(s). If you are not the intended recipient, please notify the sender by e-mail and delete the original message. Further, you are not to copy, disclose, or distribute this e-mail or its contents to any other person and any such actions are unlawful. This e-mail may contain viruses. Infosys has taken every reasonable precaution to minimize this risk, but is not liable for any damage you may sustain as a result of any virus in this e-mail. You should carry out your own virus checks before opening the e-mail or attachment. Infosys reserves the right to monitor and review the content of all messages sent to or from this e-mail address. Messages sent to or from this e-mail address may be stored on the Infosys e-mail system. ***INFOSYS******** End of Disclaimer ********INFOSYS*** |