Maven 2.x and 3.x Site Plugin

site:run mojo will not display javadocs or jxr results

Details

  • Type: Bug Bug
  • Status: Open Open
  • Priority: Major Major
  • Resolution: Unresolved
  • Affects Version/s: 2.0-beta-5
  • Fix Version/s: None
  • Component/s: site:run
  • Labels:
    None
  • Environment:
    maven 2.0.5
  • Number of attachments :
    0

Description

I don't know if this is reported already; I could not find the issue if it has.

The problem is that the site:run mojo causes the javadoc and jxr reports to run when their links are clicked, but doesn't display there results on-screen.

Activity

Hide
Rick Mangi added a comment -

I sent this to the mailing list and was pointed to this jira ticket. I can generate my javadocs with mvn javadoc:javadoc but running site:run and browsing to the site causes the exceptions below. I wonder if it has something to do with the classloader for the embedded servlet container.

> /Users/mangir/work/kids-web-core/src/main/java/com/nickonline/web/filter/rew
> rite/DefaultRewriteHandler.java:18: cannot find symbol
> symbol : variable LogFactory
> location: class com.nickonline.web.filter.rewrite.DefaultRewriteHandler
> protected static final Log log = LogFactory
> ^
> java.lang.ClassCastException: com.sun.tools.javadoc.ClassDocImpl cannot be
> cast to com.sun.javadoc.AnnotationTypeDoc
>
>
> And in the browser I get a bunch of messages similar to the following:
>
> HTTP ERROR: 500
>
> Error rendering Maven report: Exit code: 1 -
> /Users/mangir/work/kids-web-core/src/main/java/com/nickonline/ir/BaseIR.java
> :7: package net.sf.ehcache does not exist
> import net.sf.ehcache.CacheManager;
> ^
> /Users/mangir/work/kids-web-core/src/main/java/com/nickonline/ir/BaseIR.java
> :18: cannot find symbol
> symbol : class CacheManager
> location: interface com.nickonline.ir.BaseIR
> public void setCacheManager(CacheManager cacheManager);
> ^
> /Users/mangir/work/kids-web-core/src/main/java/com/nickonline/ir/BaseIR.java
> :19: cannot find symbol
> symbol : class CacheManager
> location: interface com.nickonline.ir.BaseIR
> public CacheManager getCacheManager();
> ^
> /Users/mangir/work/kids-web-core/src/main/java/com/nickonline/ir/BaseIRImpl.
> java:3: package net.sf.ehcache does not exist
> import net.sf.ehcache.CacheManager;
> ^
> /Users/mangir/work/kids-web-core/src/main/java/com/nickonline/ir/BaseIRImpl.
> java:5: package org.apache.commons.logging does not exist
> import org.apache.commons.logging.Log;
> ^
> /Users/mangir/work/kids-web-core/src/main/java/com/nickonline/ir/BaseIRImpl.
> java:6: package org.apache.commons.logging does not exist
> import org.apache.commons.logging.LogFactory;
> ^
>

Show
Rick Mangi added a comment - I sent this to the mailing list and was pointed to this jira ticket. I can generate my javadocs with mvn javadoc:javadoc but running site:run and browsing to the site causes the exceptions below. I wonder if it has something to do with the classloader for the embedded servlet container. > /Users/mangir/work/kids-web-core/src/main/java/com/nickonline/web/filter/rew > rite/DefaultRewriteHandler.java:18: cannot find symbol > symbol : variable LogFactory > location: class com.nickonline.web.filter.rewrite.DefaultRewriteHandler > protected static final Log log = LogFactory > ^ > java.lang.ClassCastException: com.sun.tools.javadoc.ClassDocImpl cannot be > cast to com.sun.javadoc.AnnotationTypeDoc > > > And in the browser I get a bunch of messages similar to the following: > > HTTP ERROR: 500 > > Error rendering Maven report: Exit code: 1 - > /Users/mangir/work/kids-web-core/src/main/java/com/nickonline/ir/BaseIR.java > :7: package net.sf.ehcache does not exist > import net.sf.ehcache.CacheManager; > ^ > /Users/mangir/work/kids-web-core/src/main/java/com/nickonline/ir/BaseIR.java > :18: cannot find symbol > symbol : class CacheManager > location: interface com.nickonline.ir.BaseIR > public void setCacheManager(CacheManager cacheManager); > ^ > /Users/mangir/work/kids-web-core/src/main/java/com/nickonline/ir/BaseIR.java > :19: cannot find symbol > symbol : class CacheManager > location: interface com.nickonline.ir.BaseIR > public CacheManager getCacheManager(); > ^ > /Users/mangir/work/kids-web-core/src/main/java/com/nickonline/ir/BaseIRImpl. > java:3: package net.sf.ehcache does not exist > import net.sf.ehcache.CacheManager; > ^ > /Users/mangir/work/kids-web-core/src/main/java/com/nickonline/ir/BaseIRImpl. > java:5: package org.apache.commons.logging does not exist > import org.apache.commons.logging.Log; > ^ > /Users/mangir/work/kids-web-core/src/main/java/com/nickonline/ir/BaseIRImpl. > java:6: package org.apache.commons.logging does not exist > import org.apache.commons.logging.LogFactory; > ^ >

People

Vote (2)
Watch (3)

Dates

  • Created:
    Updated: