You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Carlos Sanchez <ca...@gmail.com> on 2005/07/22 08:30:04 UTC

Maven Cobertura Plug-in 1.1 released

The maven-plugins team is pleased to announce the Maven Cobertura Plug-in 1.1 
release! 

http://maven-plugins.sourceforge.net/maven-cobertura-plugin

Cobertura is a free Java tool that calculates the percentage of code accessed 
by tests. It can be used to identify which parts of your Java program are 
lacking test coverage. It is based on jcoverage. 

Changes in this version include:

  New Features:

o Added cobertura check reports with classes that don't meet test coverage 
  requirements. 
o Added cobertura:check goal.  

To automatically install the plugin, type the following on a single line:

maven plugin:download 
  -DgroupId=maven-plugins 
  -DartifactId=maven-cobertura-plugin
  -Dversion=1.1

For a manual installation, you can download the plugin here:
http://maven-plugins.sourceforge.net/repository/maven-plugins/plugins/maven-cobertura-plugin-1.1.jar
         

Have fun!
-The maven-plugins team

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Weird dependency behaviour...

Posted by fa...@mpsa.com.



Hi Maveners,

I observe a strange behaviour when building the plugin I'm developing. Here
are the dependencies for which the build is OK :

            <dependency>
                  <groupId>org.apache.maven.reporting</groupId>
                  <artifactId>maven-reporting-api</artifactId>
                  <version>2.0-alpha-3</version>
            </dependency>
            <dependency>
                  <groupId>org.apache.maven</groupId>
                  <artifactId>maven-plugin-api</artifactId>
                  <version>2.0-alpha-3</version>
            </dependency>
            <dependency>
                  <groupId>oro</groupId>
                  <artifactId>oro</artifactId>
                  <version>2.0.7</version>
            </dependency>
            <dependency>
                  <groupId>commons-lang</groupId>
                  <artifactId>commons-lang</artifactId>
                  <version>2.0</version>
            </dependency>
            <dependency>
                  <groupId>commons-jelly</groupId>
                  <artifactId>commons-jelly</artifactId>
                  <version>1.0-beta-4</version>
            </dependency>
            <dependency>
                  <groupId>ant</groupId>
                  <artifactId>ant</artifactId>
                  <version>1.6.5</version>
            </dependency>
            <dependency>
                  <groupId>dom4j</groupId>
                  <artifactId>dom4j</artifactId>
                  <version>1.4</version>
            </dependency>

The plugin is compiled and installed, but can't run because it requires
other lib at runtime. So I add the following dependencies to make it work:

            <dependency>
                  <groupId>commons-beanutils</groupId>
                  <artifactId>commons-beanutils</artifactId>
                  <version>1.7.0</version>
                  <scope>runtime</scope>
            </dependency>
            <dependency>
                  <groupId>commons-jexl</groupId>
                  <artifactId>commons-jexl</artifactId>
                  <version>1.0</version>
                  <scope>runtime</scope>
            </dependency>
            <dependency>
                  <groupId>commons-jelly</groupId>
                  <artifactId>commons-jelly-tags-jsl</artifactId>
                  <version>1.0</version>
                  <scope>runtime</scope>
            </dependency>
            <dependency>
                  <groupId>commons-jelly</groupId>
                  <artifactId>commons-jelly-tags-xml</artifactId>
                  <version>1.1</version>
                  <scope>runtime</scope>
            </dependency>

I build again (the Java sources are not compiled this time because none has
been changed): the plugin is installed and runs perfectly.

However, if I clean my project (i.e. the generated classes are deleted),
and build again, then I get the following stacktrace :


Compiling 15 source files to
C:\fabM2\workspace\maven-jxr-plugin\target\classes
[INFO]
-------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO]
-------------------------------------------------------------------------
[INFO] Reason: Compilation failure
[INFO]
-------------------------------------------------------------------------
[INFO] no more tokens - could not parse error message:
C:\fabM2\workspace\maven-
jxr-plugin\src\main\java\org\apache\maven\plugin\jxr\JXR.java:26: package
org.ap
ache.maven.plugin.logging does not exist
import org.apache.maven.plugin.logging.Log;
                                       ^

C:\fabM2\workspace\maven-jxr-plugin\src\main\java\org\apache\maven\plugin\jxr\JX
R.java:[37,12]  cannot resolve symbol
symbol  : class Log
location: class org.apache.maven.plugin.jxr.JXR
no more tokens - could not parse error message:
C:\fabM2\workspace\maven-jxr-plu
gin\src\main\java\org\apache\maven\plugin\jxr\pacman\PackageManager.java:25:
 pac
kage org.apache.maven.plugin.logging does not exist
import org.apache.maven.plugin.logging.Log;
                                       ^

C:\fabM2\workspace\maven-jxr-plugin\src\main\java\org\apache\maven\plugin\jxr\pa
cman\PackageManager.java:[35,12]  cannot resolve symbol
symbol  : class Log
location: class org.apache.maven.plugin.jxr.pacman.PackageManager
C:\fabM2\workspace\maven-jxr-plugin\src\main\java\org\apache\maven\plugin\jxr\pa
cman\PackageManager.java:[53,26]  cannot resolve symbol
symbol  : class Log
location: class org.apache.maven.plugin.jxr.pacman.PackageManager
C:\fabM2\workspace\maven-jxr-plugin\src\main\java\org\apache\maven\plugin\jxr\JX
R.java:[87,78]  cannot resolve symbol
symbol  : class Log
location: class org.apache.maven.plugin.jxr.JXR


The package "org.apache.maven.plugin.logging" seems to be missing this
time! How come?
I don't see where the problem comes from, as I only added dependencies for
runtime, and as those dependencies are not linked to other maven libs...

Any idea where this problem might come from?

Thanks!

Best Regards / Cordialement,
Fabrice BELLINGARD
DINQ/DSIN/INSI/EATE/IDVS/AIDV
(+33) (01 61) 45 15 91  -  fabrice.belingard@mpsa.com


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org