You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Michael Owen <mi...@hotmail.com> on 2005/07/21 14:22:44 UTC

[M1] Clover license problem

Hi,

I'm having trouble getting Clover to work with Maven 1.0.2.

In my project.xml I have (almong other standard stuff):

	<reports>
		<report>maven-junit-report-plugin</report>
		<report>maven-clover-plugin</report>
		<report>maven-jxr-plugin</report>
	</reports>

..
..

       <dependencies>

       	<dependency>
      		<groupId>clover</groupId>
      		<artifactId>clover-ant</artifactId>
      		<version>1.3.1</version>
      		<type>jar</type>
     		<properties>
      			<eclipse.dependency>true</eclipse.dependency>
    		</properties>
    	</dependency>

       </dependencies>

..
..

I then have in project.properties:

maven.clover.license.path=C:/ [snip] (etc etc.) ... 
/lib/clover/licenses/clover.license

(with correct path in :)  )

when I then do "maven site" I get:

    [javac] Compiling 42 source files to C:\build\clover\classes
    [javac] Clover Version 1.3_01, built on July 09 2004
    [javac] loaded from: C:\Documents and 
Settings\owenm\.maven\repository\clove
r\jars\clover-ant-1.3_01.jar

BUILD FAILED
File...... C:\Documents and 
Settings\owenm\.maven\cache\maven-java-plugin-1.5\pl
ugin.jelly
Element... ant:javac
Line...... 63
Column.... 48
Invalid or missing License
Total time: 11 seconds
Finished at: Thu Jul 21 13:03:58 BST 2005


I've noticed that it is using clover-ant-1.3_01.jar and not 1.3.1 as I have 
asked, and is downloading and using clover-30day-eval-1.0.license instead of 
the license I have specified. I guess this is the reason why the error is 
happening, but how can I force it to use the right jar file if that is the 
reason, or the right license?


Cheers,

Mike



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


Re: [M1] Clover license problem

Posted by Nicolas Chalumeau <ni...@gmail.com>.
In your HOME/.maven/cache search the version of maven-clover-plugin.
If your maven version is the 1.0.2 the maven plugin version for clover
is 1.6 (that don't support external licence). I am at 99% sure that
you need to update the version of maven-clover-plugin to 1.9+. You can
find it here : http://maven.apache.org/reference/plugins/clover/downloads.html
Remove the old in your cache and MAVEN_HOME/plugin and copy the new in
MAVEN_HOME/plugin

2005/7/21, Michael Owen <mi...@hotmail.com>:
> Hi,
> 
> I have this dependency:
> 
>         <dependency>
>                 <groupId>clover</groupId>
>                 <artifactId>clover-ant</artifactId>
>                 <version>1.3.1</version>
>                 <type>jar</type>
>                 <properties>
>                         <eclipse.dependency>true</eclipse.dependency>
>                 </properties>
>         </dependency>
>

It is in your pom ? There is no need to add the dependancies of a
maven plugin in your pom as the plugin add the correct version him
self. You can remove this deps.

Nicolas

> which uses clover 1.3.1 clover-ant jar. For the maven-junit-report-plugin I
> have:
> 
>         <reports>
>                 <report>maven-junit-report-plugin</report>
>                 <report>maven-clover-plugin</report>
>                 <report>maven-jxr-plugin</report>
>         </reports>
> 
> only. Have do I make sure I'm using right version etc. ie. what do I need to
> change.?
> 
> Many thanks for your reply,
> 
> Mike
> 
> <br><br><br>>From: Nicolas Chalumeau
> <ni...@gmail.com><br>>Reply-To: Nicolas Chalumeau
> <ni...@gmail.com><br>>To: Maven Users List
> <us...@maven.apache.org><br>>Subject: Re: [M1] Clover license
> problem<br>>Date: Thu, 21 Jul 2005 14:29:33 +0200<br>><br>>What is
> your maven-clover-plugin version? According to the change<br>>report this
> has been fixed with 1.9.<br>><br>>Nicolas<br>><br>>2005/7/21,
> Michael Owen <mi...@hotmail.com>:<br>> > Hi,<br>>
> ><br>> > I'm having trouble getting Clover to work with Maven
> 1.0.2.<br>> ><br>> > In my project.xml I have (almong other
> standard stuff):<br>> ><br>> >         <reports><br>>
> >
> <report>maven-junit-report-plugin</report><br>> >
>         <report>maven-clover-plugin</report><br>> >
>           <report>maven-jxr-plugin</report><br>> >
> </reports><br>> ><br>> > ..<br>> > ..<br>>
> ><br>> >        <dependencies><br>> ><br>> >
>     <dependency><br>> >
> <groupId>clover</groupId><br>> >
> <artifactId>clover-ant</artifactId><br>> >
> <version>1.3.1</version><br>> >
> <type>jar</type><br>> >
> <properties><br>> >                         &lt
> ;eclipse.dependency>true</eclipse.dependency><br>> >
>         </properties><br>> >         </dependency><br>>
> ><br>> >        </dependencies><br>> ><br>> >
> ..<br>> > ..<br>> ><br>> > I then have in
> project.properties:<br>> ><br>> > maven.clover.license.path=C:/
> [snip] (etc etc.) ...<br>> >
> /lib/clover/licenses/clover.license<br>> ><br>> > (with correct
> path in :)  )<br>> ><br>> > when I then do "maven
> site" I get:<br>> ><br>> >     [javac] Compiling 42 source
> files to C:\build\clover\classes<br>> >     [javac] Clover Version
> 1.3_01, built on July 09 2004<br>> >     [javac] loaded from:
> C:\Documents and<br>> > Settings\owenm\.maven\repository\clove<br>>
> > r\jars\clover-ant-1.3_01.jar<br>> ><br>> > BUILD
> FAILED<br>> > File...... C:\Documents and<br>> >
> Settings\owenm\.maven\cache\maven-java-plugin-1.5\pl<br>> >
> ugin.jelly<br>> > Element... ant:javac<br>> > Line......
> 63<br>> > Column.... 48<br>> > Invalid or missing
> License<br>> > Total time: 11 seconds<br>> > Finished at: Thu
> Jul 21 13:03:58 BST 2005<br>> ><br>> ><br>> > I've noticed
> that it is using clover-ant-1.3_01.jar and not 1.3.1 as I have<br>> >
> asked, and is downloading and using clover-30day-eval-1.0.license instead
> of<br>> > the license I have specified. I guess this is the reason why
> the error is<br>> > happening, but how can I force it to use the right
> jar file if that is the<br>> > reason, or the right license?<br>>
> ><br>> ><br>> > Cheers,<br>> ><br>> >
> Mike<br>> ><br>> ><br>> ><br>> >
> ---------------------------------------------------------------------<br>>
> > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org<br>> >
> For additional commands, e-mail: users-help@maven.apache.org<br>>
> ><br>>
> ><br>><br>>---------------------------------------------------------------------<br>>To
> unsubscribe, e-mail: users-unsubscribe@maven.apache.org<br>>For
> additional commands, e-mail: users-help@maven.apache.org<br>><br>
> 
> 
>

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


Re: [M1] Clover license problem

Posted by Nicolas Chalumeau <ni...@gmail.com>.
What is your maven-clover-plugin version? According to the change
report this has been fixed with 1.9.

Nicolas

2005/7/21, Michael Owen <mi...@hotmail.com>:
> Hi,
> 
> I'm having trouble getting Clover to work with Maven 1.0.2.
> 
> In my project.xml I have (almong other standard stuff):
> 
>         <reports>
>                 <report>maven-junit-report-plugin</report>
>                 <report>maven-clover-plugin</report>
>                 <report>maven-jxr-plugin</report>
>         </reports>
> 
> ..
> ..
> 
>        <dependencies>
> 
>         <dependency>
>                 <groupId>clover</groupId>
>                 <artifactId>clover-ant</artifactId>
>                 <version>1.3.1</version>
>                 <type>jar</type>
>                 <properties>
>                         <eclipse.dependency>true</eclipse.dependency>
>                 </properties>
>         </dependency>
> 
>        </dependencies>
> 
> ..
> ..
> 
> I then have in project.properties:
> 
> maven.clover.license.path=C:/ [snip] (etc etc.) ...
> /lib/clover/licenses/clover.license
> 
> (with correct path in :)  )
> 
> when I then do "maven site" I get:
> 
>     [javac] Compiling 42 source files to C:\build\clover\classes
>     [javac] Clover Version 1.3_01, built on July 09 2004
>     [javac] loaded from: C:\Documents and
> Settings\owenm\.maven\repository\clove
> r\jars\clover-ant-1.3_01.jar
> 
> BUILD FAILED
> File...... C:\Documents and
> Settings\owenm\.maven\cache\maven-java-plugin-1.5\pl
> ugin.jelly
> Element... ant:javac
> Line...... 63
> Column.... 48
> Invalid or missing License
> Total time: 11 seconds
> Finished at: Thu Jul 21 13:03:58 BST 2005
> 
> 
> I've noticed that it is using clover-ant-1.3_01.jar and not 1.3.1 as I have
> asked, and is downloading and using clover-30day-eval-1.0.license instead of
> the license I have specified. I guess this is the reason why the error is
> happening, but how can I force it to use the right jar file if that is the
> reason, or the right license?
> 
> 
> Cheers,
> 
> Mike
> 
> 
> 
> ---------------------------------------------------------------------
> 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