Hi,

I use the m2 cobertura plugin.
It works fine.
For information I had to add the following in order to make it works:
 <build>
  <pluginManagement>
   <plugins>
    <plugin>
     <groupId>org.apache.maven.plugins</groupId>
     <artifactId>maven-surefire-plugin</artifactId>
     <configuration>
      <systemProperties>
       <property>
        <name>net.sourceforge.cobertura.datafile</name>
        <value>target/cobertura/cobertura.ser</value>
       </property>
      </systemProperties>
     </configuration>
    </plugin>
   </plugins>
  </pluginManagement>
 </build>


Now, I would like to exclude classes that has been generated by another plugin (xmlbeans plugin) that are located in a different directory source (./target/generated-source/...*.class)

I know that we can use an exclusion pattern :
 <reporting>
  <plugins>
   <plugin>
    <groupId>org.codehaus.mojo</groupId>
    <artifactId>cobertura-maven-plugin</artifactId>
    <configuration>
     <instrumentation>
      <excludes>
       <exclude>schemaorg_apache_xmlbeans/**/*.class</exclude>
      </excludes>
     </instrumentation>
    </configuration>
   </plugin>
  </plugins>
 </reporting>

But I also need to exclude other generated classes that cannot be exclude with a pattern (because classes has the same patterns than others not generated classes).

Is there a way to exclude classes that come from the "./target/generated-source/" directory ? Or is there a way to exclude classes that extends some specific classes (for instance: org.apache.xmlbeans.XmlObject) ?

Any other idea ?

Thanks
Yann.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to