You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Dane Summers <ds...@yahoo.com> on 2006/04/24 17:02:07 UTC

Clover 'site' missing an test jar dependency at compile time.

Hello,

I'm having trouble with clover and maven 2 - it appears to be a missing dependency from the 'plat-test' dependency. The dependency in question is an 'attached test' which I created following the maven2 docs (http://maven.apache.org/guides/mini/guide-attached-tests.html). How can I get clover to recognize and use this dependency??

(I've tried this with 2.0.3 and 2.0.4 of maven and get the same results)

[INFO] Scanning for projects...
[INFO] ----------------------------------------------------------------------------
[INFO] Building SW CIH Application[INFO]    task-segment: [site]
[INFO] ----------------------------------------------------------------------------
[INFO] Preparing clover:instrument
[WARNING] Removing: instrument from forked lifecycle, to prevent recursive invocation.
[INFO] [clover:instrumentInternal]Clover Version 1.3.12, built on February 08 2006loaded from: /Users/danesummers/.m2/repository/com/cenqua/clover/clover/1.3.12/clover-1.3.12.jar30 day Evaluation Version distributed via the Maven Jar Repository.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 CloverUpdating database at '/Users/danesummers/Documents/workspace/CardInHand/sw-core/target/clover/clover.db'Processing files at 1.3 source level.Instrumented 37 source files.
[INFO] [resources:resources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [compiler:compile]Compiling 37 source files to /Users/danesummers/Documents/workspace/CardInHand/sw-core/target/clover/classes[INFO] [resources:testResources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [compiler:testCompile]Compiling 1 source file to /Users/danesummers/Documents/workspace/CardInHand/sw-core/target/clover/test-classes[INFO] ------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Compilation failure/Users/danesummers/Documents/workspace/CardInHand/sw-core/src/test/java/net/bobobble/test/SWTests.java:[10,28] cannot find symbolsymbol  : variable DefaultTestslocation: class net.bobobble.test.SWTests

		
---------------------------------
Blab-away for as little as 1�/min. Make  PC-to-Phone Calls using Yahoo! Messenger with Voice.

Re: Clover 'site' missing an test jar dependency at compile time.

Posted by Wayne Fay <wa...@gmail.com>.
Sounds like the Clover plugin doesn't know about test-jar artifacts
and is not properly handling them.

Perhaps report to Cenqua?

Wayne

On 4/24/06, Dane Summers <ds...@yahoo.com> wrote:
> Hello,
>
> I'm having trouble with clover and maven 2 - it appears to be a missing
> dependency from the 'plat-test' dependency. The dependency in question is an
> 'attached test' which I created following the maven2 docs
> (http://maven.apache.org/guides/mini/guide-attached-tests.html).
> How can I get clover to recognize and use this dependency??
>
> (I've tried this with 2.0.3 and 2.0.4 of maven and get the same results)
>
> [INFO] Scanning for projects...
> [INFO]
> ----------------------------------------------------------------------------
> [INFO] Building SW CIH Application[INFO]    task-segment: [site]
> [INFO]
> ----------------------------------------------------------------------------
> [INFO] Preparing clover:instrument
> [WARNING] Removing: instrument from forked lifecycle, to prevent recursive
> invocation.
> [INFO] [clover:instrumentInternal]Clover Version 1.3.12,
> built on February 08 2006loaded from:
> /Users/danesummers/.m2/repository/com/cenqua/clover/clover/1.3.12/clover-1.3.12.jar30
> day Evaluation Version distributed via the Maven Jar Repository.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 CloverUpdating
> database at
> '/Users/danesummers/Documents/workspace/CardInHand/sw-core/target/clover/clover.db'Processing
> files at 1.3 source level.Instrumented 37 source files.
> [INFO] [resources:resources]
> [INFO] Using default encoding to copy filtered resources.
> [INFO] [compiler:compile]Compiling 37 source files to
> /Users/danesummers/Documents/workspace/CardInHand/sw-core/target/clover/classes[INFO]
> [resources:testResources]
> [INFO] Using default encoding to copy filtered resources.
> [INFO] [compiler:testCompile]Compiling 1 source file to
> /Users/danesummers/Documents/workspace/CardInHand/sw-core/target/clover/test-classes[INFO]
> ------------------------------------------------------------------------
> [ERROR] BUILD FAILURE
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Compilation
> failure/Users/danesummers/Documents/workspace/CardInHand/sw-core/src/test/java/net/bobobble/test/SWTests.java:[10,28]
> cannot find symbolsymbol  : variable DefaultTestslocation: class
> net.bobobble.test.SWTests
>
>
> ________________________________
> Blab-away for as little as 1¢/min. Make PC-to-Phone Calls using Yahoo!
> Messenger with Voice.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
>