Discussion:
Unable to skip cobertura for child modules
rgangadhar
2011-11-02 18:08:58 UTC
Permalink
Hi

There are some flex modules in my application which doesn't need code
coverage so is there a way that i can skip the child modules for cobertura.

I tried many ways like setting <inherit>false<inherit> in parent pom but
it didn't work.

Please help me.

thanks
-Gangadhar
--
View this message in context: http://old.nabble.com/Unable-to-skip-cobertura-for-child-modules-tp32767702p32767702.html
Sent from the mojo - dev mailing list archive at Nabble.com.


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

http://xircles.codehaus.org/manage_email
Wayne Fay
2011-11-03 07:53:14 UTC
Permalink
Post by rgangadhar
There are some flex modules in my application which doesn't need code
coverage so is there a way that i can skip the child modules for cobertura.
I tried many ways like setting <inherit>false<inherit> in parent pom but
it didn't work.
Did you RTFM? There is a skip option in the plugin itself.

http://mojo.codehaus.org/cobertura-maven-plugin/instrument-mojo.html
http://jira.codehaus.org/browse/MCOBERTURA-75

Wayne
rgangadhar
2011-11-03 19:43:53 UTC
Permalink
I have already tried skip following the the configuration in the skipped
module.


<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>cobertura-maven-plugin</artifactId>
<configuration>
<skip>true</skip>
</configuration>
</plugin>

I can see for cobertura's clean and instrumentation goals are skipped but i
sill see other goal is being executed that may be "cobertura". following is
the error message

[INFO] --- cobertura-maven-plugin:2.5.1:clean (default) @
CiscoTransferManagementLibrary ---
[INFO] Skipping cobertura execution
[INFO]
[INFO] --- cobertura-maven-plugin:2.5.1:instrument (default) @
CiscoTransferManagementLibrary ---
[INFO] Skipping cobertura execution
[INFO]
[INFO] --- maven-install-plugin:2.3.1:install (default-install) @
CiscoTransferManagementLibrary ---
[INFO] Installing
C:\Users\garamini\.hudson\jobs\TestEmma\workspace\trunk\Portal\Client\nextgen\CiscoTransferManagementLibrary\target\CiscoTransferManagementLibrary.
swc to
C:\Users\garamini\.m2\repository\com\cisco\vse\CiscoTransferManagementLibrary\1.5.0.15127\CiscoTransferManagementLibrary-1.5.0.15127.swc
[INFO] Installing
C:\Users\garamini\.hudson\jobs\TestEmma\workspace\trunk\Portal\Client\nextgen\CiscoTransferManagementLibrary\pom.xml
to C:\Users\garamini\.m2\repos
itory\com\cisco\vse\CiscoTransferManagementLibrary\1.5.0.15127\CiscoTransferManagementLibrary-1.5.0.15127.pom
[INFO]
[INFO] >>> cobertura-maven-plugin:2.5.1:cobertura (default-cli) @
CiscoTransferManagementLibrary >>>
[INFO]
[INFO] --- incremental-build-plugin:1.2:incremental-build (default) @
CiscoTransferManagementLibrary ---
[INFO] Verifying module descriptor ...
[INFO] Verifying parent modules...
[INFO] Verifying resources...
[INFO] Resources directory does not exist :
C:\Users\garamini\.hudson\jobs\TestEmma\workspace\trunk\Portal\Client\nextgen\CiscoTransferManagementLibrary\src\main\res
ources
[INFO] Verifying sources...
[INFO]
[INFO] --- maven-remote-resources-plugin:1.0:process (default) @
CiscoTransferManagementLibrary ---
[INFO]
[INFO] --- maven-resources-plugin:2.5:resources (default-resources) @
CiscoTransferManagementLibrary ---
[debug] execute contextualize
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory
C:\Users\garamini\.hudson\jobs\TestEmma\workspace\trunk\Portal\Client\nextgen\CiscoTransferManagementLibrary\src\main\reso
urces
[INFO] Copying 3 resources
[INFO] Copying 3 resources
[INFO]
[INFO] --- flexmojos-maven-plugin:4.0-beta-7:compile-swc
(default-compile-swc) @ CiscoTransferManagementLibrary ---
[INFO] Flexmojos 4.0-beta-7
[INFO] Apache License - Version 2.0 (NO WARRANTY) - See COPYRIGHT file
[WARNING] No themes are explicitly defined in the <theme> section or in any
scope="theme" dependencies. Flexmojos is now attempting to figure out which
themes to inc
lude. (to avoid this warning you should explicitly state your theme
dependencies)
[WARNING] Added the spark.css theme because spark.swc was included as a
dependency
[WARNING] Added the halo.swc theme because mx.swc was included as a
dependency
Adobe Compc (Flex Component Compiler)
Version 4.5.0 build 20967
Copyright (c) 2004-2011 Adobe Systems, Inc. All rights reserved.

command line: Error: a file with the name 'META-INF/DEPENDENCIES' was
specified more than once



Thanks
-Gangadhar
Post by rgangadhar
Post by rgangadhar
There are some flex modules in my application which doesn't need code
coverage so is there a way that i can skip the child modules for
cobertura.
Post by rgangadhar
I tried many ways like setting <inherit>false<inherit> in parent pom but
it didn't work.
Did you RTFM? There is a skip option in the plugin itself.
http://mojo.codehaus.org/cobertura-maven-plugin/instrument-mojo.html
http://jira.codehaus.org/browse/MCOBERTURA-75
Wayne
--
View this message in context: http://old.nabble.com/Unable-to-skip-cobertura-for-child-modules-tp32767702p32775673.html
Sent from the mojo - dev mailing list archive at Nabble.com.


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

http://xircles.codehaus.org/manage_email
rgangadhar
2011-11-03 19:47:18 UTC
Permalink
CiscoTransferManagementLibrary >>> is executing other build related plugins
and one of them is flexmojo which is flex compiler and that is where it is
failing.

I'm not sure..how should i skip.

Thanks
-Gangadhar
Post by rgangadhar
I have already tried skip following the the configuration in the skipped
module.
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>cobertura-maven-plugin</artifactId>
<configuration>
<skip>true</skip>
</configuration>
</plugin>
I can see for cobertura's clean and instrumentation goals are skipped but
i sill see other goal is being executed that may be "cobertura". following
is the error message
CiscoTransferManagementLibrary ---
[INFO] Skipping cobertura execution
[INFO]
CiscoTransferManagementLibrary ---
[INFO] Skipping cobertura execution
[INFO]
CiscoTransferManagementLibrary ---
[INFO] Installing
C:\Users\garamini\.hudson\jobs\TestEmma\workspace\trunk\Portal\Client\nextgen\CiscoTransferManagementLibrary\target\CiscoTransferManagementLibrary.
swc to
C:\Users\garamini\.m2\repository\com\cisco\vse\CiscoTransferManagementLibrary\1.5.0.15127\CiscoTransferManagementLibrary-1.5.0.15127.swc
[INFO] Installing
C:\Users\garamini\.hudson\jobs\TestEmma\workspace\trunk\Portal\Client\nextgen\CiscoTransferManagementLibrary\pom.xml
to C:\Users\garamini\.m2\repos
itory\com\cisco\vse\CiscoTransferManagementLibrary\1.5.0.15127\CiscoTransferManagementLibrary-1.5.0.15127.pom
[INFO]
CiscoTransferManagementLibrary >>>
[INFO]
CiscoTransferManagementLibrary ---
[INFO] Verifying module descriptor ...
[INFO] Verifying parent modules...
[INFO] Verifying resources...
C:\Users\garamini\.hudson\jobs\TestEmma\workspace\trunk\Portal\Client\nextgen\CiscoTransferManagementLibrary\src\main\res
ources
[INFO] Verifying sources...
[INFO]
CiscoTransferManagementLibrary ---
[INFO]
CiscoTransferManagementLibrary ---
[debug] execute contextualize
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory
C:\Users\garamini\.hudson\jobs\TestEmma\workspace\trunk\Portal\Client\nextgen\CiscoTransferManagementLibrary\src\main\reso
urces
[INFO] Copying 3 resources
[INFO] Copying 3 resources
[INFO]
[INFO] --- flexmojos-maven-plugin:4.0-beta-7:compile-swc
[INFO] Flexmojos 4.0-beta-7
[INFO] Apache License - Version 2.0 (NO WARRANTY) - See COPYRIGHT file
[WARNING] No themes are explicitly defined in the <theme> section or in
any scope="theme" dependencies. Flexmojos is now attempting to figure out
which themes to inc
lude. (to avoid this warning you should explicitly state your theme
dependencies)
[WARNING] Added the spark.css theme because spark.swc was included as a
dependency
[WARNING] Added the halo.swc theme because mx.swc was included as a
dependency
Adobe Compc (Flex Component Compiler)
Version 4.5.0 build 20967
Copyright (c) 2004-2011 Adobe Systems, Inc. All rights reserved.
command line: Error: a file with the name 'META-INF/DEPENDENCIES' was
specified more than once
Thanks
-Gangadhar
Post by rgangadhar
Post by rgangadhar
There are some flex modules in my application which doesn't need code
coverage so is there a way that i can skip the child modules for
cobertura.
Post by rgangadhar
I tried many ways like setting <inherit>false<inherit> in parent pom but
it didn't work.
Did you RTFM? There is a skip option in the plugin itself.
http://mojo.codehaus.org/cobertura-maven-plugin/instrument-mojo.html
http://jira.codehaus.org/browse/MCOBERTURA-75
Wayne
--
View this message in context: http://old.nabble.com/Unable-to-skip-cobertura-for-child-modules-tp32767702p32775693.html
Sent from the mojo - dev mailing list archive at Nabble.com.


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

http://xircles.codehaus.org/manage_email
Loading...