Hi
My project structure looks as follows :

.PortalProject
|-- pom.xml
|
`-- portal-domain
             `--pom.xml

I'm running 'mvn clover:instrument' from the 'portal-domain'
submodule , but my <exclude> does not seem to have an effect.

Under the <reporting> section on my top level pom  (i.e
PortalProject/pom.xml) I have  the following(amongst other reporting
plugins)

<reporting>
  <plugins>
      ......
        .......
       <plugin>
          <artifactId>maven-clover-plugin</artifactId>
         <configuration>
          <!--licenseFile>clover.license</licenseFile-->
           <excludes>
<exclude>D:/MAVEN-WORK/portal-domain/src/za/co/pragmaticus/portal/vo/*.java</exclude>
           </excludes>
         </configuration>
         </plugin>
   </plugins>
 </reporting>


I decided to hard code the exact path of the directory I wish to
exclude because initially my <exclude> was configured as
<exclude>**/vo/*.java</exclude> but that did not work as the code in
the "vo" directory was still getting instrumented.

I ran 'mvn -X clover:instrument'   and from the logs I can see that
correct configuration info is  being passed to the mojo as shown below
:

[DEBUG] Configuring mojo
'org.apache.maven.plugins:maven-clover-plugin:2.2:instrumentInternal'
-->
[DEBUG]   (f) cloverDatabase =
D:\MAVEN-WORK\eportal-domain\target/clover/clover.db
[DEBUG]   (f) cloverMergeDatabase =
D:\MAVEN-WORK\eportal-domain\target/clover/cloverMerge.db
[DEBUG]   (f) cloverOutputDirectory = D:\MAVEN-WORK\eportal-domain\target/clover
[DEBUG]   (f) excludes =
[D:/MAVEN-WORK/eportal-domain/src/za/co/pragmaticus/portal/vo/*.java]
[DEBUG]   (f) flushInterval = 500
[DEBUG]   (f) flushPolicy = threaded
[DEBUG]   (f) localRepository = [local] -> file://D:\Documents and
Settings\mutonhj\.m2\repository
[DEBUG]   (f) pluginArtifacts =
[velocity:velocity-dep:jar:1.4:runtime, oro:oro:jar:2.0.7:runtime,
ant:ant:jar:1.6.5:runtime,
org.apache.maven.doxia:doxia-core:jar:1.0-alpha-7:runtime,
velocity:velocity:jar:1.4:runtime,
org.codehaus.plexus:plexus-compiler-api:jar:1.5.2:runtime,
org.codehaus.plexus:plexus-i18n:jar:1.0-beta-6:runtime,
commons-validator:commons-validator:jar:1.1.4:runtime,
org.apache.maven.doxia:doxia-decoration-model:jar:1.0-alpha-7:runtime,
com.cenqua.clover:clover:jar:1.3.12:runtime,
org.codehaus.plexus:plexus-velocity:jar:1.1.2:runtime,
org.apache.maven.doxia:doxia-site-renderer:jar:1.0-alpha-7:runtime,
commons-collections:commons-collections:jar:2.0:runtime,
commons-logging:commons-logging-api:jar:1.0.4:runtime,
org.apache.maven.reporting:maven-reporting-impl:jar:2.0.2:runtime,
org.apache.maven:maven-artifact:jar:2.0.2:runtime,
org.apache.maven:maven-project:jar:2.0:runtime,
org.apache.maven:maven-plugin-api:jar:2.0:runtime]
[DEBUG]   (f) project = [EMAIL PROTECTED]
[DEBUG]   (f) waitForFlush = true
[DEBUG] -- end configuration --
--

Why is the <exclude> not having an effect?

Thanks



Jeff  Mutonho
Cape Town
South Africa

GoogleTalk : ejbengine
Skype        : ejbengine
Registered Linux user number 366042

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

Reply via email to