Skip to content

Commit 7ca2f06

Browse files
kwinmichael-o
authored andcommitted
[MPOM-260] Configure Maven Javadoc Plugin for reproducible builds
This closes #31
1 parent 0d3a26d commit 7ca2f06

File tree

1 file changed

+19
-1
lines changed

1 file changed

+19
-1
lines changed

pom.xml

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,7 @@ under the License.
9191
<maven.compiler.source>1.7</maven.compiler.source>
9292
<maven.compiler.target>1.7</maven.compiler.target>
9393
<surefire.version>2.22.2</surefire.version>
94+
<maven.javadoc.version>3.2.0</maven.javadoc.version>
9495
<assembly.tarLongFileMode>posix</assembly.tarLongFileMode>
9596
<!-- set this property for all derived projects:
9697
<project.build.outputTimestamp>2020-01-22T15:10:38Z</project.build.outputTimestamp>
@@ -213,7 +214,11 @@ under the License.
213214
<plugin>
214215
<groupId>org.apache.maven.plugins</groupId>
215216
<artifactId>maven-javadoc-plugin</artifactId>
216-
<version>3.2.0</version>
217+
<version>${maven.javadoc.version}</version>
218+
<!-- due to https://issues.apache.org/jira/browse/MNG-7006 duplicate reporting configuration -->
219+
<configuration>
220+
<notimestamp>true</notimestamp>
221+
</configuration>
217222
</plugin>
218223
<plugin>
219224
<groupId>org.apache.maven.plugins</groupId>
@@ -352,6 +357,19 @@ under the License.
352357
</plugins>
353358
</build>
354359

360+
<reporting>
361+
<plugins>
362+
<plugin>
363+
<groupId>org.apache.maven.plugins</groupId>
364+
<artifactId>maven-javadoc-plugin</artifactId>
365+
<version>${maven.javadoc.version}</version>
366+
<configuration>
367+
<notimestamp>true</notimestamp>
368+
</configuration>
369+
</plugin>
370+
</plugins>
371+
</reporting>
372+
355373
<profiles>
356374
<!-- START SNIPPET: release-profile -->
357375
<profile>

0 commit comments

Comments
 (0)