Skip to content

Commit a813a86

Browse files
committed
Move the javadoc configuration to the default.
* Making the configuration of javadoc tied to the execution makes it harder for people to tweak the javadoc configuration as they have to invoke the lifecycle rather than just invoke 'mvn javadoc:javadoc' to see the effects quickly
1 parent d40631c commit a813a86

File tree

1 file changed

+29
-29
lines changed

1 file changed

+29
-29
lines changed

pom.xml

+29-29
Original file line numberDiff line numberDiff line change
@@ -230,42 +230,42 @@
230230
-->
231231
<artifactId>maven-javadoc-plugin</artifactId>
232232
<version>2.8.1</version>
233+
<configuration>
234+
<stylesheetfile>${basedir}/src/main/javadoc/stylesheet.css</stylesheetfile>
235+
<show>protected</show>
236+
<author>false</author>
237+
<version>false</version>
238+
<detectLinks>false</detectLinks>
239+
<linksource>true</linksource>
240+
<keywords>true</keywords>
241+
<use>false</use>
242+
<windowtitle>JUnit API</windowtitle>
243+
<encoding>UTF-8</encoding>
244+
<locale>en</locale>
245+
<javadocVersion>1.5</javadocVersion>
246+
<javaApiLinks>
247+
<property>
248+
<name>api_1.5</name>
249+
<value>http://docs.oracle.com/javase/1.5.0/docs/api/index.html</value>
250+
</property>
251+
</javaApiLinks>
252+
<excludePackageNames>junit.*,*.internal,*.internal.*</excludePackageNames>
253+
<verbose>true</verbose>
254+
<minmemory>32m</minmemory>
255+
<maxmemory>128m</maxmemory>
256+
<failOnError>true</failOnError>
257+
<includeDependencySources>true</includeDependencySources>
258+
<dependencySourceIncludes>
259+
<dependencySourceInclude>org.hamcrest:hamcrest-core:*</dependencySourceInclude>
260+
</dependencySourceIncludes>
261+
</configuration>
233262
<executions>
234263
<execution>
235264
<id>attach-javadoc</id>
236265
<phase>package</phase>
237266
<goals>
238267
<goal>jar</goal>
239268
</goals>
240-
<configuration>
241-
<stylesheetfile>${basedir}/src/main/javadoc/stylesheet.css</stylesheetfile>
242-
<show>protected</show>
243-
<author>false</author>
244-
<version>false</version>
245-
<detectLinks>false</detectLinks>
246-
<linksource>true</linksource>
247-
<keywords>true</keywords>
248-
<use>false</use>
249-
<windowtitle>JUnit API</windowtitle>
250-
<encoding>UTF-8</encoding>
251-
<locale>en</locale>
252-
<javadocVersion>1.5</javadocVersion>
253-
<javaApiLinks>
254-
<property>
255-
<name>api_1.5</name>
256-
<value>http://docs.oracle.com/javase/1.5.0/docs/api/index.html</value>
257-
</property>
258-
</javaApiLinks>
259-
<excludePackageNames>junit.*,*.internal,*.internal.*</excludePackageNames>
260-
<verbose>true</verbose>
261-
<minmemory>32m</minmemory>
262-
<maxmemory>128m</maxmemory>
263-
<failOnError>true</failOnError>
264-
<includeDependencySources>true</includeDependencySources>
265-
<dependencySourceIncludes>
266-
<dependencySourceInclude>org.hamcrest:hamcrest-core:*</dependencySourceInclude>
267-
</dependencySourceIncludes>
268-
</configuration>
269269
</execution>
270270
</executions>
271271
</plugin>

0 commit comments

Comments
 (0)