From: krishnakanth b. <kk...@gm...> - 2011-09-26 18:46:50
|
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! |