Use -Xdoclint:none on JDK 8 and generate sources/Javadocs by default.

This commit is contained in:
sk89q 2014-07-31 00:33:13 -07:00
parent d8622fb30f
commit e33beddb8b

64
pom.xml
View File

@ -450,6 +450,36 @@
</configuration> </configuration>
</plugin> </plugin>
<!-- Attach docs -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<version>2.2.1</version>
<executions>
<execution>
<id>attach-sources</id>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
</plugin>
<!-- Generate Javadocs -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>2.8.1</version>
<executions>
<execution>
<id>attach-javadocs</id>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
</plugin>
<!-- Site builder --> <!-- Site builder -->
<plugin> <plugin>
<groupId>org.apache.maven.plugins</groupId> <groupId>org.apache.maven.plugins</groupId>
@ -617,40 +647,22 @@
<!-- <!--
===================================== =====================================
Attach docs and source Disable doclint on Java 8
===================================== =====================================
--> -->
<profile> <profile>
<id>attach-docs</id> <id>java8-disable-doclint</id>
<activation>
<jdk>[1.8,</jdk>
</activation>
<build> <build>
<plugins> <plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<version>2.2.1</version>
<executions>
<execution>
<id>attach-sources</id>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin> <plugin>
<groupId>org.apache.maven.plugins</groupId> <groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId> <artifactId>maven-javadoc-plugin</artifactId>
<version>2.8.1</version> <configuration>
<executions> <additionalparam>-Xdoclint:none</additionalparam>
<execution> </configuration>
<id>attach-javadocs</id>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
</plugin> </plugin>
</plugins> </plugins>
</build> </build>