You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Volker Füßler <vf...@webde-ag.de> on 2005/05/10 11:40:44 UTC
[maven 1.1] Clover Tasks not found - a solution
Hi,
with maven 1.1 I had the problem, that the clover task definitions could not be found. Her is my solution if you run into the same problems.
I had to change the following 2 lines in the clover:init goal of plugin.jelly of the maven-clover-plugin:
<ant:taskdef resource="clovertasks" />
<ant:typedef resource="clovertypes" />
to
<ant:taskdef resource="clovertasks" classpathref="clover.classpath"/>
<ant:typedef resource="clovertypes" classpathref="clover.classpath"/>
Regards, Volker
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: [maven 1.1] Clover Tasks not found - a solution
Posted by Mark Proctor <li...@markproctor.com>.
maven 1.1? latest I can find is 1.0.2?
Anyway using maven 1.0.2 I wasn't getting that error but changed those
lines you said anyway, still no good :( I have included the output
below. Notice I've excluded all but two modules from mutliproject, no
matter what modules I use to build I get the same issue, only the last
project's details are viewable in the report.
I also get the following warning:
[echo] Usage of the maven.clover.database.dir property is deprecated.
Use the maven.clover.database property instead
But I definitely set maven.clover.database I dont set
maven.clover.database.dir anywhere, however after clover has run I do a
search and find it in some of the generated junit property files and
reports.
D:\java\drools-2.0>maven drools:clover
__ __
| \/ |__ _Apache__ ___
| |\/| / _` \ V / -_) ' \ ~ intelligent projects ~
|_| |_\__,_|\_/\___|_||_| v. 1.0.2
build:start:
clean-all:prepare:
drools:clover:
[echo] top level
multiproject:projects-init:
[echo] Gathering project list
Starting the reactor...
Our processing order:
Drools :: Semantics Module Framework
Drools :: Base Semantics Module
+----------------------------------------
| Gathering project list Drools :: Semantics Module Framework
| Memory: 4M/6M
+----------------------------------------
+----------------------------------------
| Gathering project list Drools :: Base Semantics Module
| Memory: 4M/6M
+----------------------------------------
Starting the reactor...
Our processing order:
Drools :: Semantics Module Framework
Drools :: Base Semantics Module
+----------------------------------------
| Executing drools:clover Drools :: Semantics Module Framework
| Memory: 4M/6M
+----------------------------------------
multiproject:goal:
build:start:
clover:init:
clover:on:
[echo] Setting Clover compiler
[clover-setup] Clover Version 1.3.4, built on January 14 2005
[clover-setup] loaded from: C:\Documents and
Settings\mproctor\.maven\repository\clover\jars\clover-1.3.4.jar
[clover-setup] 30 day Evaluation Version distributed via the Maven
Jar Repository.
[clover-setup] Clover is not free. You have 30 days to evaluate it.
After this, please visit http://www.cenqua.com t
o obtain a licensed version of Clover
[clover-setup] Clover is enabled with initstring
'D:\java\drools-2.0\target\clover\database\clover_coverage.db'
[echo] Now using primary build.compiler :
org.apache.tools.ant.taskdefs.CloverCompilerAdapter
java:prepare-filesystem:
java:compile:
[echo] Compiling to D:\java\drools-2.0\drools-smf/target/clover/classes
java:jar-resources:
test:prepare-filesystem:
test:test-resources:
test:compile:
test:test:
[junit] Running org.drools.smf.DefaultImporterTest
[junit] Tests run: 3, Failures: 0, Errors: 0, Time elapsed: 0.4 sec
[junit] Running org.drools.smf.InvalidConditionExceptionTest
[junit] Tests run: 2, Failures: 0, Errors: 0, Time elapsed: 0.4 sec
[junit] Running org.drools.smf.InvalidConsequenceExceptionTest
[junit] Tests run: 2, Failures: 0, Errors: 0, Time elapsed: 0.39 sec
[junit] Running org.drools.smf.InvalidObjectTypeExceptionTest
[junit] Tests run: 2, Failures: 0, Errors: 0, Time elapsed: 0.4 sec
[junit] Running org.drools.smf.SimpleSemanticModuleTest
[junit] Tests run: 6, Failures: 0, Errors: 0, Time elapsed: 0.39 sec
[junit] Running org.drools.smf.SimpleSemanticsRepositoryTest
[junit] Tests run: 2, Failures: 0, Errors: 0, Time elapsed: 0.39 sec
jar:jar:
[echo] basedir: D:\java\drools-2.0\drools-smf
drools:clover:
[echo] smf level
+----------------------------------------
| Executing drools:clover Drools :: Base Semantics Module
| Memory: 7M/8M
+----------------------------------------
build:end:
build:start:
clover:init:
[mkdir] Created dir:
D:\java\drools-2.0\drools-base\target\clover\classes
[mkdir] Created dir: D:\java\drools-2.0\drools-base\target\docs\clover
clover:on:
[echo] Setting Clover compiler
[clover-setup] Clover Version 1.3.4, built on January 14 2005
[clover-setup] loaded from: C:\Documents and
Settings\mproctor\.maven\repository\clover\jars\clover-1.3.4.jar
[clover-setup] 30 day Evaluation Version distributed via the Maven
Jar Repository.
[clover-setup] Clover is not free. You have 30 days to evaluate it.
After this, please visit http://www.cenqua.com t
o obtain a licensed version of Clover
[clover-setup] Clover is enabled with initstring
'D:\java\drools-2.0\target\clover\database\clover_coverage.db'
[echo] Now using primary build.compiler :
org.apache.tools.ant.taskdefs.CloverCompilerAdapter
java:prepare-filesystem:
java:compile:
[echo] Compiling to D:\java\drools-2.0\drools-base/target/clover/classes
[javac] Compiling 22 source files to
D:\java\drools-2.0\drools-base\target\clover\classes
[javac] Clover Version 1.3.4, built on January 14 2005
[javac] loaded from: C:\Documents and
Settings\mproctor\.maven\repository\clover\jars\clover-1.3.4.jar
[javac] 30 day Evaluation Version distributed via the Maven Jar
Repository.
[javac] Clover is not free. You have 30 days to evaluate it. After
this, please visit http://www.cenqua.com to obtai
n a licensed version of Clover
[javac] Updating database at
'D:\java\drools-2.0\target\clover\database\clover_coverage.db'
[javac] Clover all over. Instrumented 22 files.
java:jar-resources:
Copying 3 files to D:\java\drools-2.0\drools-base\target\clover\classes
test:prepare-filesystem:
[mkdir] Created dir: D:\java\drools-2.0\drools-base\target\test-classes
[mkdir] Created dir: D:\java\drools-2.0\drools-base\target\test-reports
test:test-resources:
test:compile:
[javac] Compiling 8 source files to
D:\java\drools-2.0\drools-base\target\test-classes
[javac] Clover Version 1.3.4, built on January 14 2005
[javac] loaded from: C:\Documents and
Settings\mproctor\.maven\repository\clover\jars\clover-1.3.4.jar
[javac] 30 day Evaluation Version distributed via the Maven Jar
Repository.
[javac] Clover is not free. You have 30 days to evaluate it. After
this, please visit http://www.cenqua.com to obtai
n a licensed version of Clover
[javac] Updating database at
'D:\java\drools-2.0\target\clover\database\clover_coverage.db'
[javac] Clover all over. Instrumented 0 files.
test:test:
[junit] Running org.drools.semantics.base.ApplicationDataFactoryTest
[junit] Tests run: 3, Failures: 0, Errors: 0, Time elapsed: 0.461 sec
[junit] Running org.drools.semantics.base.BaseRuleFactoryTest
[junit] Tests run: 2, Failures: 0, Errors: 0, Time elapsed: 0.49 sec
[junit] Running
org.drools.semantics.base.ClassFieldObjectTypeFactoryTest
[junit] Tests run: 4, Failures: 0, Errors: 0, Time elapsed: 0.45 sec
[junit] Running org.drools.semantics.base.ClassObjectTypeFactoryTest
[junit] Tests run: 4, Failures: 0, Errors: 0, Time elapsed: 0.431 sec
[junit] Running org.drools.semantics.base.SemaphoreFactoryTest
[junit] Tests run: 8, Failures: 0, Errors: 0, Time elapsed: 0.661 sec
jar:jar:
[jar] Building jar:
D:\java\drools-2.0\drools-base\target\drools-base-2.0-rc1.jar
[echo] basedir: D:\java\drools-2.0\drools-base
[copy] Copying 1 file to D:\java\drools-2.0\target
drools:clover:
[echo] base level
build:end:
clover:init:
clover:on:
[echo] Setting Clover compiler
[clover-setup] Clover Version 1.3.4, built on January 14 2005
[clover-setup] loaded from: C:\Documents and
Settings\mproctor\.maven\repository\clover\jars\clover-1.3.4.jar
[clover-setup] 30 day Evaluation Version distributed via the Maven
Jar Repository.
[clover-setup] Clover is not free. You have 30 days to evaluate it.
After this, please visit http://www.cenqua.com t
o obtain a licensed version of Clover
[clover-setup] Clover is enabled with initstring
'D:\java\drools-2.0\target\clover\database\clover_coverage.db'
[echo] Now using primary build.compiler :
org.apache.tools.ant.taskdefs.CloverCompilerAdapter
clover:init:
Overriding previous definition of reference to clover.classpath
[echo] Usage of the maven.clover.database.dir property is
deprecated. Use the maven.clover.database property instead
.
clover:report:
clover:html-report-internal:
[clover-report] Clover Version 1.3.4, built on January 14 2005
[clover-report] loaded from: C:\Documents and
Settings\mproctor\.maven\repository\clover\jars\clover-1.3.4.jar
[clover-report] 30 day Evaluation Version distributed via the Maven
Jar Repository.
[clover-report] Clover is not free. You have 30 days to evaluate it.
After this, please visit http://www.cenqua.com
to obtain a licensed version of Clover
[clover-report] Loaded results from 10 coverage recordings.
[clover-report] Writing report to
'D:\java\drools-2.0\target\docs\clover'
[clover-report] Done. Processed 2 packages.
BUILD SUCCESSFUL
Total time: 21 seconds
Finished at: Tue May 10 13:35:17 BST 2005
D:\java\drools-2.0>
Volker Füßler wrote:
>Hi,
>
>with maven 1.1 I had the problem, that the clover task definitions could not be found. Her is my solution if you run into the same problems.
>
>I had to change the following 2 lines in the clover:init goal of plugin.jelly of the maven-clover-plugin:
>
> <ant:taskdef resource="clovertasks" />
> <ant:typedef resource="clovertypes" />
>
>to
>
> <ant:taskdef resource="clovertasks" classpathref="clover.classpath"/>
> <ant:typedef resource="clovertypes" classpathref="clover.classpath"/>
>
>Regards, Volker
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>For additional commands, e-mail: users-help@maven.apache.org
>
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
RE: [maven 1.1] Clover Tasks not found - a solution
Posted by Vincent Massol <vm...@pivolis.com>.
Thanks Volker, I've fixed it. Actually I don't know how it was working with
the classpath element... Probably that in Maven 1.0.x the
maven.dependency.classpath was added to the classloader in use when the
<taskdef>/<typedef> were called...
In any case it's better to avoid some magic and to always specify it.
Thanks
-Vincent
> -----Original Message-----
> From: Volker Füßler [mailto:vf@webde-ag.de]
> Sent: mardi 10 mai 2005 11:41
> To: users@maven.apache.org
> Subject: [maven 1.1] Clover Tasks not found - a solution
>
> Hi,
>
> with maven 1.1 I had the problem, that the clover task definitions could
> not be found. Her is my solution if you run into the same problems.
>
> I had to change the following 2 lines in the clover:init goal of
> plugin.jelly of the maven-clover-plugin:
>
> <ant:taskdef resource="clovertasks" />
> <ant:typedef resource="clovertypes" />
>
> to
>
> <ant:taskdef resource="clovertasks" classpathref="clover.classpath"/>
> <ant:typedef resource="clovertypes" classpathref="clover.classpath"/>
>
> Regards, Volker
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org