Skip to content
This repository has been archived by the owner on Jan 21, 2019. It is now read-only.

Plugin fails when running under Java 9 #24

Open
jasondlee opened this issue Mar 2, 2017 · 6 comments
Open

Plugin fails when running under Java 9 #24

jasondlee opened this issue Mar 2, 2017 · 6 comments

Comments

@jasondlee
Copy link

If I create a new RCP application, make no changes, and run the build, I get this (cleaned up a bit):

$ mvn -e -X clean install
...
Number of foreign imports: 1
import: Entry[import  from realm ClassRealm[maven.api, parent: null]]

-----------------------------------------------------

        at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:181)
        ... 21 more
Caused by: java.lang.ExceptionInInitializerError
        at org.codehaus.mojo.nbm.BrandingMojo.execute(BrandingMojo.java:170)
        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:123)
        ... 23 more

@mkleint
Copy link
Contributor

mkleint commented Mar 2, 2017

do you have some kind of more complete stacktrace? from a quick glance it looks like an issue with maven itself or some maven lib the branding goal is using.

@ebarboni
Copy link
Contributor

ebarboni commented Mar 2, 2017

@jasondlee are you using the last version of the plugin ?

@jasondlee
Copy link
Author

As best as I can tell:

                <plugin>
                    <groupId>org.codehaus.mojo</groupId>
                    <artifactId>nbm-maven-plugin</artifactId>
                    <version>4.1</version>
                    <extensions>true</extensions>
                    <configuration>
                        <brandingToken>${brandingToken}</brandingToken>
                        <cluster>${brandingToken}</cluster>
                        <useOSGiDependencies>true</useOSGiDependencies>
                    </configuration>
                </plugin>

@jasondlee
Copy link
Author

That's the most complete stack trace I've been able to dig out of Maven. I'm at the office at the moment and don't have access to that workspace at the moment, but I can try to wrangle more details out of Maven this evening.

@jasondlee
Copy link
Author

jasondlee commented Mar 4, 2017

This is the log file from mvn -X clean install. Is there a way to get more information from Maven?

mvn.log.txt

@mkleint
Copy link
Contributor

mkleint commented Mar 5, 2017

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants