Uploaded image for project: 'OpenNLP'
  1. OpenNLP
  2. OPENNLP-1359

Build fails with Java 17

    XMLWordPrintableJSON

Details

    • Task
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.9.4
    • 2.0.0
    • None
    • None

    Description

      The build fails when using Java 17.

      Apache Maven 3.8.5 (3599d3414f046de2324203b78ddcf9b5e4388aa0)
      Maven home: /opt/apache-maven
      Java version: 11.0.14, vendor: Ubuntu, runtime: /usr/lib/jvm/java-11-openjdk-amd64
      Default locale: en_US, platform encoding: UTF-8
      OS name: "linux", version: "5.13.0-35-generic", arch: "amd64", family: "unix"

      Exception during build:

      [INFO] — maven-bundle-plugin:4.2.1:bundle (default-bundle) @ opennlp-tools —
      [ERROR] An internal error occurred
      java.util.ConcurrentModificationException
          at java.util.TreeMap.callMappingFunctionWithCheck (TreeMap.java:750)
          at java.util.TreeMap.computeIfAbsent (TreeMap.java:558)
          at aQute.bnd.osgi.Jar.putResource (Jar.java:288)
          at aQute.bnd.osgi.Jar$1.visitFile (Jar.java:202)
          at aQute.bnd.osgi.Jar$1.visitFile (Jar.java:177)
          at java.nio.file.Files.walkFileTree (Files.java:2811)
          at aQute.bnd.osgi.Jar.buildFromDirectory (Jar.java:176)
          at aQute.bnd.osgi.Jar.<init> (Jar.java:119)
          at aQute.bnd.osgi.Jar.<init> (Jar.java:172)
          at org.apache.felix.bundleplugin.BundlePlugin.getOSGiBuilder (BundlePlugin.java:604)
          at org.apache.felix.bundleplugin.BundlePlugin.buildOSGiBundle (BundlePlugin.java:936)
          at org.apache.felix.bundleplugin.BundlePlugin.execute (BundlePlugin.java:443)
          at org.apache.felix.bundleplugin.BundlePlugin.execute (BundlePlugin.java:364)
          at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:137)
          at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute (MojoExecutor.java:301)
          at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:211)
          at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:165)
          at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:157)
          at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:121)
          at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)
          at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56)
          at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:127)
          at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:294)
          at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)
          at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)
          at org.apache.maven.cli.MavenCli.execute (MavenCli.java:960)
          at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:293)
          at org.apache.maven.cli.MavenCli.main (MavenCli.java:196)
          at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
          at jdk.internal.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:77)
          at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
          at java.lang.reflect.Method.invoke (Method.java:568)
          at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:282)
          at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:225)
          at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:406)
          at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:347)

      Attachments

        Issue Links

          Activity

            People

              jzemerick Jeff Zemerick
              jzemerick Jeff Zemerick
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: