[ http://jira.codehaus.org/browse/MCOBERTURA-9?page=all ]
     
Brett Porter closed MCOBERTURA-9:
---------------------------------

      Assign To: Brett Porter
     Resolution: Duplicate
    Fix Version:     (was: 2.0)

> Should be able to specify Cobertura on parent pom for all sub modules
> ---------------------------------------------------------------------
>
>          Key: MCOBERTURA-9
>          URL: http://jira.codehaus.org/browse/MCOBERTURA-9
>      Project: Maven 2.x Cobertura Plugin
>         Type: Improvement

>     Reporter: Daun DeFrance
>     Assignee: Brett Porter

>
>
> I have a parent project with 9 modules. I would like Cobertura to run against 
> all of them.  If I specify Cobertura in my parent pom 
> (<packaging>pom</packaging>), then it tries to find classes in the parent's 
> target directory and fails the build with:
> [INFO] [cobertura:instrument]
> [INFO] 
> -------------------------------------------------------------------------
> ---
> [ERROR] BUILD ERROR
> [INFO] 
> -------------------------------------------------------------------------
> ---
> [INFO] Unable to prepare instrumentation directory.
> Embedded error: Source directory doesn't exists (c:\dev\code\target\classes).
> [INFO] 
> -------------------------------------------------------------------------
> ---
> [INFO] For more information, run Maven with the -e switch
> Cobertura should ignore the parent pom since it is of packaging type "pom" 
> and has no source classes.  The workaround is to specify cobertura on each 
> module's pom which is tedious.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira

Reply via email to