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

Dieser Commit ist enthalten in:
sk89q 2014-07-31 00:33:13 -07:00
Ursprung d8622fb30f
Commit e33beddb8b

64
pom.xml
Datei anzeigen

@ -449,6 +449,36 @@
</excludes> </excludes>
</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>
@ -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>