You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Pradeep <sk...@yahoo.co.in> on 2010/10/28 15:26:16 UTC

Error received while using instrumentationPaths

Hi All,

  I am receiving the below exception while using <instrumentationPaths>.   
Please advise.

[INFO] Failed to configure plugin parameters for: org.codehaus.mojo:emma-maven-p
lugin:1.0-alpha-2

    (found static expression: 'C:/maven.repo/test/TestProject1/0.0.1-SNAPSHOT/*.
jar' which may act as a default value).


Cause: Cannot assign configuration entry 'instrumentationPaths' to 'class [Ljava
.io.File;' from 'C:/maven.repo/test/TestProject1/0.0.1-SNAPSHOT/*.jar', which is
 of type class java.lang.String
[INFO] ------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 2 seconds
[INFO] Finished at: Thu Oct 28 18:30:24 IST 2010
[INFO] Final Memory: 15M/60M

<plugin>
                <groupId>org.codehaus.mojo</groupId>
                <artifactId>emma-maven-plugin</artifactId>
                <version>1.0-alpha-2</version>
                <inherited>true</inherited>
                <executions>
                    <execution>
                        <phase>process-classes</phase>
                        <goals>
                            <goal>instrument</goal>
                        </goals>
                        <configuration>
                        
<instrumentationPaths>C:/maven.repo/test/TestProject1/0.0.1-SNAPSHOT/*.jar</instrumentationPaths>

                        </configuration>
                    </execution>
                </executions>
            </plugin>

 
Regards,
Pradeep