From: SourceForge.net <no...@so...> - 2009-05-11 14:31:17
|
Feature Requests item #2711629, was opened at 2009-03-25 12:08 Message generated for change (Comment added) made by sslavic You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=720018&aid=2711629&group_id=130558 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: None Status: Closed Resolution: Fixed Priority: 5 Private: No Submitted By: Stevo Slavic (sslavic) Assigned to: John Lewis (lewijw) Summary: Deploy Cobertura 1.9.1 release on Maven central repository Initial Comment: Please deploy Cobertura 1.9.1 release on Maven central repository. It would be nice to have this task as part of the Cobertura release process in future too. ---------------------------------------------------------------------- Comment By: Stevo Slavic (sslavic) Date: 2009-05-11 16:31 Message: With cobertura:cobertura you are running maven cobertura plugin, its cobertura report mojo, and latest version of that plugin declares dependency to cobertura 1.9. A request has been made to update plugin to use cobertura 1.9.1 ( http://jira.codehaus.org/browse/MCOBERTURA-94 ) in next release. What you can do to test if cobertura and cobertura-runtime 1.9.1 is accessible to a maven project like cobertura maven plugin is, is to create an empty maven 2 project and declare a dependency to cobertura or cobertura-runtime 1.9.1, then try e.g. packaging a project. If your project has war packaging then cobertura artifact (with or without it's transitive dependencies depending if cobertura or cobertura-runtime has been declared as dependency) will be included in war's lib folder. ---------------------------------------------------------------------- Comment By: John Lewis (lewijw) Date: 2009-05-11 15:40 Message: I finally got something when I did mvn cobertura:cobertura. However, the local repository has 1.9 in it, and the report that was generated was done with 1.9. But the maven-metadata-central.xml file has 1.9.1 in it. ---------------------------------------------------------------------- Comment By: John Lewis (lewijw) Date: 2009-05-11 15:26 Message: Are you able to get it to work? I am having trouble, but I am new to maven. When I do mvn:site with a simple project, I get: [INFO] Scanning for projects... [INFO] ------------------------------------------------------------------------ [INFO] Building mymavenproject [INFO] task-segment: [site] [INFO] ------------------------------------------------------------------------ [INFO] ------------------------------------------------------------------------ [ERROR] BUILD ERROR [INFO] ------------------------------------------------------------------------ [INFO] The plugin 'net.sourceforge.cobertura:cobertura' does not exist or no valid version could be found [INFO] ------------------------------------------------------------------------ [INFO] For more information, run Maven with the -e switch [INFO] ------------------------------------------------------------------------ [INFO] Total time: < 1 second [INFO] Finished at: Mon May 11 09:19:03 EDT 2009 [INFO] Final Memory: 2M/5M [INFO] ------------------------------------------------------------------------ Here is the project pom: <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/maven-v4_0_0.xsd"> <modelVersion>4.0.0</modelVersion> <groupId>com.mycompany.app</groupId> <artifactId>mymavenproject</artifactId> <packaging>jar</packaging> <version>1.0-SNAPSHOT</version> <name>mymavenproject</name> <url>http://maven.apache.org</url> <dependencies> <dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> <version>3.8.1</version> <scope>test</scope> </dependency> </dependencies> <reporting> <plugins> <plugin> <groupId>net.sourceforge.cobertura</groupId> <artifactId>cobertura</artifactId> </plugin> </plugins> </reporting> </project> I tried deleting my local maven repository. ---------------------------------------------------------------------- Comment By: Stevo Slavic (sslavic) Date: 2009-05-10 10:28 Message: Since last night, cobertura 1.9.1 is available at maven central repo ( http://mirrors.ibiblio.org/pub/mirrors/maven2/net/sourceforge/cobertura/cobertura/1.9.1/ ) ---------------------------------------------------------------------- Comment By: John Lewis (lewijw) Date: 2009-05-08 16:31 Message: Thanks for your help. Synch request made: http://jira.codehaus.org/browse/MAVENUPLOAD-2453 ---------------------------------------------------------------------- Comment By: Stevo Slavic (sslavic) Date: 2009-05-08 01:24 Message: Checked, main artifact works fine. cobertura-runtime artifact doesn't work from the cobertura repo as its pom doesn't define any repositories but depends on main cobertura artifact which is not yet in central - by the looks of cobertura-runtime pom (same as in prev version, except for the version of course) it should work well too once cobertura repo is synchronized to central. +1 go ahead, make a sync request ---------------------------------------------------------------------- Comment By: John Lewis (lewijw) Date: 2009-05-07 21:41 Message: I have added a process to the build that will deploy a cobertura release to a maven repo on sourceforge. The intention is to have that repo synched with the central maven repository automatically (see http://maven.apache.org/guides/mini/guide-central-repository-upload.html). Before I make the synch request, is it possible for you to try it out? I am assuming you know more about Maven than I do. The maven repo is at: http://cobertura.sourceforge.net/m2repo/net/sourceforge/cobertura/cobertura/maven-metadata.xml The pom is at: http://cobertura.sourceforge.net/m2repo/net/sourceforge/cobertura/cobertura/1.9.1/cobertura-1.9.1.pom It looks identical to the one in mustaghattack's comment. ---------------------------------------------------------------------- Comment By: Bruno Bieth (mustaghattack) Date: 2009-03-31 14:17 Message: I've added 1.9.1 in my enterprise repository. I've used the following pom : <?xml version="1.0" ?> <project> <modelVersion>4.0.0</modelVersion> <groupId>net.sourceforge.cobertura</groupId> <artifactId>cobertura</artifactId> <version>1.9.1</version> <name>Cobertura</name> <description> Cobertura is a free Java tool that calculates the percentage of code accessed by tests. It can be used to identify which parts of your Java program are lacking test coverage. It is based on jcoverage. </description> <url>http://cobertura.sourceforge.net</url> <licenses> <license> <name>The GNU General Public License, Version 2</name> <url>http://www.gnu.org/licenses/gpl.txt</url> <distribution>repo</distribution> </license> </licenses> <dependencies> <dependency> <groupId>oro</groupId> <artifactId>oro</artifactId> <version>2.0.8</version> </dependency> <dependency> <groupId>asm</groupId> <artifactId>asm</artifactId> <version>3.0</version> </dependency> <dependency> <groupId>asm</groupId> <artifactId>asm-tree</artifactId> <version>3.0</version> </dependency> <dependency> <groupId>log4j</groupId> <artifactId>log4j</artifactId> <version>1.2.9</version> </dependency> <dependency> <groupId>org.apache.ant</groupId> <artifactId>ant</artifactId> <version>1.7.0</version> </dependency> </dependencies> </project> ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=720018&aid=2711629&group_id=130558 |