Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Not A Problem
-
maven-bundle-plugin-4.2.1
-
None
Description
We get a java.util.ConcurrentModificationException building Apache Commons CSV when building with Java 15-EA:
openjdk version "15-ea" 2020-09-15 OpenJDK Runtime Environment (build 15-ea+18-776) OpenJDK 64-Bit Server VM (build 15-ea+18-776, mixed mode, sharing)
ConcurrentModificationException:
[INFO] --- maven-bundle-plugin:4.2.1:manifest (bundle-manifest) @ commons-csv --- [ERROR] An internal error occurred java.util.ConcurrentModificationException at java.util.TreeMap.callMappingFunctionWithCheck (TreeMap.java:742) 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:2804) 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.ManifestPlugin.getAnalyzer (ManifestPlugin.java:285) at org.apache.felix.bundleplugin.ManifestPlugin.execute (ManifestPlugin.java:111) 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.execute (MojoExecutor.java:210) at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:156) at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:148) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117) 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:128) at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305) 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:957) at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:289) at org.apache.maven.cli.MavenCli.main (MavenCli.java:193) at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method) at jdk.internal.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62) at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke (Method.java:564) 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)
Full log: https://pastebin.com/c3H3Zi7X
Travis log: https://travis-ci.org/github/apache/commons-csv/jobs/675190349
Attachments
Issue Links
- blocks
-
OAK-9037 bundle:manifest fails on Java 15
- Closed
-
JCR-4569 Update to maven bundle plugin compatible with Java 15
- Closed
- is duplicated by
-
FELIX-6266 ConcurrentModificationException in bundle:manifest on Java 15
- Closed