[BUILD-290] Maven source plugin execution "test-jar-no-fork" fails on JDK9 Created: 14/Nov/17  Updated: 20/Apr/18  Resolved: 09/Apr/18

Status: Closed
Project: Build
Component/s: Poms
Affects Version/s: POMs 34
Fix Version/s: None

Type: Bug Priority: Neutral
Reporter: Mikaël Geljić Assignee: Sang Ngo Huu
Resolution: Cannot Reproduce Votes: 0
Labels: java9, maven, to-estimate
Remaining Estimate: 0d
Time Spent: 3d
Original Estimate: Not Specified

Issue Links:
Cloners
is cloned by BUILD-298 Maven checkstyle plugin execution fai... Closed
Template:
Acceptance criteria:
Empty
Epic Link: Java 10
Sprint: Saigon 140, Saigon 141
Story Points: 5

 Description   
[INFO] --- maven-source-plugin:2.4:test-jar-no-fork (attach-test-sources) @ vaadin-compatibility-addons ---
[WARNING] Error injecting: org.codehaus.plexus.archiver.jar.JarArchiver
java.lang.ExceptionInInitializerError
	at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
       ...
Caused by: java.lang.ArrayIndexOutOfBoundsException: 1
	at org.codehaus.plexus.archiver.zip.AbstractZipArchiver.<clinit>(AbstractZipArchiver.java:113)
	... 88 more
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 2.338 s
[INFO] Finished at: 2017-11-14T12:03:19+01:00
[INFO] Final Memory: 15M/64M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-source-plugin:2.4:test-jar-no-fork (attach-test-sources) on project vaadin-compatibility-addons: Execution attach-test-sources of goal org.apache.maven.plugins:maven-source-plugin:2.4:test-jar-no-fork failed: An API incompatibility was encountered while executing org.apache.maven.plugins:maven-source-plugin:2.4:test-jar-no-fork: java.lang.ExceptionInInitializerError: null
[ERROR] -----------------------------------------------------
[ERROR] realm =    plugin>org.apache.maven.plugins:maven-source-plugin:2.4


 Comments   
Comment by Mikaël Geljić [ 04/Apr/18 ]

Somehow, I cannot reproduce this anymore; maybe because I was still using an early access JDK9 at the time??
Still it's probably a good idea to review available updates of maven plugins before we do parent poms 35. Source plugin could be upgraded to 3.0.0/3.0.1.

Generated at Sun Feb 11 23:40:33 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.