Skip to content

Commit eb207a6

Browse files
committed
Fix error during deployment to Sonatype: "Invalid Signature for Javdoc"
1 parent fa67db0 commit eb207a6

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

pom.xml

+7-6
Original file line numberDiff line numberDiff line change
@@ -271,20 +271,21 @@
271271
</systemPropertyVariables>
272272
</configuration>
273273
</plugin>
274+
<!-- Required: javadoc JAR -->
274275
<plugin>
275276
<artifactId>maven-javadoc-plugin</artifactId>
276-
<version>2.8.1</version>
277+
<version>2.9.1</version>
277278
<executions>
278279
<execution>
279280
<id>attach-javadoc</id>
280-
<phase>deploy</phase>
281+
<phase>verify</phase>
281282
<goals>
282283
<goal>jar</goal>
283284
</goals>
284285
</execution>
285-
286286
</executions>
287287
</plugin>
288+
<!-- Ensure the manifest contains artifact version information: -->
288289
<plugin>
289290
<artifactId>maven-jar-plugin</artifactId>
290291
<version>2.4</version>
@@ -297,6 +298,7 @@
297298
</archive>
298299
</configuration>
299300
</plugin>
301+
<!-- Required: source JAR -->
300302
<plugin>
301303
<artifactId>maven-source-plugin</artifactId>
302304
<version>2.1.2</version>
@@ -311,8 +313,7 @@
311313
</executions>
312314
</plugin>
313315
<plugin>
314-
<!-- just to make sure deployed artifacts are always built (and tested)
315-
using JDK 6 -->
316+
<!-- just to make sure deployed artifacts are always built (and tested) using JDK 8 -->
316317
<artifactId>maven-enforcer-plugin</artifactId>
317318
<version>1.1.1</version>
318319
<executions>
@@ -325,7 +326,7 @@
325326
<configuration>
326327
<rules>
327328
<requireJavaVersion>
328-
<version>1.8</version>
329+
<version>${java.version}</version>
329330
</requireJavaVersion>
330331
</rules>
331332
</configuration>

0 commit comments

Comments
 (0)