[ 
https://issues.apache.org/jira/browse/JCRVLT-320?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16826902#comment-16826902
 ] 

Konrad Windszus commented on JCRVLT-320:
----------------------------------------

I think it makes sense to upgrade to the newest Maven Archiver (3.4.0) as 
several other bugs have been resolved over the version 3.2.0: 
https://issues.apache.org/jira/issues/?jql=project%20%3D%20MSHARED%20AND%20fixVersion%20in%20(maven-archiver-3.3.0%2C%20maven-archiver-3.4.0)%20AND%20component%20%3D%20maven-archiver.
 I will prepare a PR for upgrading to the newest version.

> filevault-package-maven-plugin:package does not work with Java >= 9
> -------------------------------------------------------------------
>
>                 Key: JCRVLT-320
>                 URL: https://issues.apache.org/jira/browse/JCRVLT-320
>             Project: Jackrabbit FileVault
>          Issue Type: Bug
>          Components: package maven plugin
>    Affects Versions: package-maven-plugin-1.0.3
>            Reporter: Konrad Windszus
>            Priority: Major
>             Fix For: package-maven-plugin-1.0.4
>
>
> When executing the goal {{package}} of {{filevault-package-maven-plugin}} 
> with Maven running on Java 9+ the following exception is thrown
> {code}
> [ERROR] Failed to execute goal 
> org.apache.jackrabbit:filevault-package-maven-plugin:1.0.3:package 
> (default-package) on project ...: Execution default-package of goal 
> org.apache.jackrabbit:filevault-package-maven-plugin:1.0.3:package failed: An 
> API incompatibility was encountered while executing 
> org.apache.jackrabbit:filevault-package-maven-plugin:1.0.3:package: 
> java.lang.ExceptionInInitializerError: null
> [ERROR] -----------------------------------------------------
> ....
> {code}
> When executing with {{-X}} the following stacktrace is being exposed
> {code}
>       at 
> org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:181)
>       ... 21 more
> Caused by: java.lang.ExceptionInInitializerError
>       at 
> org.apache.jackrabbit.filevault.maven.packaging.VaultMojo.execute(VaultMojo.java:192)
>       at 
> org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134)
>       ... 21 more
> Caused by: java.lang.ArrayIndexOutOfBoundsException: 1
>       at 
> org.codehaus.plexus.archiver.zip.AbstractZipArchiver.<clinit>(AbstractZipArchiver.java:116)
>       ... 23 more
> {code}
> The reason for that is this line in {{plexus-archiver}} 2.9.1: 
> https://github.com/codehaus-plexus/plexus-archiver/blob/b6f3f79da02d5d238843038a774b8b2a313c8f2e/src/main/java/org/codehaus/plexus/archiver/zip/AbstractZipArchiver.java#L116
> That is no longer compliant with the new version numbers being defined in 
> http://openjdk.java.net/jeps/223 which are also exposed via system property 
> {{java.version}}. Whenever the version does not contain a "." the 
> aforementioned exception is thrown.
> This should be fixed in more recent versions: 
> https://github.com/codehaus-plexus/plexus-archiver/commit/c0357c5234fedb958bc2dd93a8397424bdcea7cf#diff-fc3ccce5d0e801c14a494428ab189152.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to