You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Vincent Massol (JIRA)" <ji...@codehaus.org> on 2006/05/19 13:12:41 UTC

[jira] Closed: (MCLOVER-36) Plugin should locate clover artifact based on groupId+artifactId and not only on artifactId

     [ http://jira.codehaus.org/browse/MCLOVER-36?page=all ]
     
Vincent Massol closed MCLOVER-36:
---------------------------------

    Resolution: Fixed

Fixed, thanks.

> Plugin should locate clover artifact based on groupId+artifactId and not only on artifactId
> -------------------------------------------------------------------------------------------
>
>          Key: MCLOVER-36
>          URL: http://jira.codehaus.org/browse/MCLOVER-36
>      Project: Maven 2.x Clover Plugin
>         Type: Bug

>     Versions: 2.1
>  Environment: 2.0.4
>     Reporter: John Allen
>     Assignee: Vincent Massol
>     Priority: Blocker
>      Fix For: 2.2

>
>
> instrumentation fails with clover packages not found if a plugin <dependency> is specified and it contains a dependency with an artifactid of "clover".
> Eg:
> {code:xml}
>       <plugin>
>         <groupId>org.apache.maven.plugins</groupId>
>         <artifactId>maven-compiler-plugin</artifactId>
>         <configuration>
>           <source>1.4</source>
>           <target>1.4</target>
>         </configuration>
>       </plugin>
>       <plugin>
>         <groupId>org.apache.maven.plugins</groupId>
>         <artifactId>maven-clover-plugin</artifactId>
> 	<dependencies>
> 		<dependency>
> 			<groupId>com.company.abs.build-resources</groupId>
> 			<artifactId>clover</artifactId>
> 			<version>1.1-SNAPSHOT</version>
> 		</dependency>
> 	</dependencies>
> 	<configuration>
> 	  <licenseLocation>clover-companylicense</licenseLocation>
> [...]
> {code}
> Instrumentation now fails
> {noformat}
> [INFO] Automatic Build System, Version: 2.0.4-SNAPSHOT
> [INFO] Using ABS_ROOT location: D:\Aelitis
> [INFO] Using JAVA_HOME location: D:\Aelitis\tools\jdk1.5.0_04
> [INFO] Using MAVEN_HOME location: D:\Aelitis\tools\maven-2.0.4
> [INFO] Using MAVEN_CLI arguments: site
> [INFO] Using MAVEN_OPTS options:  -Xmx512m -Dabs.build=true
> [INFO] Scanning for projects...
> [INFO] ----------------------------------------------------------------------------
> [INFO] Building Maven Clover Plugin Simple Sample
> [INFO]    task-segment: [site]
> [INFO] ----------------------------------------------------------------------------
> [INFO] Preparing clover:instrument
> [WARNING] Removing: instrument from forked lifecycle, to prevent recursive invocation.
> [WARNING] Removing: instrument from forked lifecycle, to prevent recursive invocation.
> [INFO] [clover:instrumentInternal]
> Clover Version 1.3.12, built on February 08 2006
> loaded from: D:\Aelitis\local-repository\com\cenqua\clover\clover\1.3.12\clover-1.3.12.jar
> 30 day Evaluation License registered to john_h_allen@hotmail.com
> You have 8 day(s) before your Evaluation License expires.
> Updating database at 'D:\Temp\simple\target/customclover/myclover.db'
> Processing files at 1.4 source level.
> Instrumented 1 source files.
> [INFO] [resources:resources]
> [INFO] Using default encoding to copy filtered resources.
> [INFO] [compiler:compile]
> Compiling 1 source file to D:\Temp\simple\target\clover\classes
> [INFO] ------------------------------------------------------------------------
> [ERROR] BUILD FAILURE
> [INFO] ------------------------------------------------------------------------
> [INFO] Compilation failure
> D:\Temp\simple\target\clover\src\org\apache\maven\plugin\clover\samples\simple\Simple.java:[19,65] package com_cenqua_clover does not exist
> D:\Temp\simple\target\clover\src\org\apache\maven\plugin\clover\samples\simple\Simple.java:[19,129] package com_cenqua_clover does not exist
> D:\Temp\simple\target\clover\src\org\apache\maven\plugin\clover\samples\simple\Simple.java:[19,500] package com_cenqua_clover does not exist
> D:\Temp\simple\target\clover\src\org\apache\maven\plugin\clover\samples\simple\Simple.java:[19,558] package com_cenqua_clover does not exist
> D:\Temp\simple\target\clover\src\org\apache\maven\plugin\clover\samples\simple\Simple.java:[19,624] package com_cenqua_clover does not exist
> [INFO] ------------------------------------------------------------------------
> [INFO] For more information, run Maven with the -e switch
> [INFO] ------------------------------------------------------------------------
> [INFO] Total time: 6 seconds
> [INFO] Finished at: Sun Apr 16 19:15:10 BST 2006
> [INFO] Final Memory: 6M/11M
> {noformat}
> Remove the dependency and instrumentation works once more

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