Permalink
Browse files

Configuring the site:site plugin. Getting javadoc to work.

  • Loading branch information...
1 parent d94290d commit 0200e3c0fb8067222be839b531003f6b35a1335d @chirino chirino committed Sep 22, 2011
Showing with 135 additions and 3 deletions.
  1. +94 −3 pom.xml
  2. +41 −0 src/site/site.xml
View
97 pom.xml
@@ -196,12 +196,12 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
- <version>2.8</version>
+ <version>2.7</version>
<configuration>
<docletArtifact>
<groupId>com.google.doclava</groupId>
<artifactId>doclava</artifactId>
- <version>1.0.2</version>
+ <version>1.0.3</version>
</docletArtifact>
<doclet>com.google.doclava.Doclava</doclet>
<!--
@@ -210,9 +210,12 @@
<bootclasspath>${sun.boot.class.path}</bootclasspath>
<additionalparam>
-quiet
+ <!-- The federation options cause an NPE when it builds the project pom -->
+ <!--
-federate JDK http://download.oracle.com/javase/6/docs/api/index.html?
- -federate Guice http://google-guice.googlecode.com/svn/trunk/javadoc/
-federationxml JDK http://doclava.googlecode.com/svn/static/api/openjdk-6.xml
+ -federate Guice http://google-guice.googlecode.com/svn/trunk/javadoc/
+ -->
-hdf project.name "${project.name}"
-d ${project.build.directory}/apidocs
</additionalparam>
@@ -260,6 +263,94 @@
</excludes>
</configuration>
</plugin>
+
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-site-plugin</artifactId>
+ <version>3.0</version>
+ <executions>
+ <execution>
+ <id>attach-descriptor</id>
+ <goals>
+ <goal>attach-descriptor</goal>
+ </goals>
+ </execution>
+ </executions>
+ <configuration>
+ <reportPlugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-project-info-reports-plugin</artifactId>
+ <version>2.4</version>
+ <configuration>
+ <dependencyDetailsEnabled>false</dependencyDetailsEnabled>
+ <dependencyLocationsEnabled>false</dependencyLocationsEnabled>
+ </configuration>
+ <!-- simpler configuration without reportSets available for usual cases -->
+ <reports>
+ <report>index</report>
+ <report>dependencies</report>
+ <report>issue-tracking</report>
+ <report>license</report>
+ <report>mailing-list</report>
+ <report>modules</report>
+ <report>project-team</report>
+ <report>plugin-management</report>
+ <report>plugins</report>
+ <report>scm</report>
+ </reports>
+ </plugin>
+
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-jxr-plugin</artifactId>
+ <version>2.3</version>
+ <configuration>
+ <!-- <stylesheet>stylesheet.css</stylesheet> -->
+ <inputEncoding>UTF-8</inputEncoding>
+ <outputEncoding>UTF-8</outputEncoding>
+ <linkJavadoc>true</linkJavadoc>
+ <docTitle>${project.name} Source Xref (${project.version})</docTitle>
+ <windowTitle>${project.name} Source Xref (${project.version})</windowTitle>
+ </configuration>
+ </plugin>
+
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-javadoc-plugin</artifactId>
+ <version>2.7</version>
+ <configuration>
+ <docletArtifact>
+ <groupId>com.google.doclava</groupId>
+ <artifactId>doclava</artifactId>
+ <version>1.0.3</version>
+ </docletArtifact>
+ <doclet>com.google.doclava.Doclava</doclet>
+ <!--
+ | bootclasspath required by Sun's JVM
+ -->
+ <bootclasspath>${sun.boot.class.path}</bootclasspath>
+ <additionalparam>
+ -quiet
+ <!-- The federation options cause an NPE when it builds the project pom -->
+ <!--
+ -federate JDK http://download.oracle.com/javase/6/docs/api/index.html?
+ -federationxml JDK http://doclava.googlecode.com/svn/static/api/openjdk-6.xml
+ -federate Guice http://google-guice.googlecode.com/svn/trunk/javadoc/
+ -->
+ -hdf project.name "${project.name}"
+ -d ${project.build.directory}/site/apidocs
+ </additionalparam>
+ <useStandardDocletOptions>false</useStandardDocletOptions>
+ <!--
+ | Apple's JVM sometimes requires more memory
+ -->
+ <additionalJOption>-J-Xmx1024m</additionalJOption>
+ </configuration>
+ </plugin>
+ </reportPlugins>
+ </configuration>
+ </plugin>
</plugins>
</pluginManagement>
</build>
View
@@ -0,0 +1,41 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+Copyright (C) 2011 the original author or authors.
+See the notice.md file distributed with this work for additional
+information regarding copyright ownership.
+
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+-->
+<project name="${project.name}">
+
+ <skin>
+ <groupId>com.googlecode.fluido-skin</groupId>
+ <artifactId>fluido-skin</artifactId>
+ <version>1.3</version>
+ </skin>
+
+ <!-- Enable if the project ever gets a logo.
+ <bannerLeft>
+ <name>${project.name}</name>
+ <src>http://github.com/dain/leveldb/tree/master/ ...... /project-logo.png</src>
+ <href>${project.url}</href>
+ </bannerLeft>
+ -->
+
+ <version position="left"/>
+ <body>
+ <menu ref="reports" inherit="bottom"/>
+ <menu ref="modules" inherit="bottom"/>
+ </body>
+
+</project>

0 comments on commit 0200e3c

Please sign in to comment.