[ 
http://jira.codehaus.org/browse/MCOBERTURA-49?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_122606
 ] 

Andreas Höhmann commented on MCOBERTURA-49:
-------------------------------------------

i have the same error in a multiproject but only if i build the site ?!

i use teamcity, maven 2.0.8, cobertura 2.2-SNAPSHOT

if i run "mvn clean install site-deploy" locally ... its working fine.
if teamcity runs the command ... the error "java' is not recognized as an 
internal ...." occured.

> Fails if JRE is not on System Path
> ----------------------------------
>
>                 Key: MCOBERTURA-49
>                 URL: http://jira.codehaus.org/browse/MCOBERTURA-49
>             Project: Maven 2.x Cobertura Plugin
>          Issue Type: Bug
>    Affects Versions: 2.0
>         Environment: Windows
> Maven-2.0.4
>            Reporter: Jon SlinnHawkins
>            Priority: Critical
>
> If the JRE installed is not of the System Path Cobertura fails to instrument 
> the classes. with the following error.
> [INFO] Preparing cobertura:cobertura                                          
>          
> [INFO] [resources:resources]                                                  
>          
> [INFO] Using default encoding to copy filtered resources.                     
>          
> [INFO] [compiler:compile]                                                     
>          
> [INFO] Nothing to compile - all classes are up to date                        
>          
> [INFO] [cobertura:instrument]                                                 
>          
> [INFO]                                                                        
>          
> [ERROR] 'java' is not recognized as an internal or external command,          
>          
> operable program or batch file.                                               
>          
>                                                                               
>          
> [INFO] 
> ------------------------------------------------------------------------      
>   
> [ERROR] BUILD ERROR                                                           
>          
> [INFO] 
> ------------------------------------------------------------------------      
>   
> [INFO] Unable to instrument project.                                          
>          
> [INFO] 
> ------------------------------------------------------------------------      
>   
> [INFO] For more information, run Maven with the -e switch                     
>          
> [INFO] 
> ------------------------------------------------------------------------      
>   
> It would be better to use the %JAVA_HOME% system variable to locate the Java 
> version to be used.

-- 
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



---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to