You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Johannes Schneider <jo...@familieschneider.info> on 2007/09/08 14:17:09 UTC

Javadoc with custom stylesheet

Hi,

I would like to create my javadoc with using a custom style sheet. I 
used the following configuration and it worked like expected:

       <plugin>
         <groupId>org.apache.maven.plugins</groupId>
         <artifactId>maven-javadoc-plugin</artifactId>
         <configuration>
		<stylesheetfile>/path/to/css</stylesheetfile>
         </configuration>
       </plugin>

This configuration is done in my super pom (company pom). Therefore I 
don't want to add the style sheet to every project and reference it 
using a relative link (if that it is possible).
Instead I want to add the style sheet to my super pom or somewhere on 
the web. Using a http link does not work as the javadoc generator 
expects a file.

Any ideas?


Regards,

Johannes Schneider


Re: Javadoc with custom stylesheet

Posted by Adam Hardy <ad...@cyberspaceroad.com>.
I do not expect this would work but in an ideal world the javadoc plugin should 
be able to pull the file out of a jar dependency in the same way that the site 
plugin takes the CSS files and velocity templates from your jar's META-INF/maven 
directory.

I'd recommend trying it and on failure, putting up a new-feature Jira for it 
against the javadoc plugin.

Johannes Schneider on 08/09/07 13:17, wrote:
> Hi,
> 
> I would like to create my javadoc with using a custom style sheet. I 
> used the following configuration and it worked like expected:
> 
>       <plugin>
>         <groupId>org.apache.maven.plugins</groupId>
>         <artifactId>maven-javadoc-plugin</artifactId>
>         <configuration>
>         <stylesheetfile>/path/to/css</stylesheetfile>
>         </configuration>
>       </plugin>
> 
> This configuration is done in my super pom (company pom). Therefore I 
> don't want to add the style sheet to every project and reference it 
> using a relative link (if that it is possible).
> Instead I want to add the style sheet to my super pom or somewhere on 
> the web. Using a http link does not work as the javadoc generator 
> expects a file.
> 
> Any ideas?
> 
> 
> Regards,
> 
> Johannes Schneider
> 


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