maven site / javadoc integration
This commit is contained in:
76
pom.xml
76
pom.xml
@@ -16,12 +16,20 @@
|
||||
|
||||
<maven-shade-plugin.version>1.4</maven-shade-plugin.version>
|
||||
<maven-javadoc-plugin.version>2.9</maven-javadoc-plugin.version>
|
||||
<maven-site-plugin.version>3.2</maven-site-plugin.version>
|
||||
|
||||
<finalJarName>TeXDoclet</finalJarName>
|
||||
<texdoclet.version>0.9-SNAPSHOT</texdoclet.version>
|
||||
|
||||
</properties>
|
||||
|
||||
<licenses>
|
||||
<license>
|
||||
<name>The BSD-2-Clause License</name>
|
||||
<url>http://opensource.org/licenses/BSD-2-Clause</url>
|
||||
</license>
|
||||
</licenses>
|
||||
|
||||
<repositories>
|
||||
<repository>
|
||||
<id>scala-tools</id>
|
||||
@@ -70,8 +78,16 @@
|
||||
<finalName>${finalJarName}</finalName>
|
||||
<sourceDirectory>src/main/java</sourceDirectory>
|
||||
|
||||
<plugins>
|
||||
<pluginManagement>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<artifactId>maven-site-plugin</artifactId>
|
||||
<version>${maven-site-plugin.version}</version>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</pluginManagement>
|
||||
|
||||
<plugins>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-shade-plugin</artifactId>
|
||||
@@ -108,7 +124,7 @@
|
||||
<version>${texdoclet.version}</version>
|
||||
</docletArtifact>
|
||||
<sourcepath>src/main/java:src/test/java</sourcepath>
|
||||
<useStandardDocletOptions>false</useStandardDocletOptions><!-- set to false !!! -->
|
||||
<useStandardDocletOptions>false</useStandardDocletOptions>
|
||||
<destDir>apidocs_tex</destDir>
|
||||
<additionalparam>
|
||||
-tree
|
||||
@@ -123,57 +139,37 @@
|
||||
</additionalparam>
|
||||
</configuration>
|
||||
</plugin>
|
||||
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-site-plugin</artifactId>
|
||||
<version>3.0</version>
|
||||
<executions>
|
||||
<execution>
|
||||
<phase>site</phase>
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
|
||||
</plugins>
|
||||
|
||||
</build>
|
||||
|
||||
<!-- goal site:site - alternative TeXDoclet doclet configuration in addition to standard Javadoc doclet -->
|
||||
<reporting>
|
||||
<plugins>
|
||||
|
||||
<!-- Run selective reports - let's build 'about' page only -->
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-project-info-reports-plugin</artifactId>
|
||||
<version>2.6</version>
|
||||
<reportSets>
|
||||
<reportSet>
|
||||
<reports>
|
||||
<report>index</report>
|
||||
</reports>
|
||||
</reportSet>
|
||||
</reportSets>
|
||||
</plugin>
|
||||
|
||||
<!-- goal site:site - alternative TeXDoclet doclet configuration -->
|
||||
<!-- TODO : html docs are not created -->
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-javadoc-plugin</artifactId>
|
||||
<version>2.9</version>
|
||||
<version>${maven-javadoc-plugin.version}</version>
|
||||
<reportSets>
|
||||
|
||||
<reportSet>
|
||||
<id>html</id>
|
||||
<configuration>
|
||||
<destDir>apidocs_html</destDir>
|
||||
</configuration>
|
||||
<reports>
|
||||
<report>javadoc</report>
|
||||
<!--<report>test-javadoc</report>-->
|
||||
</reports>
|
||||
<configuration>
|
||||
<sourcepath>src/main/java:src/test/java</sourcepath>
|
||||
<name>Standard JavaDoc documentation</name>
|
||||
<description>JavaDoc doclet generated API documentation.</description>
|
||||
</configuration>
|
||||
</reportSet>
|
||||
|
||||
</reportSets>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-javadoc-plugin</artifactId>
|
||||
<version>${maven-javadoc-plugin.version}</version>
|
||||
<reportSets>
|
||||
<reportSet>
|
||||
<id>texdoclet</id>
|
||||
<configuration>
|
||||
@@ -197,17 +193,15 @@
|
||||
-shortinherited
|
||||
</additionalparam>
|
||||
<destDir>apidocs_tex</destDir>
|
||||
<name>TeXDoclet</name>
|
||||
<description>TeXDoclet documentation.</description>
|
||||
<name>TeXDoclet documentation</name>
|
||||
<description>TeXDoclet doclet generated API documentation.</description>
|
||||
</configuration>
|
||||
<reports>
|
||||
<report>javadoc</report>
|
||||
</reports>
|
||||
</reportSet>
|
||||
|
||||
</reportSets>
|
||||
</plugin>
|
||||
|
||||
</plugins>
|
||||
</reporting>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user