You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Howard Lewis Ship <hl...@gmail.com> on 2005/11/18 18:02:05 UTC

Missing something about reports

So, I'm missing something about reports.

I want to include a clover report in my site documentation.

I've added an entry to my pom.xml:

           <plugin>
               <artifactId>maven-clover-plugin</artifactId>
           </plugin>

And my site.xml includes ${projects} (the standard set do appear).

However, nothing about Clover appears when I run the site goal, and
nothing appears in target/site:

bash-3.00$ mvn site
[INFO] Scanning for projects...
[INFO] ----------------------------------------------------------------------------
[INFO] Building Tapestry prop binding extension
[INFO]    task-segment: [site]
[INFO] ----------------------------------------------------------------------------
[INFO] Setting property: classpath.resource.loader.class =>
'org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader'.
[INFO] Setting property: velocimacro.messages.on => 'false'.
[INFO] Setting property: resource.loader => 'classpath'.
[INFO] Setting property: resource.manager.logwhenfound => 'false'.
[INFO] **************************************************************
[INFO] Starting Jakarta Velocity v1.4
[INFO] RuntimeInstance initializing.
[INFO] Default Properties File:
org\apache\velocity\runtime\defaults\velocity.properties
[INFO] Default ResourceManager initializing. (class
org.apache.velocity.runtime.resource.ResourceManagerImpl)
[INFO] Resource Loader Instantiated:
org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader
[INFO] ClasspathResourceLoader : initialization starting.
[INFO] ClasspathResourceLoader : initialization complete.
[INFO] ResourceCache : initialized. (class
org.apache.velocity.runtime.resource.ResourceCacheImpl)
[INFO] Default ResourceManager initialization complete.
[INFO] Loaded System Directive: org.apache.velocity.runtime.directive.Literal
[INFO] Loaded System Directive: org.apache.velocity.runtime.directive.Macro
[INFO] Loaded System Directive: org.apache.velocity.runtime.directive.Parse
[INFO] Loaded System Directive: org.apache.velocity.runtime.directive.Include
[INFO] Loaded System Directive: org.apache.velocity.runtime.directive.Foreach
[INFO] Created: 20 parsers.
[INFO] Velocimacro : initialization starting.
[INFO] Velocimacro : adding VMs from VM library template : VM_global_library.vm
[ERROR] ResourceManager : unable to find resource
'VM_global_library.vm' in any resource loader.
[INFO] Velocimacro : error using  VM library template
VM_global_library.vm : org.apache.velocity.exception.ResourceNotFoundE
[INFO] Velocimacro :  VM library template macro registration complete.
[INFO] Velocimacro : allowInline = true : VMs can be defined inline in templates
[INFO] Velocimacro : allowInlineToOverride = false : VMs defined
inline may NOT replace previous VM definitions
[INFO] Velocimacro : allowInlineLocal = false : VMs defined inline
will be  global in scope if allowed.
[INFO] Velocimacro : initialization complete.
[INFO] Velocity successfully started.
[INFO] [site:site]
[INFO] Generate "Continuous Integration" report.
[ERROR] VM #displayTree: error : too few arguments to macro. Wanted 2 got 0
[ERROR] VM #menuItem: error : too few arguments to macro. Wanted 1 got 0
[INFO] Generate "Dependencies" report.
[INFO] Generate "Issue Tracking" report.
[INFO] Generate "Project License" report.
[INFO] Generate "Mailing Lists" report.
[INFO] Generate "Source Repository" report.
[INFO] Generate "Project Team" report.
[INFO] Ignoring the index file generation for the English version.
[INFO] ----------------------------------------------------------------------------
[INFO] BUILD SUCCESSFUL
[INFO] ----------------------------------------------------------------------------
[INFO] Total time: 10 seconds
[INFO] Finished at: Fri Nov 18 11:38:32 EST 2005
[INFO] Final Memory: 6M/13M
[INFO] ----------------------------------------------------------------------------
bash-3.00$


None of the documentation for the report plugins mention anything
about other configuration to get the report to appear.  Is this an
omission, or am I missing something obvious?

Sun JDK 1.5 on Windows XP w/ Cygwin, Maven 2.0 by download

--
Howard M. Lewis Ship
Independent J2EE / Open-Source Java Consultant
Creator, Jakarta Tapestry
Creator, Jakarta HiveMind

Professional Tapestry training, mentoring, support
and project work.  http://howardlewisship.com

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


Re: Missing something about reports

Posted by Howard Lewis Ship <hl...@gmail.com>.
Sure ... looks like just the wrong version for me; I'll try some other
reports and see if I get correct results.

Besides ${project}, are there any other special symbols that can go in site.xml?

On 11/18/05, Vincent Massol <vm...@pivolis.com> wrote:
> Hi Howard,
>
> > -----Original Message-----
> > From: Howard Lewis Ship [mailto:hlship@gmail.com]
> > Sent: vendredi 18 novembre 2005 18:02
> > To: users@maven.apache.org
> > Subject: Missing something about reports
> >
> > So, I'm missing something about reports.
> >
> > I want to include a clover report in my site documentation.
> >
> > I've added an entry to my pom.xml:
> >
> >            <plugin>
> >                <artifactId>maven-clover-plugin</artifactId>
> >            </plugin>
> >
> > And my site.xml includes ${projects} (the standard set do appear).
> >
> > However, nothing about Clover appears when I run the site goal, and
> > nothing appears in target/site:
>
> [snip]
>
> Not sure what's wrong. I've just tried it on a sample I have and it worked
> fine for me.
>
> That said you're probably using the first alpha version of the plugin. I've
> made several improvements to it since then but they are currently in svn
> trunk. Also you should know that currently the Clover plugin works only with
> Maven 2.0.1 as there's a bug in Maven 2.0 that prevents it from working.
> We're trying to find a workaround so that the first released version of the
> Clover plugin works with Maven 2.0.
>
> So I see 2 options for you:
> a) wait till the next version of the clover plugin (should be relatively
> quick now - I'd say within a 2 weeks time frame)
> b) build m2 from svn trunk.
>
> All that said your problem may be coming from something else too but I don't
> have any idea right now about what it could be...
>
> Thanks
> -Vincent
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>


--
Howard M. Lewis Ship
Independent J2EE / Open-Source Java Consultant
Creator, Jakarta Tapestry
Creator, Jakarta HiveMind

Professional Tapestry training, mentoring, support
and project work.  http://howardlewisship.com

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


RE: Missing something about reports

Posted by Vincent Massol <vm...@pivolis.com>.
Hi Howard,

> -----Original Message-----
> From: Howard Lewis Ship [mailto:hlship@gmail.com]
> Sent: vendredi 18 novembre 2005 18:02
> To: users@maven.apache.org
> Subject: Missing something about reports
> 
> So, I'm missing something about reports.
> 
> I want to include a clover report in my site documentation.
> 
> I've added an entry to my pom.xml:
> 
>            <plugin>
>                <artifactId>maven-clover-plugin</artifactId>
>            </plugin>
> 
> And my site.xml includes ${projects} (the standard set do appear).
> 
> However, nothing about Clover appears when I run the site goal, and
> nothing appears in target/site:

[snip]

Not sure what's wrong. I've just tried it on a sample I have and it worked
fine for me.

That said you're probably using the first alpha version of the plugin. I've
made several improvements to it since then but they are currently in svn
trunk. Also you should know that currently the Clover plugin works only with
Maven 2.0.1 as there's a bug in Maven 2.0 that prevents it from working.
We're trying to find a workaround so that the first released version of the
Clover plugin works with Maven 2.0.

So I see 2 options for you:
a) wait till the next version of the clover plugin (should be relatively
quick now - I'd say within a 2 weeks time frame)
b) build m2 from svn trunk.

All that said your problem may be coming from something else too but I don't
have any idea right now about what it could be...

Thanks
-Vincent


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